November 2018
Intermediate to advanced
360 pages
9h 36m
English
Let's take a look at the following steps:
import gzipfrom Bio import Alphabet, Seq, SeqIOgene_id = 'AGAP004707'gene = db[gene_id]print(gene)print(gene.seqid, gene.strand)
The gene_id was retrieved from VectorBase, an online database of the genomics of disease vectors. For other specific cases, you will need to know the ID of your gene (which will be dependent on species and database). The output will be as follows:
2L VectorBase gene 2358158 2431617 . + . ID=AGAP004707;biotype=protein_coding 2L +
Note that the gene is on the 2L chromosome arm and coded in the positive direction (+ strand).