How to pull metadata from SRA based on Run id?
0
0
Entering edit mode
2.1 years ago
Sidra • 0

I have a lot of SRR ids. I got this code line -->

esearch \
  -db sra \
  -query SRR1751234 | \
efetch \
  -format runinfo \
  -mode xml | \
xtract \
  -pattern SraRunInfo \
  -element BioProject BioSample Modelesearch \
  -db sra \
  -query SRR1751234 | \
efetch \
  -format runinfo \
  -mode xml | \
xtract \
  -pattern SraRunInfo \
  -element BioProject BioSample Model

Output like this -->>

PRJNA186035 SAMN02345261 Illumina MiSeq

But I also need collection date,country. Can anyone help me? I need command line which can read my srr ids file and give the summary of that attributes.

metadata sra • 658 views
ADD COMMENT
0
Entering edit mode

XMLStarlet is the tool you are looking for.

ADD REPLY
0
Entering edit mode

Please don't get used to opening multiple questions on the same topic. Keep it focused in a single one: sra data

ADD REPLY

Login before adding your answer.

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