NCBI feature table sequence extraction
1
4
Entering edit mode
7.8 years ago
Prasad ★ 1.6k

Hi ,

I have list of mitochondrial genome accession ids (~100) . There are ways to download entire sequences of these ids (using batch entrez/Efetch or many other options). But i need to download only the feature table sequences (coding genes, trnas and rrnas). I searched efetch option, i could find only to download coding sequences (both aa/nt). Is there a way to download all the feature table sequences directly.

ncbi programming efetch • 2.8k views
ADD COMMENT
0
Entering edit mode

Please post a few examples of the ids you have..

ADD REPLY
0
Entering edit mode

example ids are CP006559.1, CP006545.1, CP006544.1 etc

ADD REPLY
1
Entering edit mode
7.8 years ago
Sej Modha 5.3k

You can use Unix eutils for this.

If the sequences are in a text file then write a small bash loop to read the file line by line and run the following command for each accession number.

for x in $(cat $1)
do
        esearch -db nucleotide -query "$x"|efetch -format ft

don
ADD COMMENT
0
Entering edit mode

thanks. I will install unix eutils and try

ADD REPLY

Login before adding your answer.

Traffic: 1998 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6