Skip to content

Instantly share code, notes, and snippets.

View ben-heil's full-sized avatar

Ben Heil ben-heil

View GitHub Profile
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 October 1, 2021 19:19
Convert ENSEMBL stable identifiers to gene symbols
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']