Skip to content

Commit 3ae5ec6

Browse files
committed
removed perl gatc tracks rule
1 parent 7863452 commit 3ae5ec6

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

workflow/rules/resources.smk

+13-8
Original file line numberDiff line numberDiff line change
@@ -126,23 +126,28 @@ rule chrom_sizes:
126126

127127
rule make_gatc_tracks:
128128
input:
129-
sw="resources/damidseq_pipeline",
130129
fa=f"resources/{resources.genome}_{resources.build}_{maskedgenes}.masked.fa",
131130
output:
132131
f"resources/{resources.genome}_{resources.build}_{maskedgenes}.masked.GATC.gff",
133132
params:
134-
genome=lambda wildcards, output: output[0][:-9]
135-
threads: config["resources"]["fastqc"]["cpu"],
133+
genome=resources.genome,
134+
motif="GATC",
135+
extras="",
136+
threads: config["resources"]["damid"]["cpu"],
136137
resources:
137-
runtime=config["resources"]["fastqc"]["time"],
138+
runtime=45,
138139
conda:
139-
"../envs/damid.yaml",
140+
"../envs/peak_calling.yaml",
140141
log:
141142
"logs/make_gatc_tracks/tracks.log",
142143
shell:
143-
"perl resources/damidseq_pipeline/gatc.track.maker.pl "
144-
"--name={params.genome} "
145-
"{input.fa} > {log} 2>&1 "
144+
"python workflow/scripts/gatc.track.maker.py "
145+
"--genome {params.genome} "
146+
"--fasta {input.fa} "
147+
"--outfile {output} "
148+
"--threads {threads} "
149+
"--motif {params.motif} "
150+
"{params.extras} > {log} 2>&1 "
146151

147152

148153
rule bowtie2_build_index:

0 commit comments

Comments
 (0)