Giter Site home page Giter Site logo

[BUG] JsonDecodeError about pysradb HOT 2 OPEN

saketkc avatar saketkc commented on July 20, 2024
[BUG] JsonDecodeError

from pysradb.

Comments (2)

saketkc avatar saketkc commented on July 20, 2024

Thanks for creating a reproducible example. My guess is a long list of ids is causing SRA to timeout. I would suggest processing it in batches just the way you have done while I figure out if it can indeed be fixed.

from pysradb.

kpj avatar kpj commented on July 20, 2024

I ran into the same problem and also solved it with the same approach (iterating over chunks of the accession list).

For querying, this seems to be implemented for SraSearch already:

pysradb/pysradb/search.py

Lines 757 to 760 in c23d4a7

for i in range(0, len(uids), SRA_SEARCH_GROUP_SIZE):
current_uids = ",".join(
uids[i : min(i + SRA_SEARCH_GROUP_SIZE, len(uids))]
)

Would it make sense to do the same for SRAweb as well? It seems like all terms are simply joined so far:

pysradb/pysradb/sraweb.py

Lines 252 to 253 in c23d4a7

if isinstance(term, list):
term = " OR ".join(term)

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.