Giter Site home page Giter Site logo

Comments (3)

Maarten-vd-Sande avatar Maarten-vd-Sande commented on July 20, 2024

Current solution for me is to look up the sample first on GEOparse and use its SRX number and continue with that with pysradb. I guess that's as good as it gets in these cases right?

from pysradb.

saketkc avatar saketkc commented on July 20, 2024

The problem seems to arise because https://www.ncbi.nlm.nih.gov/sra/?term=GSM3832552 returns empty results (because for some reason GSM3832552 was not properly propogated in the metadata records on SRA).

You can get all the metadata using pysradb, though it requires two calls:

$ pysradb gsm-to-srx GSM3832552
experiment_alias experiment_accession
GSM3832552       SRX5706709 
$ pysradb metadata SRX5706709
study_accession experiment_accession experiment_title                experiment_desc                 organism_taxid  organism_name library_strategy library_source library_selection library_layout sample_accession sample_title instrument           total_spots total_size  run_accession run_total_spots run_total_bases
SRP192924       SRX5706709           EC_038_HCCaEC ChIP-seq H3K27ac  EC_038_HCCaEC ChIP-seq H3K27ac  9606            Homo sapiens  ChIP-Seq         GENOMIC        ChIP              SINGLE         SRS4480310                    Illumina HiSeq 2500  51976162    1673205843  SRR8925655    51976162        2650784262    

The GSM to SRX command fetches records from GEO.

from pysradb.

Maarten-vd-Sande avatar Maarten-vd-Sande commented on July 20, 2024

Ah somehow I did not think of that 🤦 , thanks! That saves another dependency.

from pysradb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.