GithubHelp home page GithubHelp logo

Comments (7)

mtisza1 avatar mtisza1 commented on September 1, 2024

Thanks again for opening an issue. I had someone else reach out to me with a similar issue. I'm working to fix this right now, and I'll let you know when I've worked out the kinks.

For a quick fix, you can reduce the number of input sequences by splitting your fasta file. something like this (filters sequences < 1000 from a file named MY_CONTIGS.fasta, splits by 10,000 sequences per file):

bioawk -c fastx '{ if (length($seq)>=1000) {print ">"$name ; print $seq }}' MY_CONTIGS.fasta | awk 'BEGIN {n_seq=0;} /^>/ {if(n_seq%10000==0){file=sprintf("MY_SPLIT_SEQUENCES_%d.fasta",n_seq);} print >> file; n_seq++; next;} { print >> file; }'

Regards,

Mike

from cenote-taker2.

DarrenObbard avatar DarrenObbard commented on September 1, 2024

I'm running cenote-taker2 on around 250 datasets, so it would be a certain amount of hassle to add in extra steps to split this file up and then run it on each of the split files.

Is there a particular reason my suggestion above won't work? (As I say, I don't understand the purpose of the find options you've used.)

from cenote-taker2.

mtisza1 avatar mtisza1 commented on September 1, 2024

Darren,

I do think your suggestions will work, but I use the find * -maxdepth 0 dozens of times, so I'm worried it will break something unexpectedly when I change all of these instances. So, I'm testing many datasets on this change before I push an update with the change (I believe it did cause an issue in one place). Life has been getting in the way a little bit, but I hope to have this fixed soon.

Mike

from cenote-taker2.

mtisza1 avatar mtisza1 commented on September 1, 2024

Hi Darren,

I just pushed some updates (v2.1.3) which should fix the find command issues. I've also included new RdRp HMMs, in part from the sequences you sent me a while ago. Thanks so much for the help. Please do:

conda activate cenote-taker2_env
cd Cenote-Taker2
git pull
python update_ct2_databases.py --hmm True

I hope this works for you.

Cheers,

Mike

from cenote-taker2.

DarrenObbard avatar DarrenObbard commented on September 1, 2024

Great! Thanks, trying it now!

from cenote-taker2.

DarrenObbard avatar DarrenObbard commented on September 1, 2024

Hi! In version 2.1.3 I still get one of these when its clearing up:

removing ancillary files
/data/home/dobbard/apps/CenoteTaker2/cenote-taker2.1.3.sh: line 2181: /usr/bin/rm: Argument list too long

from cenote-taker2.

mtisza1 avatar mtisza1 commented on September 1, 2024

OK I've changed the rm commands at the end of the script to utilize find, so I hope this is resolved. Please do:

cd Cenote-Taker2
git pull

from cenote-taker2.

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.