Hello,
I ran Trinity with this command
Trinity --seqType fq --max_memory 20G --left 2025-bark-1b_R1.fastq --right 2025-bark-1b_R2.fastq --SS_lib_type RF --CPU 8
but i got this error:
----------------------------------------------
--------------- Inchworm ---------------------
-- (Linear contig construction from k-mers) --
----------------------------------------------
* Running CMD: /home/snar/tools/trinityrnaseq-2.2.0/Inchworm/bin//inchworm --kmers jellyfish.kmers.fa --run_inchworm -K 25 -L 25 --monitor 1 --num_threads 6 --PARALLEL_IWORM > /home/snar/trial/trinity_out_dir/inchworm.K25.L25.fa.tmp
sh: line 1: 6941 Aborted /home/snar/tools/trinityrnaseq-2.2.0/Inchworm/bin//inchworm --kmers jellyfish.kmers.fa --run_inchworm -K 25 -L 25 --monitor 1 --num_threads 6 --PARALLEL_IWORM > /home/snar/trial/trinity_out_dir/inchworm.K25.L25.fa.tmp 2> tmp.6104.stderr
Kmer length set to: 25
Min assembly length set to: 25
Monitor turned on, set to: 1
setting number of threads to: 6
-setting parallel iworm mode.
-reading Kmer occurrences...
[239M] Kmers parsed.
done parsing 239420656 Kmers, 239420656 added, taking 367 seconds.
TIMING KMER_DB_BUILDING 367 s.
Pruning kmers (min_kmer_count=1 min_any_entropy=0 min_ratio_non_error=0.05)
Pruned 3528884 kmers from catalog.
Pruning time: 313 seconds = 5.21667 minutes.
TIMING PRUNING 313 s.
-populating the kmer seed candidate list.
Kcounter hash size: 239420656
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Error, cmd: /home/snar/tools/trinityrnaseq-2.2.0/Inchworm/bin//inchworm --kmers jellyfish.kmers.fa --run_inchworm -K 25 -L 25 --monitor 1 --num_threads 6 --PARALLEL_IWORM > /home/snar/trial/trinity_out_dir/inchworm.K25.L25.fa.tmp 2>tmp.6104.stderr died with ret 34304 at /home/snar/tools/trinityrnaseq-2.2.0/PerlLib/Pipeliner.pm line 102
Pipeliner::run('Pipeliner=HASH(0x24a4598)') called at /home/snar/tools/trinityrnaseq-2.2.0/Trinity line 2058
eval {...} called at /home/snar/tools/trinityrnaseq-2.2.0/Trinity line 2053
main::run_inchworm('/home/snar/trial/trinity_out_dir/inchworm.K25.L25.fa', 'both.fa', 'RF', '') called at /home/snar/tools/trinityrnaseq-2.2.0/Trinity line 1428
main::run_Trinity() called at /home/snar/tools/trinityrnaseq-2.2.0/Trinity line 1209
eval {...} called at /home/snar/tools/trinityrnaseq-2.2.0/Trinity line 1208
If it indicates bad_alloc(), then Inchworm ran out of memory. You'll need to either reduce the size of your data set or run Trinity on a server with more memory available.
** The inchworm process failed.[snar@hypercube trial]$
Why is this happening? Can anyone help me?
Thank you
You've kinda answered your own question:
Actually this verse below included in the error that i copied.
"If it indicates bad_alloc(), then Inchworm ran out of memory. You'll need to either reduce the size of your data set or run Trinity on a server with more memory available. ** The inchworm process failed.[snar@hypercube trial]$ "
I do not know why they are out of the box. I already run it in a server. That's why I felt weird why it ran out of memory.