Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Heil ben-heil

View GitHub Profile
View index.js
export const mapActivities = (activities, state) => {
if (
!isArray(activities) ||
!activities.length ||
!isArray(state.experiments.list) ||
!state.experiments.list.length
)
return { bySignature: {}, byExperiment: [] };
// get all activities in signature, and min/max
@ben-heil
ben-heil / ensembl_to_genesymbol
Created Oct 1, 2021
Convert ENSEMBL stable identifiers to gene symbols
View ensembl_to_genesymbol
import biomart
def get_ensembl_mappings():
# Set up connection to server
server = biomart.BiomartServer('http://uswest.ensembl.org/biomart')
mart = server.datasets['mmusculus_gene_ensembl']