Questions tagged [snakemake]

Snakemake is a workflow management system with a Python-style specification language.

Snakemake is a workflow management system with a Python-style specification language.

1634 questions
0
votes
1 answer

Missing input files from a directory with Snakemake

I'm trying to write a script for a pipeline, but I'm having trouble declaring the input of a rule from a directory. My code in these parts: rule taco: input: all_gtf = GTF_DIR + "path_samplesGTF.txt" output: taco_out…
0
votes
1 answer

Bare bones necessary to run pipeline on snakemake?

I have to perform imputation of genetic information, but scripts and files are located on different locations. There are some parallel jobs for could (cluster) involved as well. Too much of a manual running-waiting is necessary to get job done. In…
juststuck
  • 616
  • 5
  • 17
0
votes
1 answer

How to target HDF5 datasets as Snakemake input/output?

How can I tell Snakemake that the input/output of a rule should be an HDF5 dataset (so with its own specific "path" within the actual real HDF5 file path)?
Nisba
  • 3,210
  • 2
  • 27
  • 46
0
votes
2 answers

Snakemake read input from file

I am trying to use file that will be written during the run as an input to another rule, but it always give me error FileNotFoundError: [Errno 2] No such file or directory: Is there a way to fix it or other implementation to have the same logic. def…
Medhat
  • 1,622
  • 16
  • 31
0
votes
1 answer

How can I run a subset of my snakemake rules several times with wildcards?

I have a snakemake pipeline in which the input files are divided into two groups - input I would like to pass through the entire pipeline (true input) and input that should only pass through the first few rules (control input). How can I pass the…
Tobi
  • 27
  • 4
0
votes
0 answers

Can a snakemake rule allow empty output files?

I have a rule in a snakemake workflow that might produce an empty output file, depending on the input. That output file is then used in another rule whose command will be totally ok with an empty file as input, as long as the path exists for that…
Colin
  • 10,447
  • 11
  • 46
  • 54
0
votes
0 answers

Run entire Snakemake pipeline in a scratch space

I'm wondering if it's possible to run the entire Snakemake pipeline in a scratch space? I understand that the shadow directive allows one to run rules in isolated directories, but is it possible to do that for entire pipeline without having to write…
Vivek Rai
  • 890
  • 1
  • 9
  • 22
0
votes
0 answers

split bam files to (variable) pre-defined number of small bam files depending on the sample

I want to split multiple bam files to pre-determined number of smaller bam files. I do not know how to specify the output because the number of smaller bam files is variable depending on which samples I am splitting. I have read…
crazyhottommy
  • 310
  • 1
  • 3
  • 8
0
votes
1 answer

How to access variables defined in the snakefile in a snakemake wrapper?

I would like to write a snakemake wrapper able to adapt its behaviour based on the value of variables defined in the main snakefile. This doesn't seem to simply work, I get a NameError when I try to use such a variable in the wrapper. In particular,…
bli
  • 7,549
  • 7
  • 48
  • 94
0
votes
1 answer

How to ensure snakemake rule dependency while submitting via qsub

I am using Snakemake to submit jobs to the cluster. I am facing a situation where I would like to force a particular rule to run only after all other rules have run - this is because the input files for this job (R script) are not yet ready. I…
user10101904
  • 427
  • 2
  • 12
0
votes
1 answer

Snakemake on gatk VariantRecalibrator

I am new in using snakemake, I have an issue when doing the step gatk VariantRecalibrator on snakemake, it generated error but the script can run without error when not in snakemake format. import snakemake.io import…
Peter Chung
  • 1,010
  • 1
  • 13
  • 31
0
votes
1 answer

Snakemake - input function exception

I am trying to run snakemake code using.json file as input. While checking the dry run i got foloowing error InputFunctionException in line 172 of /home/Snakefile_ChIPseq_pe: KeyError: '130241_1' Wildcards: library=130241_1 This is the part of…
RonicK
  • 229
  • 2
  • 3
  • 10
0
votes
1 answer

Snakemake › Access multiple keys from config file

I have the question about the proper handling of the config file. I'm trying to solve my issue for a couple of days now but with the best will, I just can't find out how to do it. I know that this question is maybe quite similar with all the others…
VcFbnne
  • 41
  • 5
0
votes
1 answer

Why one snakemake rule is always skipped or ignored

I am trying to fix a Snakefile. There are two rules (see the code below), each one would work if it's the only one, but only the rule prernaseqc would work when both are kept. It seems that snakemake totally ignores the other. I tried to touch file…
coder2019
  • 21
  • 1
0
votes
1 answer

Snakemake report error:Missing input files for rulle all

I'm writing my RNA-seq pipeline using Snakemake. When I was writing the last part rule fpkm, which calculates fpkm value from bam files, I get the error: MissingInputException in line 3 of /root/s/r/snakemake/my_rnaseq_data/Snakefile: Missing input…
shebentao
  • 87
  • 11
1 2 3
99
100