Skip to content

Instantly share code, notes, and snippets.

@danilotat
danilotat / query_ensembl.py
Last active February 26, 2024 15:26
Fully remote, it downloads GTF annotation file from Ensembl FTP repo for the provided organism and version, than return .tsv file with gene_id and hgnc_symbol.
#!/usr/bin/python3
import sys
import os
import tempfile
import gzip
import argparse
from ftplib import FTP