saketkc / pysradb

Package for fetching metadata and downloading data from SRA/ENA/GEO
https://saketkc.github.io/pysradb
BSD 3-Clause "New" or "Revised" License
311 stars 51 forks source link

[BUG] experiment_alias has _1 appended #55

Closed Maarten-vd-Sande closed 4 years ago

Maarten-vd-Sande commented 4 years ago

Describe the bug`` Not sure if its a bug on the GEO/SRA side, but for GSM sampleGSM1020644the experiment_alias has_1appended in its experiment_alias. I have not seen_1` anywhere on the website.

import pysradb
print(pysradb.__version__)
print(SRAweb().sra_metadata("GSM1020644", detailed=True).experiment_alias.values)
0.11.0
['GSM1020644_1']
saketkc commented 4 years ago

Thanks for the question @Maarten-vd-Sande. Your observation is correct and I understand that this is a bit unintuitive. However, this metadata is as is received from SRA/GEO. One reason the _1 or _2 exists in GSM ids is to reflect the different technical runs for an experiment.

I hope the explanation helps. I will go ahead and close this, but please feel free to reopen if you notice any other issues related to this.