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
303 stars 49 forks source link

[BUG] srp-to-srr giving SRSs as result #213

Open arcones opened 5 months ago

arcones commented 5 months ago

Describe the bug Given SRP319378, when I ask pysradb the SRRs it gives me SRSs instead of SRRs

To Reproduce Steps to reproduce the behavior: pysradb srp-to-srr SRP481544

Desktop

Additional context It happens to me as well in the following SRPs: SRP319378, SRP227554, SRP299449, SRP298142.

saketkc commented 5 months ago

This looks like a bug, but I am not sure why I cannot reproduce it with other SRPs (SRP481543 for example)

arcones commented 5 months ago

One detail I should have commented before is that I am integrating pysradb in a python project, not using it from terminal. My application uses pysradb 2.2.0 and does:

from pysradb import SRAweb

[...]
srp = 'SRP481544'
raw_pysradb_data_frame = SRAweb().srp_to_srr(srp)
srrs = list(raw_pysradb_data_frame['run_accession'])
saketkc commented 5 months ago

I think it is specific to this SRP - are there other examples where you have run into the same error?