Depending on exactly which information you seek, you can try:
esearch -db sra -query 'PRJNA491191[bioproject]' | efetch -format native -mode xml
This will return an XML with additional information that is not present in the runinfo
table. You can use the Entrez Direct tool xtract
to parse the output XML and extract the fields of interest into a tabular format.
Alternatively, you can try:
esearch -db sra -query 'PRJNA491191[bioproject]' | esummary
to retrieve a summary output that includes fewer fields than the efetch
option shown above. Perhaps all of the fields that are of interest to you are present in the summary output... it will save you time and effort in parsing the XML and retrieving the information you want.
For example, you can use the following to retrieve some fields using xtract
from the esummary
output:
$ esearch -db sra -query 'PRJNA491191[bioproject]' \
| esummary \
| xtract -pattern DocumentSummary -element Summary/Title,Statistics@total_size,Study@acc
GSM3391430: hsf-1(OE) rep3; Caenorhabditis elegans; RNA-Seq 731402855 SRP161795
GSM3391429: hsf-1(OE) rep2; Caenorhabditis elegans; RNA-Seq 703822418 SRP161795
GSM3391428: hsf-1(OE) rep1; Caenorhabditis elegans; RNA-Seq 715482490 SRP161795
...