Getting a feature within genbank object

10 views
Skip to first unread message

NRW

unread,
Mar 9, 2016, 9:48:16 AM3/9/16
to pydna
Hi again,
I am trying to get a feature from a genbank record (bacterial genome) to obtain the locus coordinates.  Ideally, I would like to do something like "gb.nucleotide("NC_000913.3", locus_tag="b0003").  When using gb.nucleotide("NC_000913.3"), the Dseqrecord contains the whole genome sequence, but does not contain the sub features (the CDS's, etc).  When getting the gene of interest  using "gb.nucleotide("NP_414544.1")", the coordinates given are relative to the gene (1..933), not the actual coordinates in the genbank record.  Is there any workaround?
Thanks again!

Björn Johansson

unread,
Mar 10, 2016, 4:55:59 AM3/10/16
to NRW, pydna
Hi,

You probably need to download the whole genome  (NC_000913.3) in order to have access to the features. The NC_000913.3 is a protein, and it does not seem to contain the coordinates of NC_000913.3.

I found a bug in pydna that is now fixed that prevented download of the entire record.

see this notebook, especially in the end:


I will have a new pydna bugfix version up later today.
You can also change the pydna code in "download.py" line 216

rettype   = "gb" 

into

rettype = "gbwithparts"


/bjorn




--
______O_________oO________oO______o_______oO__
Björn Johansson
Assistant Professor
Departament of Biology
University of Minho
Campus de Gualtar
4710-057 Braga
PORTUGAL
www.bio.uminho.pt
Google profile
Google Scholar Profile
my group
Office (direct) +351-253 601517 | (PT) mob.  +351-967 147 704 | (SWE) mob.  +46 739 792 968
Dept of Biology (secr) +351-253 60 4310  | fax +351-253 678980
Reply all
Reply to author
Forward
0 new messages