Skip to content

Commit 8ac33d9

Browse files
committed
fixed linting issues
1 parent c029e58 commit 8ac33d9

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

workflow/rules/damid.smk

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ rule damidseq_pipeline: # ignore dir wildcard in expand statement (double braces
22
input:
33
git="resources/damidseq_pipeline",
44
flag=expand("results/trimmed/{dir}/{sample}.flag", dir=DIRS, sample=SAMPLES),
5-
gatc=f"resources/{resources.genome}.GATC.gff",
5+
gatc=f"resources/genome.GATC.gff",
66
idx=multiext(
7-
f"resources/bowtie2_index/{resources.genome}/index",
7+
f"resources/bowtie2_index/index",
88
".1.bt2",
99
".2.bt2",
1010
".3.bt2",
@@ -13,7 +13,7 @@ rule damidseq_pipeline: # ignore dir wildcard in expand statement (double braces
1313
".rev.2.bt2",
1414
),
1515
params:
16-
idxdir=f"resources/bowtie2_index/{resources.genome}/index",
16+
idxdir=f"resources/bowtie2_index/index",
1717
paired=paired_end(),
1818
extra=config["extra"],
1919
output:

workflow/rules/resources.smk

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ rule chrom_sizes:
4040
threads: config["resources"]["plotting"]["cpu"]
4141
resources:
4242
runtime=config["resources"]["plotting"]["time"]
43+
conda:
44+
"../envs/damid.yaml"
4345
shell:
4446
"awk '{{print $1,$2}}' {input.fai} | "
4547
r"sed 's/ /\t/' > {output}"

workflow/rules/setup.smk

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ rule make_gatc_tracks:
33
sw="resources/damidseq_pipeline",
44
fa=resources.fasta,
55
output:
6-
gatc=f"resources/{resources.genome}.GATC.gff",
6+
gatc=f"resources/genome.GATC.gff",
77
params:
8-
genome=f"resources/{resources.genome}",
8+
genome=f"resources/genome",
99
threads: config["resources"]["fastqc"]["cpu"],
1010
resources:
1111
time=config["resources"]["fastqc"]["time"],
1212
conda:
1313
"../envs/damid.yaml",
1414
log:
15-
f"logs/make_gatc_tracks/{resources.genome}.log",
15+
f"logs/make_gatc_tracks/tracks.log",
1616
shell:
1717
"perl resources/damidseq_pipeline/gatc.track.maker.pl "
1818
"--name={params.genome} "
@@ -24,7 +24,7 @@ rule bowtie2_build_index:
2424
ref=resources.fasta,
2525
output:
2626
multiext(
27-
f"resources/bowtie2_index/{resources.genome}/index",
27+
f"resources/bowtie2_index/index",
2828
".1.bt2",
2929
".2.bt2",
3030
".3.bt2",

workflow/scripts/average_bigwig.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
#DELETE THIS SCRIPT LATER
2+
13
from snakemake.shell import shell
24

35
# Load Snakemake variables
46
log = snakemake.log_fmt_shell(stdout=True, stderr=True)
57
threads = snakemake.threads
68

79
all_bw = snakemake.input
8-
sample = snakemake.wildcards["sample"]
10+
sample = snakemake.wildcards["bg_sample"]
911
out = snakemake.output["bw"]
1012

1113
# Get all samples in condition

workflow/scripts/general_functions.smk

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def samples(bedgraph=False):
3838
not_found.append(r1)
3939
if len(not_found) != 0:
4040
not_found = "\n".join(not_found)
41-
raise ValueError(f"ERROR: following files not found:\n{not_found}")
41+
raise ValueError(f"following files not found:\n{not_found}")
4242

4343
# Only return non-Dam samples if bedgraph is True
4444
if bedgraph:

0 commit comments

Comments
 (0)