Jash Gopani
02/23/2024, 3:34 PMnextflow run ./phyloplace/main.nf -profile local_trial --queryseqfile "./seqtab_nochim_refs.fasta" --refseqfile "./aligned_seqs.
filtered.fas" --refphylogeny "tree.nwk" --outdir "./local_trial" --id "trial_phylogeny" --model "GTR+G" --alignmethod "mafft"
The error:
executor > local (3)
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_HMMBUILD -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_UNALIGNREF -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_HMMALIGNREF -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_HMMALIGNQUERY -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_MASKREF -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_MASKQUERY -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_AFAFORMATREF -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_AFAFORMATQUERY -
[67/7191e9] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:MAFFT (trial_phylogeny) [100%] 1 of 1 ✔
[09/bffc69] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_SPLIT (trial_phylogeny) [100%] 2 of 2, failed: 2, retries: 1 ✘
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_PLACE -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_GRAFT -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_ASSIGN -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_HEATTREE -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:CUSTOM_DUMPSOFTWAREVERSIONS [ 0%] 0 of 1
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:MULTIQC -
[91/13ae32] NOTE: Process `NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_SPLIT (trial_phylogeny)` terminated with an error exit status (134) -- Execution is retried (1)
ERROR ~ Error executing process > 'NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_SPLIT (trial_phylogeny)'
Caused by:
Process `NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_SPLIT (trial_phylogeny)` terminated with an error exit status (134)
Command executed:
epa-ng \
\
--split aligned_seqs.filtered.fas trial_phylogeny.fas
gzip -c query.fasta > trial_phylogeny.query.fasta.gz; rm query.fasta
gzip -c reference.fasta > trial_phylogeny.reference.fasta.gz; rm reference.fasta
cat <<-END_VERSIONS > versions.yml
"NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_SPLIT":
epang: $(echo $(epa-ng --version 2>&1) | sed 's/^EPA-ng v//')
END_VERSIONS
Command exit status:
134
Command output:
INFO Splitting files based on reference: aligned_seqs.filtered.fas
Command error:
INFO Splitting files based on reference: aligned_seqs.filtered.fas
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
.command.sh: line 4: 639272 Aborted (core dumped) epa-ng --split aligned_seqs.filtered.fas trial_phylogeny.fas
Work dir:
/home/jbgopani/Projects/phyloplace/work/09/bffc69e5cc9f01988ae4f04e6bcdf5
Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`
-- Check '.nextflow.log' file for detailsDaniel Lundin
02/23/2024, 4:59 PMDaniel Lundin
02/23/2024, 5:00 PM--alignmethod hmmer) which is not dependent on this step.Jash Gopani
02/24/2024, 11:36 PMDaniel Lundin
02/26/2024, 7:12 AMDaniel Lundin
02/26/2024, 6:42 PM? in the reference alignment sequences. Replacing them with - should make the pipeline work. (It's running in hmmer mode on my laptop and got past the place where it faulted before.)Daniel Lundin
02/26/2024, 6:43 PMDaniel Lundin
02/26/2024, 9:08 PM;-separated, 2nd column). If you do, you'll get a tsv file with taxonomy assigned to each of your input sequences.Jash Gopani
02/28/2024, 7:25 PM? and let you know. Thanks a lot 🙌Jash Gopani
02/29/2024, 3:42 AMJash Gopani
02/29/2024, 3:43 AMJash Gopani
02/29/2024, 3:45 AM[nf-core/phyloplace] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_HEATTREE (trial_phylogeny)'
Caused by:
Process `NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_HEATTREE (trial_phylogeny)` terminated with an error exit status (106)
Command executed:
gappa \
examine \
heat-tree \
--threads 2 \
--file-prefix trial_phylogeny.heattree. \
--jplace-path trial_phylogeny.epa_result.jplace.gz \
--write-nexus-tree --write-phyloxml-tree --write-svg-tree \
--log-file trial_phylogeny.heattree.log
executor > local (11)
[66/971563] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_HMMBUILD (trial_phylogeny) [100%] 1 of 1 ✔
[f0/dd6a53] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_UNALIGNREF (trial_phylogeny) [100%] 1 of 1 ✔
[79/9ab428] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_HMMALIGNREF (trial_phylogeny) [100%] 1 of 1 ✔
[34/8b9cda] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_HMMALIGNQUERY (trial_phylogeny) [100%] 1 of 1 ✔
[5e/6b17bf] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_MASKREF (trial_phylogeny) [100%] 1 of 1 ✔
[34/49dda5] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_MASKQUERY (trial_phylogeny) [100%] 1 of 1 ✔
[71/4bf4c3] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_AFAFORMATREF (trial_phylogeny) [100%] 1 of 1 ✔
[5a/ae3774] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:HMMER_AFAFORMATQUERY (trial_phylogeny) [100%] 1 of 1 ✔
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:MAFFT -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_SPLIT -
[40/e10715] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:EPANG_PLACE (trial_phylogeny) [100%] 1 of 1 ✔
[b9/068b20] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_GRAFT (trial_phylogeny) [100%] 1 of 1, failed: 1 ✘
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_ASSIGN -
[42/7486b9] process > NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_HEATTREE (trial_phylogeny) [100%] 1 of 1, failed: 1 ✘
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:CUSTOM_DUMPSOFTWAREVERSIONS -
[- ] process > NFCORE_PHYLOPLACE:PHYLOPLACE:MULTIQC -
INFO Selected: Output dir: ./
INFO Selected: Query file: trial_phylogeny.query.hmmalign.masked.afa.gz
INFO Selected: Tree file: tree_v2.nwk
INFO Selected: Reference MSA: trial_phylogeny.ref.hmmalign.masked.afa.gz
INFO Selected: Automatic switching of use of per rate scalers
INFO Selected: Preserving the root of the input tree
INFO Selected: Specified model: GTR+G
INFO Selected: Using threads: 8
INFO ______ ____ ___ _ __ ______
/ ____// __ \ / | / | / // ____/
/ __/ / /_/ // /| | ______ / |/ // / __
/ /___ / ____// ___ |/_____// /| // /_/ /
/_____//_/ /_/ |_| /_/ |_/ \____/ (v0.3.8)
WARN The reference MSA and tree have differing number of taxa! 2522 vs. 2507
INFO Using model parameters:
INFO Rate heterogeneity: GAMMA (4 cats, mean), alpha: 1 (ML), weights&rates: (0.25,0.136954) (0.25,0.476752) (0.25,1) (0.25,2.38629)
Base frequencies (ML): 0.25 0.25 0.25 0.25
Substitution rates (ML): 0.5 0.5 0.5 0.5 0.5 1
INFO Output file: ./epa_result.jplace
INFO 5000 Sequences done!
INFO 10000 Sequences done!
INFO 14361 Sequences done!
INFO Time spent placing: 1033s
INFO Elapsed Time: 1041s
Execution cancelled -- Finishing pending tasks before exit
-[nf-core/phyloplace] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_HEATTREE (trial_phylogeny)'
Caused by:
Process `NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_HEATTREE (trial_phylogeny)` terminated with an error exit status (106)
Command executed:
gappa \
examine \
heat-tree \
--threads 2 \
--file-prefix trial_phylogeny.heattree. \
--jplace-path trial_phylogeny.epa_result.jplace.gz \
--write-nexus-tree --write-phyloxml-tree --write-svg-tree \
--log-file trial_phylogeny.heattree.log
grep '^ *At' trial_phylogeny.heattree.log > trial_phylogeny.heattree.colours.txt
cat <<-END_VERSIONS > versions.yml
"NFCORE_PHYLOPLACE:PHYLOPLACE:FASTA_NEWICK_EPANG_GAPPA:GAPPA_HEATTREE":
gappa: $(echo $(gappa --version 2>&1 | sed 's/v//' ))
END_VERSIONS
Command exit status:
106
Command output:
(empty)
Command error:
A subcommand is required
Run with --help for more information.Daniel Lundin
02/29/2024, 6:23 AMgappa examine heat-tree ...) that does include a subcommand. What command line did you run? Did you use mafft?
(BTW, you get a warning from EPA-NG ("WARN The reference MSA and tree have differing number of taxa! 2522 vs. 2507"). Although it finished anyway, you should make sure the reference alignment is the alignment used to estimate the tree, which might not be the case since you get this warning. I'm writing "might" because certain phylogeny programs remove duplicate sequences and add them back, and something like might have happened. In any case, make sure the reference alignment and tree contain the same taxa.)Daniel Lundin
02/29/2024, 6:41 AM--alignmethod mafft when I ran with mafft).Jash Gopani
02/29/2024, 4:58 PMnextflow run ./phyloplace/main.nf -profile local_trial --queryseqfile "./seqtab_nochim_refs.fasta" --refseqfile "./aligned_seqs.filtered.fas" --refphylogeny "tree_v2.nwk" --outdir "./local_trial" --id "trial_phylogeny" --model "GTR+G" --alignmethod "mafft"
tried with and without mafft but both times the workflow failed.
I have made changes to the cpu and memory requirement in the config file, could that cause any issues? I don't think it should affect but since you've mentioned max_memory in the params.yml I thought I'd confirm onceJash Gopani
02/29/2024, 4:59 PMDaniel Lundin
02/29/2024, 5:03 PM--max_memory to make sure you're below physical RAM.Daniel Lundin
02/29/2024, 5:03 PM-params-file. My command was hence: nextflow run nf-core/phyloplace -r 1.0.0 -profile docker -params-file params.yml -resume.Daniel Lundin
02/29/2024, 5:08 PM-profile local_trial, is that something you define in a config file? (I can't see how that could cause the actual error you see, but might be worth turning all stones over.) Generally, to apply settings to a particular project you'd just create a nextflow.config with settings, but without creating a profile. You are using some container engine, or?Jash Gopani
02/29/2024, 5:43 PMreport {
file = "report.html"
enabled = true
overwrite = true
}
timeline {
file = "timeline.html"
enabled = true
overwrite = true
}
process {
echo = true
}
params {
limit = 5
}
profiles{
server31 {
params.limit = -1
params.resultFileName = 'results.txt'
params.storeDir = "/server31_work/nhmmer/"
process.echo = false
resume = true
}
server31_trial {
params.limit = 5
params.resultFileName = 'results_trial.txt'
params.storeDir = "/server31_work/nhmmer/"
resume = true
}
local_trial {
params.limit = 5
params.resultFileName = 'results_local.txt'
params.storeDir = "./local_trial/"
}
}
I use this config file for all my workflowsJash Gopani
02/29/2024, 5:44 PMJash Gopani
02/29/2024, 5:45 PMDaniel Lundin
02/29/2024, 5:54 PMdocker inbuilt nf-core profile? In theory, Conda should also work but might be trickier.Jash Gopani
02/29/2024, 6:09 PMJash Gopani
03/02/2024, 1:32 AMnextflow ./phyloplace/main.nf -with-docker nextflow_container -params-file params.ymlJash Gopani
03/02/2024, 1:35 AMJash Gopani
03/02/2024, 2:16 AMJash Gopani
03/02/2024, 2:16 AMDaniel Lundin
03/04/2024, 9:33 AM-profile docker and it will pull the correct containers.Daniel Lundin
03/04/2024, 9:35 AMnextflow run nf-core/phyloplace -r 1.0.0 -profile docker -params-file params.yml. (The -r 1.0.0 isn't necessary but good practice.)Daniel Lundin
03/04/2024, 9:36 AMJash Gopani
03/07/2024, 12:58 AM