This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Ensembl Rest Api

How to get region by band start / band end?

e.g.

Dataset: Drosophila melanogaster genes (BDGP6)

Chromosome: X

band start: 11B1

band end: 11B3

gene genome

1 answer

No Ensembl but USC:

$ mysql --user=genome --host=genome-mysql.cse.ucsc.edu  -A  dm6 -e 'select C1.chrom,C1.chromStart,C2.chromEnd from cytoBand as C1,cytoBand as C2 where C1.chrom="chrX" and C1.chrom=C2.chrom and C1.name in("11B1","11B3") and C2.name in("11B1","11B3") and C1.chromStart<C2.chromStart'
+-------+------------+----------+
| chrom | chromStart | chromEnd |
+-------+------------+----------+
| chrX  |   12525916 | 12614137 |
+-------+------------+----------+

Log in to answer this question.