Thanks. Yes I have been trying two other ways: One is a script:
import Bio
from Bio import Geo
from Bio import Entrez
Entrez.email = "xxx@gmail.com"
handle = Entrez.esearch(db="gds",term="GDS5879")
record = Entrez.read(handle)
print record
The output:
{u'Count': '11', u'RetMax': '11', u'IdList': ['5879', '200071868', '100006885', '301847070', '301847069', '301847068', '301847067', '301847066', '301847065', '301847064', '301847063'], u'TranslationStack': [{u'Count': '11', u'Field': 'All Fields', u'Term': 'GDS5879[All Fields]', u'Explode': 'N'}, 'GROUP'], u'TranslationSet': [], u'RetStart': '0', u'QueryTranslation': 'GDS5879[All Fields]'}
Just a small question, I think the "IdList" in the above output has all the info I need, I'm just struggling to find a dictionary on NCBI that links each of these numbers to e.g. GDS5879 or GSMXXXXX or ExpressionProfilingByArray or GPLXXXX, would you know if I'm right in saying that that file should be somewhere/I should somehow to able to link those numbers to english? (e.g. I know that 301847070 is linked somewhere to sample GSM1847070).
and the other way, using the command:
esearch -db GDS -query 'GDS5879' | efetch -format docsum | xtract -pattern DocumentSummary -element Id Title summary Accession taxon gdsType
The output:
5879 Young 1 Young 2 Young 3 Young 4 Middle-aged 1 Middle-aged 2 Middle-aged 3 Middle-aged 4 Analysis of pulmonary CDC11c+ cells from 6-8 week and 10-13 month old C57BL/6 animals. CDC11c+ cells are key modulators of the immune response in the lung. Results provide insight into molecular mechanisms underlying the decline in immune function associated with aging. GDS5879 GSM1847067 GSM1847068 GSM1847069 GSM1847070 GSM1847063 GSM1847064 GSM1847065 GSM1847066 Mus musculus Expression profiling by array
200071868 Young 4 Young 1 Middle-aged 3 Young 2 Middle-aged 4 Young 3 Middle-aged 1 Middle-aged 2 Analysis of function of CD11c+ cells from middle-aged and young mice at gene level. This experiment provided insight into the different genes that plays roles in inflammation, immune response and mainly arachidonic acid cascade that are differentiall expressed in CD11c+ cells from middle aged and young mice. GSE71868 GSM1847070 GSM1847067 GSM1847065 GSM1847068 GSM1847066 GSM1847069 GSM1847063 GSM1847064 Mus musculus Expression profiling by array
Neither give me what I want (which would be the following info for GDS5879 in a tab delimited line):
Title (In the XML file from efetch, this is in DocumentSummary -> title) = Analysis of pulmonary CDC11c+ cells from 6-8 week and 10-13 month old C57BL/6 animals. CDC11c+ cells are key modulators of the immune response in the lung. Results provide insight into molecular mechanisms underlying the decline in immune function associated with aging.
Organism (DocumentSummary ->taxon) = Mus musculus
Type (e.g. RNASeq or microarray) (DocumentSummary ->gdsType) = Expression profiling by array
Platform (DocumentSummary ->GPL) = GPL6885
Series (DocumentSummary ->GSE) = GSE78168
NumberOfSamples = (DocumentSummary -> n_samples) = 8
DatasetAccession (DocumentSummary ->GDS): = GDS5879
I'm just wondering if someone could put me on the right track as to what I'm doing wrong with either of these ways, because I can pretty much see the data I want in both the methods manually, but I'm just struggling to make the link to getting code that works?