Giter Site home page Giter Site logo

Comments (11)

saketkc avatar saketkc commented on June 19, 2024

It looks like these GSEs are not yet available in SRAmetadb.sqlite. Unfortunately, I do not have a timeline for when these projects will be accessible through pysradb as it depends on updates upstream.

from pysradb.

saketkc avatar saketkc commented on June 19, 2024

Hi @himanshusingh2018, I am going to close this since your query is limited by SRAmetadb.sqlite itself. Please feel free to re-open if you face any difficulty with pysradb. Thanks for using pysradb.

from pysradb.

himanshusingh2018 avatar himanshusingh2018 commented on June 19, 2024

Hi @saketkc. Thank you for helping me in the regard. However, I have just one query that can we add any GSE dataset in SRAmetadb.sqlite manually?
Thanks

from pysradb.

saketkc avatar saketkc commented on June 19, 2024

In theory, yes. But it will require you to update the records across tables.

Scripts to generate SRAmetadb.sqlite are not public and hence manually adding datasets is not possible, practically.

from pysradb.

himanshusingh2018 avatar himanshusingh2018 commented on June 19, 2024

Thank you for your response. Can you suggest me something, where I can get all the datasets available on SRA db? Like we fetch in pysradb...
Thanks

from pysradb.

saketkc avatar saketkc commented on June 19, 2024

You can try SRAdbv2: https://github.com/seandavi/SRAdbV2

from pysradb.

himanshusingh2018 avatar himanshusingh2018 commented on June 19, 2024

Thank you for your suggestion.

from pysradb.

himanshusingh2018 avatar himanshusingh2018 commented on June 19, 2024

Hi Saket,
Is it possible with pysradb to convert list of GSM id into corresponding SRR ID? For example, I want to convert GSM1534712, GSM1534713, GSM1534714 to their SRR Id and want to save the list in any text file.

Thanks
Himanshu

from pysradb.

saketkc avatar saketkc commented on June 19, 2024

Yes, you can use gsm-to-srr subcommand for this.

from pysradb.

himanshusingh2018 avatar himanshusingh2018 commented on June 19, 2024

I am reading a file then parsing the value of GSM ID in python code.

working code
cmd = "pysradb gsm-to-srr --desc --expand --detailed --db SRAmetadb.sqlite GSM1055806 --saveto gsm_srr_description.txt"
subprocess.call(cmd,shell=True)

I want to extract for multiple GSM ID (which is read from a text file) details. Below is my code. Your help is appreciated.

Its not working. Please help.
list = ['GSM1055806', 'GSM1055807']
cmd = "pysradb gsm-to-srr --desc --expand --detailed --db SRAmetadb.sqlite "+print(*list,spe=" ")+ " --saveto gsm_srr_description.txt"
subprocess.call(cmd,shell=True)

from pysradb.

saketkc avatar saketkc commented on June 19, 2024

Hi @himanshusingh2018 ,

With the latest version of pysradb (0.9.6) you should be able to obtain the metadata even if it is not available in the SRAmetadb.sqlite file.

$ pysradb  gse-to-gsm  GSE80990
study_alias experiment_alias experiment_accession
 SRP074240   GSM2946898       SRX3596655         
 SRP074240   GSM2946897       SRX3596654         
 SRP074240   GSM2946896       SRX3596653         
 SRP074240   GSM2946895       SRX3596652         
$ pysradb gsm-to-srr GSM1055806 GSM1055807
experiment_alias run_accession
 GSM1055807       SRR639051   
 GSM1055806       SRR639050   

Please let me know if you face any issue. Thanks!

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.