-
Notifications
You must be signed in to change notification settings - Fork 62
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
BACTOPIA:GATHER:GATHER_MODULE (SRR2838702)' #512
Comments
can you share the comand you used? |
Hii@rpetit3 |
try
|
Workflow execution completed unsuccessfully! The full error message was: Error executing process > 'BACTOPIA:GATHER:GATHER_MODULE (SRR2838702)' Caused by: Command executed: MERGED="multiple-read-sets-merged.txt" if [ "paired-end" == "paired-end" ]; then
elif [ "paired-end" == "merge-se" ]; then
elif [ "paired-end" == "sra_accession" ] || [ "paired-end" == "sra_accession_ont" ]; then
fi Validate input FASTQsIS_PAIRED="unknown"
fi Dump meta values to a TSVecho "sampleruntypeoriginal_runtypeis_pairedis_compressedspeciesgenome_size" | sed 's// /g' > SRR2838702-meta.tsv Capture versionscat <<-END_VERSIONS > versions.yml Command exit status: Command output: Command error: Work dir: Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command |
Just to verify, docker is installed and turned on? Also could you share the .nextflow.log file? |
yes docker installed and its turned on. I tried searching for the .nextflow.log it is not in the Bactopia runs except that where should I look for it. |
It will be in the directory you launched bactopia from. Did you install bactopia through conda? |
yes I installed it through Conda |
On the command line can you try
For some reason NextFlow is not using docker |
Unable to find image 'hello-world:latest' locally Hello from Docker! To generate this message, Docker took the following steps:
To try something more ambitious, you can run an Ubuntu container with: Share images, automate workflows, and more with a free Docker ID: For more examples and ideas, visit: |
Good! Now we have to figure out why Nextflow is not seeing docker. Can you try running like so:
Then we'll want to dig up a |
His @rpetit3 I ran the command and it ran sucessfully (bactopia) karinsauer@Karins-MacBook-Pro ~ % bactopia -profile test,arm | |__ __ _ | | ___ _ __ () __ _
|
Hii @rpetit3 (bactopia) karinsauer@Karins-MacBook-Pro ~ % bactopia --se fastqs/raw_reads.fastq.gz --sample raw_reasds --coverage 100 --genome_size 630000 --outdir OUTDIR --max_cpus 2 -profile docker | |__ __ _ | | ___ _ __ () __ _
|
Awesome! Nice to see it working. The QC step ran, what other modules were you expecting? |
Why there is no 100% in front of the modules after gather and also I don't see results like include in out directory |
In the |
I tried it again and this time iy ran successfully. I have another question about the further analysis using Bactopia Tools. My aim is to compare the clinical strains and the laboratory strains to see regions which are either repeated multiple times or absent in the clinical strains |
Would presence/absence of genes be able to answer your question? Or are these regions mostly intergenic? If the presence or absence will work, you can consider running the pangenome Bactopia tool. |
Hii Robert
I was trying to test the Bactopia using docker but it fails with this error
Workflow execution completed unsuccessfully!
The exit status of the task that caused the workflow execution to fail was: 127.
The full error message was:
Error executing process > 'BACTOPIA:GATHER:GATHER_MODULE (SRR2838702)'
Caused by:
Process
BACTOPIA:GATHER:GATHER_MODULE (SRR2838702)
terminated with an error exit status (127)Command executed:
MERGED="multiple-read-sets-merged.txt"
mkdir -p fastqs
mkdir -p extra
if [ "paired-end" == "paired-end" ]; then
# Paired-End Reads
cp -L 001-r1 fastqs/SRR2838702_R1.fastq.gz
cp -L 001-r2 fastqs/SRR2838702_R2.fastq.gz
touch extra/empty.fna.gz
elif [ "paired-end" == "single-end" ]; then
# Single-End Reads
cp -L 001-r1 fastqs/SRR2838702.fastq.gz
touch extra/empty.fna.gz
elif [ "paired-end" == "ont" ]; then
# Nanopore reads
cp -L 001-r1 fastqs/SRR2838702.fastq.gz
touch extra/empty.fna.gz
elif [ "paired-end" == "hybrid" ] || [ "paired-end" == "short_polish" ]; then
# Paired-End Reads
cp -L 001-r1 fastqs/SRR2838702_R1.fastq.gz
cp -L 001-r2 fastqs/SRR2838702_R2.fastq.gz
cp -L EMPTY_EXTRA extra/SRR2838702.fastq.gz
elif [ "paired-end" == "merge-pe" ] || [ "paired-end" == "hybrid-merge-pe" ] || [ "paired-end" == "short_polish-merge-pe" ]; then
# Merge Paired-End Reads
echo "This sample had reads merged." > ${MERGED}
echo "R1:" >> ${MERGED}
find -name "*r1" | sort | xargs -I {} readlink {} | xargs -I {} ls -l {} | awk '{print $5" "$9}' >> ${MERGED}
find -name "*r1" | sort | xargs -I {} readlink {} | xargs -I {} cat {} > fastqs/SRR2838702_R1.fastq.gz
echo "Merged R1:" >> ${MERGED}
ls -l fastqs/SRR2838702_R1.fastq.gz | awk '{print $5" "$9}' >> ${MERGED}
elif [ "paired-end" == "merge-se" ]; then
# Merge Single-End Reads
echo "This sample had reads merged." > ${MERGED}
echo "SE:" >> ${MERGED}
find -name "*r1" | sort | xargs -I {} readlink {} | xargs -I {} ls -l {} | awk '{print $5" "$9}' >> ${MERGED}
find -name "*r1" | sort | xargs -I {} readlink {} | xargs -I {} cat {} > fastqs/SRR2838702.fastq.gz
echo "Merged SE:" >> ${MERGED}
ls -l fastqs/SRR2838702.fastq.gz | awk '{print $5" "$9}' >> ${MERGED}
elif [ "paired-end" == "sra_accession" ] || [ "paired-end" == "sra_accession_ont" ]; then
if [ "1" == "3" ]; then
echo "Unable to download SRR2838702 from both SRA and ENA 3 times. This may or may
not be a temporary connection issue. Rather than stop the whole Bactopia run,
further analysis of SRR2838702 will be discontinued." |
sed 's/^\s*//' > SRR2838702-fastq-download-error.txt
exit
else
# Download accession from ENA/SRA
fastq-dl
--accession SRR2838702
--provider SRA
--cpus 1
--outdir fastqs/
--prefix SRR2838702
--group-by-experiment
touch extra/empty.fna.gz
fi
elif [ "false" == "true" ]; then
if [ "paired-end" == "assembly_accession" ]; then
if [ "1" == "3" ]; then
touch extra/empty.fna.gz
echo "Unable to download SRR2838702 from NCBI Assembly 3 times. This may or may
not be a temporary connection issue. Rather than stop the whole Bactopia run,
further analysis of SRR2838702 will be discontinued." |
sed 's/^\s*//' > SRR2838702-assembly-download-error.txt
exit
else
# Verify Assembly accession
check-assembly-accession.py SRR2838702 > accession.txt 2> check-assembly-accession.txt
fi
Validate input FASTQs
IS_PAIRED="unknown"
if [ "false" == "false" ]; then
ERROR=0
# Check paired-end reads have same read counts
OPTS="--sample SRR2838702 --min_basepairs 2241820 --min_reads 7472 --min_proportion 0.5 --runtype paired-end"
if [ -f "fastqs/SRR2838702_R2.fastq.gz" ]; then
# Paired-end
IS_PAIRED="true"
gzip -cd fastqs/SRR2838702_R1.fastq.gz | fastq-scan > r1.json
gzip -cd fastqs/SRR2838702_R2.fastq.gz | fastq-scan > r2.json
if ! reformat.sh in1=fastqs/SRR2838702_R1.fastq.gz in2=fastqs/SRR2838702_R2.fastq.gz qin=auto out=/dev/null 2> SRR2838702-paired-end-error.txt; then
ERROR=1
echo "SRR2838702 FASTQs contains an error. Please check the input FASTQs.
Further analysis is discontinued." |
sed 's/^\s*//' >> SRR2838702-paired-end-error.txt
else
rm -f SRR2838702-paired-end-error.txt
fi
fi
Dump meta values to a TSV
echo "sampleruntypeoriginal_runtypeis_pairedis_compressedspeciesgenome_size" | sed 's// /g' > SRR2838702-meta.tsv
echo "SRR2838702paired-endpaired-end$IS_PAIREDtruenull358242" | sed 's// /g' >> SRR2838702-meta.tsv
Capture versions
cat <<-END_VERSIONS > versions.yml$(echo $ (art_illumina --help 2>&1) | sed 's/^.Version //;s/ .$//')$(echo $ (fastq-dl --version 2>&1) | sed 's/fastq-dl, version //')$(echo $ (fastq-scan -v 2>&1) | sed 's/fastq-scan //')$(echo $ (ncbi-genome-download --version 2>&1))$(echo $ (pigz --version 2>&1) | sed 's/pigz //')
"BACTOPIA:GATHER:GATHER_MODULE":
art:
fastq-dl:
fastq-scan:
ncbi-genome-download:
pigz:
END_VERSIONS
Command exit status:
127
Command output:
(empty)
Command error:
.command.sh: line 127: fastq-scan: command not found
Work dir:
/Users/karinsauer/work/4f/60d85a5d84386597c91a4c8c76de9a
Tip: when you have fixed the problem you can continue the execution adding the option
-resume
to the run command lineRun times
03-May-2024 11:20:38 - 03-May-2024 11:20:46 (duration: 7.9s
The text was updated successfully, but these errors were encountered: