Retrieving SRA files using Taxonomic IDs
2
0
Entering edit mode
6.7 years ago
Paul ▴ 80

I have a list of taxonomic IDs with genomic IDs as shown below:

Taxon ID Genome ID
1438833 1438833.3
1438845 1438845.3
1438847 1438847.3

Is there a way to retrieve SRA files using the above mentioned taxon IDs or Genome IDs??

Eutility sra taxonomy • 2.1k views
ADD COMMENT
1
Entering edit mode
6.7 years ago
Paul ▴ 80

I got my answer by doing this $ esearch -db sra -query "txid1448409[Organism:noexp]" | efetch -format runinfo | cut -d ',' -f 1 | grep SRR

ADD COMMENT
1
Entering edit mode
6.7 years ago

using ncbi elink:

$ for F in 1438833 1438845 1438847 ; do curl "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi?dbfrom=taxonomy&db=sra&id=${F}&retmode=xml"  ; done

https://eutils.ncbi.nlm.nih.gov/eutils/dtd/20101123/elink.dtd">
<eLinkResult>

  <LinkSet>
    <DbFrom>taxonomy</DbFrom>
    <IdList>
      <Id>1438833</Id>
    </IdList>
    <LinkSetDb>
      <DbTo>sra</DbTo>
      <LinkName>taxonomy_sra</LinkName>

        <Link>
                <Id>648682</Id>
            </Link>

    </LinkSetDb>
    <LinkSetDb>
      <DbTo>sra</DbTo>
      <LinkName>taxonomy_sra_exp</LinkName>

        <Link>
                <Id>1438833</Id>
            </Link>
(...)
ADD COMMENT
0
Entering edit mode

Thanks. So, the xmls need to get parsed for taxonomy_sra IDs??

ADD REPLY

Login before adding your answer.

Traffic: 2281 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