Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: When is ena_url reported? #56

Closed
Maarten-vd-Sande opened this issue Sep 6, 2020 · 3 comments
Closed

Question: When is ena_url reported? #56

Maarten-vd-Sande opened this issue Sep 6, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Maarten-vd-Sande
Copy link
Contributor

Maarten-vd-Sande commented Sep 6, 2020

Description

import pysradb
print(pysradb.__version__)
print(SRAweb().sra_metadata("SRP016501", detailed=True).columns)
print(SRAweb().sra_metadata("GSM3141725", detailed=True).columns)

0.11.0
Index(['study_accession', 'experiment_accession', 'experiment_title',
       'experiment_desc', 'organism_taxid ', 'organism_name',
       'library_strategy', 'library_source', 'library_selection',
       'sample_accession', 'sample_title', 'instrument', 'total_spots',
       'total_size', 'run_accession', 'run_total_spots', 'run_total_bases',
       'run_alias', 'sra_url_alt1', 'sra_url_alt2', 'sra_url',
       'experiment_alias', 'source_name', 'tissue', 'sra_url_alt3', 'strain',
       'ena_fastq_http_1', 'ena_fastq_http_2', 'ena_fastq_ftp_1',
       'ena_fastq_ftp_2'],
      dtype='object')
Index(['study_accession', 'experiment_accession', 'experiment_title',
       'experiment_desc', 'organism_taxid ', 'organism_name',
       'library_strategy', 'library_source', 'library_selection',
       'sample_accession', 'sample_title', 'instrument', 'total_spots',
       'total_size', 'run_accession', 'run_total_spots', 'run_total_bases',
       'run_alias', 'sra_url_alt1', 'sra_url_alt2', 'sra_url',
       'experiment_alias', 'source_name', 'age', 'strain'],
      dtype='object')

When can I expect an ena_url column and when not? I understand that not everything is hosted on ena.

@saketkc
Copy link
Owner

saketkc commented Sep 6, 2020

Thanks @Maarten-vd-Sande, I can confirm this is currently lacking. I will try to have a fix soon, but if you use the corresponding SRX id you will get a ENA url (as long as it exists):

$ pysradb gsm-to-srx GSM3141725

experiment_alias experiment_accession
GSM3141725       SRX4082387         

Then,

$ pysradb metadata --detailed SRX4082387

@saketkc saketkc added the enhancement New feature or request label Sep 6, 2020
@saketkc saketkc closed this as completed in da62643 Sep 6, 2020
@saketkc
Copy link
Owner

saketkc commented Sep 6, 2020

This is fixed in master. Thanks for reporting!

@Maarten-vd-Sande
Copy link
Contributor Author

Awesome! Thanks for the lightning fast replies and fixes on al issues!! You are a life saver 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants