Closed ffertrindade closed 7 months ago
Can you try again, adding the --use-conda
option to snakemake? My guess is that you are running into an issue with a program not being available in your local environment. snpArcher has rule-specific conda environments to avoid various dependency conflicts for this reason, but you need to tell snakemake to use these environments with the --use-conda
option.
Let us know if that helps. If not, we can debug further.
Typically when I forget --use-conda
, I'll see a command not found
in the log. Seems like if this is the issue, then not all stderr is making it to the logs for index ref.
@cademirch it looks like in:
samtools faidx results/my_ref/data/genome/my_ref.fna --output results/my_ref/data/genome/my_ref.fna.fai >> logs/my_ref/index_ref/log.txt
We don't save stderr to the log, probably should fix that. My guess is that @ffertrindade doesn't have samtools installed in their path but does have bwa.
Hey guys
Thanks for the feedback!
@tsackton I'm running now adding what you suggest and It's working! It's already at mapping step.
After what you mentioned, I thought I'd check the job stdout (instead of the pipeline logs) and found the following
faidx: invalid option -- '-'
Usage: samtools faidx <file.fa|file.fa.gz> [
[...]]
So, the thing was that I probably have installed a different version of samtools.
Anyway, I think this is solved now. Thank you!!
Great!
Hi there!
I'm facing an issue while running snpArcher, but I cannot determine the exact source of the problem.
Here is the error that shows where the pipeline stopped:
And here is the end of
logs/my_ref/index_ref/log.txt
file:I'm attaching the logs and config files here, just in case they prove to be useful. I'm attempting to analyze data for 8 individuals with ~10x coverage, a genome size about 2Gb, and a local reference genome file. 2023-11-01T211947.870896.snakemake.log config.txt log.txt resources.txt samples.csv
For running, inside a pbs job script, I just activate the snakemake env and ran:
snakemake --snakefile workflow/Snakefile --cores 32
For installation, since I already had a snakemake env, I simply cloned snpArcher, tested it using the ecoli dataset, and everything went well.
Would you know what the problem could be?
Thanks! Fer