Entering edit mode
3.2 years ago
hans
▴
20
Hello, I have a list of 60 NCBI biosamp entries, each in a new line. The file name is biosmp. I need to retrieve the bio sample attributes. I run the following command but I get only the first record.
cat biosmp | while read lines; do esearch -db biosample -query "${lines}" | efetch -format xml | xtract -pattern BioSampleSet -element Attribute; done;
Thank you. The efetch loop worked well . epost was 10 time faster, but it concatenated all records to one line. The xargs solution retrieved only the first record.