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
307 stars 50 forks source link

Getting study info from SRR id #152

Closed eul2021 closed 2 years ago

eul2021 commented 2 years ago

Description

Hello, I was wondering if I can use pysradb to get "study" info for SRR id. Here is an example : for run accession DRR062876, I do see "Study: A promoter level mammalian expression atlas (human, RNA-seq)" in the NCBI search(https://www.ncbi.nlm.nih.gov/sra/?term=DRR062876), but it's not in the --detailed metadata output for this sample.

df = db.sra_metadata('DRR062876')

Thank you.

saketkc commented 2 years ago

Thanks for the suggestion. I think we should be able to support it.

saketkc commented 2 years ago

With the latest changes on master, you should be able to print the study_title:

pysradb metadata --detailed DRR062876

run_accession   study_accession study_title experiment_accession    experiment_title    experiment_desc organism_taxid  organism_name   library_name    library_strategy    library_source  library_selection   library_layout  sample_accession    sample_title    instrument  instrument_model    instrument_model_desc   total_spots total_size  run_total_spots run_total_bases run_alias   sra_url experiment_alias    Ontology ID cell_type   company rna_catalog ena_fastq_http  ena_fastq_http_1    ena_fastq_http_2    ena_fastq_ftp   ena_fastq_ftp_1 ena_fastq_ftp_2
DRR062876 DRP001150 A promoter level mammalian expression atlas (human, RNA-Seq) DRX057117 10199-103F1_RDhi10060 10199-103F1_RDhi10060 9606 Homo sapiens RDhi10060 RNA-Seq TRANSCRIPTOMIC unspecified SINGLE DRS008595 <NA> Illumina HiSeq 2000 Illumina HiSeq 2000 ILLUMINA 169510397 12224066915 169510397 17120550097 DRR062876 https://sra-downloadb.st-va.ncbi.nlm.nih.gov/sos2/sra-pub-run-3/DRR062876/DRR062876.1 DRX057117 FF:10199-103F1 CELL MIXTURE - tissue sample Biochain R1234190-50 <NA> <NA> <NA> <NA> <NA> <NA>
eul2021 commented 2 years ago

Thank you very much, Saket.