Here is one solution, you can see the fields separated by |
:
$ esearch -db nuccore -query NR_178603 | esummary | xtract -pattern DocumentSummary -tab "\n" -element SubType,SubName | tr "\t" "\n"
strain|old_name|type_material|country|isolation_source|identified_by
B2|Janthinobacterium sp. B2|type strain of Massilia violaceinigra|China|soil sample|Haisheng Wang
$ esearch -db nuccore -query NR_116748 | esummary | xtract -pattern DocumentSummary -tab "\n" -element SubType,SubName | tr "\t" "\n"
strain|culture_collection|old_name|type_material
LMG 5343|LMG:5343|Pantoea sp. LMG 5343|type strain of Pantoea brenneri
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Thank you!! Does Entrez have a way to batch-submit a list of IDs instead of one at a time? Or would that be best accomplished with a for loop?
for
loop would work but you can also useepost
method with a file containing the accession numbers (one per line,test
in example below). Be sure to sign up for NCBI API Key if you have a lot of them.