GithubHelp home page GithubHelp logo

Comments (3)

jessieren avatar jessieren commented on July 19, 2024

Hi Alex,

Thanks for using DeepVirFinder.

To help me debug, could you print the input and output of line 212?

print(code)
out = zip(*pool.map(pred, range(0, len(code))))
print(out)

See what you get? Thanks.

Jie

from deepvirfinder.

alexmsalmeida avatar alexmsalmeida commented on July 19, 2024

Hi Jie,

Thanks for the quick reply. After playing around with it some more I actually figured it was due to the length filtering I was putting it. It was too high so none of the contigs were passing through.

Thanks again,
Alex

from deepvirfinder.

EarlyEvol avatar EarlyEvol commented on July 19, 2024

If you have a fasta with many small seqs at the end, dvf.py will throw this error. Basically if no sequences pass the size filter in the 100 sequence chunk at the end of the fasta file, the "code" variable will be empty, but pred will still get called. I added an if statement (line 209 in my version) that fixed the issue.

if len(code) >= 1:
           print("   processing line "+str(lineNum))
           pool = multiprocessing.Pool(core_num)
           head, score, pvalue = zip(*pool.map(pred, range(0, len(code))))

from deepvirfinder.

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.