Git Product home page Git Product logo

Comments (9)

chansigit avatar chansigit commented on June 8, 2024 1
metadata = requests.get("https://trace.ncbi.nlm.nih.gov/Traces/sra-db-be/runinfo?acc="+pacc) 

seems work

from grabseqs.

AntonioBaeza avatar AntonioBaeza commented on June 8, 2024 1

Thank you chansigit, it is working again

from grabseqs.

deyuanyang avatar deyuanyang commented on June 8, 2024

same

from grabseqs.

AntonioBaeza avatar AntonioBaeza commented on June 8, 2024

same problem than Nov 2022:

(grabseqs) ant@hillary:/LemonSharkGSS$ grabseqs sra SRR23340818 -t 12
Traceback (most recent call last):
File "/home/ant/miniconda3/envs/grabseqs/bin/grabseqs", line 11, in
sys.exit(main())
File "/home/ant/miniconda3/envs/grabseqs/lib/python3.7/site-packages/grabseqslib/init.py", line 58, in main
metadata_agg = process_sra(args, zip_func)
File "/home/ant/miniconda3/envs/grabseqs/lib/python3.7/site-packages/grabseqslib/sra.py", line 31, in process_sra
metadata_agg)
File "/home/ant/miniconda3/envs/grabseqs/lib/python3.7/site-packages/grabseqslib/sra.py", line 97, in get_sra_acc_metadata
run_col = lines[0].index("Run")
ValueError: 'Run' is not in list
(grabseqs) ant@hillary:
/LemonSharkGSS$

At that time, I followed your (below) suggestion and it went back to work:
Try replacing /usr/local/lib/python3.6/site-packages/grabseqslib/sra.py line 94 with
metadata = requests.get("https://trace.ncbi.nlm.nih.gov/Traces/sra-db-be/sra-db-be.cgi?rettype=runinfo&term="+pacc)

Any new suggestion? Thank you!

from grabseqs.

xsq2022 avatar xsq2022 commented on June 8, 2024

It didn't work.

from grabseqs.

LeeYEAH2 avatar LeeYEAH2 commented on June 8, 2024

sra.txt
rename this txt with sra.py and copy it to /yourpathto/grabseqslib/. replacing the former one will solve the problem for now. It is caused by the replacement of trace.ncbi I suppose. If it doesn't work again, just check whether the path https://trace.ncbi.nlm.nih.gov/Traces/sra-db-be is still working and find a new one.

from grabseqs.

chansigit avatar chansigit commented on June 8, 2024

doesn't work again

from grabseqs.

UmerFarooq17 avatar UmerFarooq17 commented on June 8, 2024

if someone is facing this issue now, then try replacing
/usr/local/lib/python3.6/site-packages/grabseqslib/sra.py line 45 with
metadata = requests.get("https://trace.ncbi.nlm.nih.gov/Traces/sra-db-be/sra-db-be.cgi?rettype=runinfo&term="+pacc)

from grabseqs.

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.