Skip to content

Instantly share code, notes, and snippets.

@hmartiniano
Created October 4, 2023 17:49
Show Gist options
  • Save hmartiniano/4ff605ea01904a248204c917b4533b2f to your computer and use it in GitHub Desktop.
Save hmartiniano/4ff605ea01904a248204c917b4533b2f to your computer and use it in GitHub Desktop.
from pybiomart import Dataset
dataset = Dataset(name='hsapiens_gene_ensembl', host='http://www.ensembl.org')
df = dataset.query(attributes=['ensembl_gene_id', 'external_gene_name', 'ensembl_transcript_id', 'transcript_is_canonical'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment