Git Product home page Git Product logo

Comments (4)

Matteopaluh avatar Matteopaluh commented on June 9, 2024

Thank you for the kind words Shail,
this one was definitely a very dull error on my side, my bad.

With the recent commit it should be fixed, as I wrote the code as if the logging option was always chosen.

I'll suggest to clone again the repository and moving your files in the new one, to try again.
Feel free to reopen if the problem is not properly fixed.

Best regards,
Matteo

from kemet.

ShailNair avatar ShailNair commented on June 9, 2024

i used --log option but now throws a a new error

`python kemet.py genomes/mcs.fasta -a kofamkoala --hmm_mode kos --log

Traceback (most recent call last):
File "kemet.py", line 2531, in
ktest, KOs = kofamXktest(file, file.rsplit(".",1)[0]+".ktest", KAnnotation_directory, ktests_directory)
File "kemet.py", line 155, in kofamXktest
fastaslice = spacer.index(" ",1)+1

ValueError: substring not found
`

The same error occurs with the updated repository (without --log option)

i used kofamkoala ko output as kegg annotations. e.g.

g1.t1
g2.t1 K01689
g3.t1
g4.t1 K22696

from kemet.

Matteopaluh avatar Matteopaluh commented on June 9, 2024

Hi again,
the log issue is solved then.

Regarding this other problem with kofam, I believe it is due to a wrong annotation type selection.

In the KEMET toy folder, here, there are indications on the expected format of annotation files, how those should be structured, based on the various softwares output.

From the example you added, KoFamKOALA with KO output results in a "kaas-like" annotation as the "bin1_ko.txt" file from toy folder (i.e. a tab separated file, with two fields - 1st for gene name/locus, 2nd for KEGG KO).

Therefore, I'd suggest to clean the output folders (the ones with "reports") use a different command than the one you used, as KEMET won't find any KoFamKOALA formatted files:

python kemet.py genomes/mcs.fasta -a kaas --hmm_mode kos --log

I'll also highlight the formatting rules fom other potential users! Thanks.
This should resolve the issue.

from kemet.

ShailNair avatar ShailNair commented on June 9, 2024

thanks. that worked.

from kemet.

Related Issues (15)

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.