Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main_AmrPlusPlus_v2_withRGI.nf #21

Open
XC-Zhai opened this issue Jun 5, 2021 · 1 comment
Open

main_AmrPlusPlus_v2_withRGI.nf #21

XC-Zhai opened this issue Jun 5, 2021 · 1 comment

Comments

@XC-Zhai
Copy link

XC-Zhai commented Jun 5, 2021

Hello, I am new user for Amr++, when I run the following (not using Singularity):
nextflow run "/mnt/raid5/xichuan/amrplusplus_v2/amr_test/amrplusplus_v2/main_AmrPlusPlus_v2_withRGI.nf" --card_db "/mnt/raid5/xichuan/amrplusplus_v2/card.json" --reads "/mnt/raid5/xichuan/*R{1,2}_001.fastq.gz" --output test_arm -w work_dir

I got the following error:

N E X T F L O W ~ version 21.04.1
Launching /mnt/raid5/xichuan/amrplusplus_v2/amr_test/amrplusplus_v2/main_AmrPlusPlus_v2_withRGI.nf [pensive_avogadro] - revision: 77e0805d3d
[- ] process > RunQC -
[- ] process > QCStats -
[- ] process > BuildHostIndex -
[- ] process > AlignReadsToHost -
[- ] process > RemoveHostDNA -
[- ] process > HostRemovalStats -
[- ] process > NonHostReads -
[- ] process > BuildAMRIndex -
[- ] process > AlignToAMR -
[- ] process > RunResistome -
[- ] process > ResistomeResults -
[- ] process > SamDedupRunResistome -
[- ] process > SamDedupResistomeResults -
[- ] process > RunRarefaction -
[- ] process > ExtractSNP -
[- ] process > RunRGI -
[- ] process > SNPconfirmation -
[- ] process > Confirmed_AMR_hits -
[- ] process > Confirmed_ResistomeResults -
[- ] process > ExtractDedupSNP -
[- ] process > RunDedupRGI -
[- ] process > DedupSNPconfirmation -
[- ] process > ConfirmDedupAMRHits -
[- ] process > DedupSNPConfirmed_ResistomeResults -
Error executing process > 'BuildHostIndex (chr21.fasta)'

Caused by:
Unknown variable 'BWA' -- Make sure it is not misspelt and defined somewhere in the script before using it

Source block:
"""
${BWA} index ${host}
"""

Tip: view the complete command output by changing to the process work dir and entering the command cat .command.out

Best,
Xichuan

@TakacsBertalan
Copy link

TakacsBertalan commented Oct 13, 2021

Hi!
I ran into the same problem, for me changing "${BWA}" to simply "bwa" in the main_AmrPlusPlus_v2_withRGI.nf script solved the issue. Although this only works if bwa is added to your path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants