Closed MattArran closed 4 months ago
A similar issue's encountered if there are the special characters "
, $
, or \
in a description line, so these should also be replaced. The character *
is already replaced, and the workflow can handle the other special characters ^
, &
, and .
.
Hi @MattArran!
Thanks for raising this and providing the extra information. This will be fixed in the next release.
This was fixed in the most recent version (v1.0.4). Please re-open this issue if the problem persists.
Operating System
Ubuntu 22.04
Other Linux
No response
Workflow Version
v1.0.2-g8314146
Workflow Execution
Command line
EPI2ME Version
No response
CLI command run
Successful command:
nextflow run epi2me-labs/wf-amplicon --fastq fastq --reference reference.fasta --threads 4 -profile singularity
Unsuccessful command:nextflow run epi2me-labs/wf-amplicon --fastq fastq --reference reference_tab.fasta --threads 4 -profile singularity
Inputs
fastq
,reference.fasta
andreference_tab.fasta
included in zipped file inputs.zip.Workflow Execution - CLI Execution Profile
singularity
What happened?
The workflow runs successfully with the input data in the wf-amplicon workflow's
test_data
folder, but fails when text is added after a tab character to one of the reference sequence's description line, with the log output below.The tab and the text after it are included in the variable
ref_id
inmodules/local/common.nf
, which specifies the value ofREF_ID
in the relevant mosdepth process'command.sh
script (REF_ID="katG__NC_000962.3_2154725-2155670 testing,_testing,_testing"
). But the tab and text are not then included in the corresponding idxstats file/users/matarran/debug/work/7d/2f653fbd314ef0d897cdc068151da1/idxstats
(contents copied below), within which$REF_ID
is sought. I imagine the easiest solution is to add tabs to the list of special characters that are replaced by underscores by the processsanitizeRefFile
ofmodules/local/variant-calling.nf
.idxstats
file contents:Relevant log output
Application activity log entry
No response