You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use efetch to obtain the Attributes of a BioSample record, but I found that for some BioSample records, the Attributes reported in the xml are completely different from those displayed at the NCBI website. And the BioSample Id reported in the xml is different from the BioSample Id specified in the efetch command.
I use the following command to get the xml of a BioSample record: efetch -db biosample -id SAMEA5244969 -format xml
Example 1: for BioSample SAMEA5244969, the NCBI website displays the Attributes as shown at https://www.ncbi.nlm.nih.gov/biosample/10858554
However, the efetch command reported the following xml:
The Attributes in this xml are completely different from those displayed at the NCBI website. And the reported BioSample Id (SAMEA4457316) in this xml is different from the BioSample Id (SAMEA5244969) specified in the efetch command.
Example 2: for BioSample SAMEA104565009, the NCBI website displays the Attributes as shown at https://www.ncbi.nlm.nih.gov/biosample/11349430
However, the efetch command reported the following xml:
<?xml version="1.0" ?>
This xml does not contain any elements even though a list of Attributes are displayed at the NCBI website.
Example 3: for BioSample SAMEA5099860, the NCBI website displays the Attributes as shown at https://www.ncbi.nlm.nih.gov/biosample/10655621
However, the efetch command reported the following xml:
The Attributes in this xml are completely different from those displayed at the NCBI website. And the reported BioSample Id (SAMEA3067264) in this xml is different from the BioSample Id (SAMEA5099860) specified in the efetch command.
I was wondering if you have some ideas about why the efetch command did not work correctly for the above BioSamples?
I’d greatly appreciate your help!
Thank you very much!
The text was updated successfully, but these errors were encountered:
Hmm, it looks like efetch has stripped the noninteger part of your id, appears to just understand entrez numeric IDs rather than BioSample or SRA accessions. The accessions are indexed, so an extra step:
esearch -db biosample -q ERS3052368 | efetch -format xml
Thank you so much for your help! I really appreciate it!
I use the BioSample accession in “-q” (instead of the SRA accession) as below: esearch -db biosample -q SAMEA5244969 | efetch -format xml
and it works as expected.
Thanks again!
I was trying to use
efetch
to obtain the Attributes of a BioSample record, but I found that for some BioSample records, the Attributes reported in the xml are completely different from those displayed at the NCBI website. And the BioSample Id reported in the xml is different from the BioSample Id specified in theefetch
command.I use the following command to get the xml of a BioSample record:
efetch -db biosample -id SAMEA5244969 -format xml
Example 1: for BioSample SAMEA5244969, the NCBI website displays the Attributes as shown at https://www.ncbi.nlm.nih.gov/biosample/10858554
However, the
efetch
command reported the following xml:The Attributes in this xml are completely different from those displayed at the NCBI website. And the reported BioSample Id (SAMEA4457316) in this xml is different from the BioSample Id (SAMEA5244969) specified in the
efetch
command.Example 2: for BioSample SAMEA104565009, the NCBI website displays the Attributes as shown at https://www.ncbi.nlm.nih.gov/biosample/11349430
However, the
efetch
command reported the following xml:This xml does not contain any elements even though a list of Attributes are displayed at the NCBI website.
Example 3: for BioSample SAMEA5099860, the NCBI website displays the Attributes as shown at https://www.ncbi.nlm.nih.gov/biosample/10655621
However, the
efetch
command reported the following xml:The Attributes in this xml are completely different from those displayed at the NCBI website. And the reported BioSample Id (SAMEA3067264) in this xml is different from the BioSample Id (SAMEA5099860) specified in the
efetch
command.I was wondering if you have some ideas about why the
efetch
command did not work correctly for the above BioSamples?I’d greatly appreciate your help!
Thank you very much!
The text was updated successfully, but these errors were encountered: