forked from databio/pepatac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_pipeline_interface.yaml
executable file
·56 lines (55 loc) · 4.49 KB
/
sample_pipeline_interface.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pipeline_name: PEPATAC
pipeline_type: sample
path: pipelines/pepatac.py
input_schema: pepatac_input_schema.yaml
output_schema: pepatac_output_schema.yaml
command_template: >
{pipeline.path}
--output-parent { looper.results_subdir }
--cores { compute.cores }
--mem { compute.mem }
--sample-name { sample.sample_name }
--input { sample.read1 }
{% if sample.read2 is defined %} --input2 { sample.read2 } {% endif %}
--single-or-paired { sample.read_type }
--genome { sample.genome }
{% if sample.chrom_sizes is defined %} --chrom-sizes { sample.chrom_sizes } {% elif refgenie[sample.genome].fasta is defined %} --chrom-sizes { refgenie[sample.genome].fasta.chrom_sizes } {% endif %}
{% if sample.TSS_name is defined %} --TSS-name { sample.TSS_name } {% elif refgenie[sample.genome].refgene_anno is defined %} --TSS-name { refgenie[sample.genome].refgene_anno.refgene_tss } {% endif %}
{% if sample.blacklist is defined %} --blacklist { sample.blacklist } {% elif refgenie[sample.genome].blacklist is defined %} --blacklist { refgenie[sample.genome].blacklist.blacklist } {% endif %}
{% if sample.anno_name is defined %} --anno-name { sample.anno_name } {% elif refgenie[sample.genome].feat_annotation is defined %} --anno-name { refgenie[sample.genome].feat_annotation.feat_annotation } {% endif %}
{% if sample.trimmer is defined %} --trimmer { sample.trimmer } {% else %} --trimmer "skewer" {% endif %}
{% if sample.aligner is defined %} --aligner { sample.aligner } {% set aligner = sample.aligner %} {% else %} --aligner "bowtie2" {% set aligner = "bowtie2" %} {% endif %}
{% if aligner == "bowtie2" or sample.aligner == "bowtie2" %} {% if sample.genome_index is defined %} --genome-index { sample.genome_index } {% elif refgenie[sample.genome].bowtie2_index is defined %} --genome-index { refgenie[sample.genome].bowtie2_index.dir } {% endif %} {% else %} {% if sample.genome_index is defined %} --genome-index { sample.genome_index } {% elif refgenie[sample.genome].bwa_index is defined %} --genome-index { refgenie[sample.genome].bwa_index.dir } {% endif %} {% endif %}
{% if sample.prealignment_index is defined %} --prealignment-index { sample.prealignment_index } {% endif %}
{% if sample.prealignment_names is defined %} {% if aligner == "bowtie2" or sample.aligner == "bowtie2" %} --prealignment-index {% for p in sample.prealignment_names %} { p ~ '=' ~ refgenie[p].bowtie2_index.dir } {% endfor %} {% else %} --prealignment-index {% for p in sample.prealignment_names %} { p ~ '=' ~ refgenie[p].bwa_index.dir } {% endfor %} {% endif %} {% endif %}
{% if sample.deduplicator is defined %} --deduplicator { sample.deduplicator } {% endif %}
{% if sample.peak_caller is defined %} --peak-caller { sample.peak_caller } {% else %} --peak-caller "macs3" {% endif %}
{% if sample.peak_type is defined %} --peak-type { sample.peak_type } {% else %} --peak-type "fixed" {% endif %}
{% if sample.extend is defined %} --extend { sample.extend } {% else %} --extend 250 {% endif %}
{% if sample.genome_size is defined %} --genome-size { sample.genome_size } {% else %} --genome-size "2.7e9" {% endif %}
{% if sample.frip_ref_peaks is defined %} --frip-ref-peaks { sample.frip_ref_peaks } {% endif %}
{% if sample.motif is defined %} --motif {% endif %}
{% if sample.sob is defined %} --sob {% endif %}
{% if sample.sob is defined %} {% if refgenie[sample.genome].tallymer_index is defined %} --search-file { refgenie[sample.genome].tallymer_index.search_file } {% endif %} {% endif %}
{% if sample.sob is defined %} {% if refgenie[sample.genome].fasta is defined %} --fasta { refgenie[sample.genome].fasta.fasta } {% endif %} {% endif %}
{% if sample.fasta is defined %} --fasta { sample.fasta } {% elif refgenie[sample.genome].fasta is defined %} --fasta { refgenie[sample.genome].fasta.fasta } {% endif %}
{% if sample.no_scale is defined %} --no-scale {% endif %}
{% if sample.prioritize is defined %} --prioritize {% endif %}
{% if sample.keep is defined %} --keep {% endif %}
{% if sample.no_fifo is defined %} --noFIFO {% endif %}
{% if sample.lite is defined %} --lite {% endif %}
{% if sample.skipqc is defined %} --skipqc {% endif %}
compute:
singularity_image: ${SIMAGES}pepatac
conda_env: pepatac
docker_image: databio/pepatac
bulker_crate: databio/pepatac:1.0.10
size_dependent_variables: resources-sample.tsv
bioconductor:
readFunName: runCOCOA
readFunPath: BiocProject/runCOCOA.R
var_templates:
refgenie_config: "$REFGENIE"
pre_submit:
python_functions:
- refgenconf.looper_refgenie_populate