Now in order to generate the phenotypic data like in the pData from GEOquery one should do following:
pheno_data = {}
for gsm_name, gsm in gse.gsms.iteritems():
print gsm_name, gsm
pheno_data[gsm_name] = {key: value[0] for key, value in gsm.metadata.iteritems()}
pheno_data = pd.DataFrame(pheno_data).T
Now in order to generate the phenotypic data like in the pData from GEOquery one should do following:
This should be a function.