Skip to content

Commit

Permalink
fix: add gather back to frip rule, using different wild card (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong authored Nov 6, 2024
1 parent be2a788 commit c9f3f9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ rule deeptools_gene_all:

rule FRiP_macsN:
input:
bed = join(macsN_dir, "{name}", "{name}_peaks.narrowPeak"),
peaks = expand(join(macsN_dir, "{SID}", "{SID}_peaks.narrowPeak"), SID=chips),
bam = join(bam_dir, "{name}.Q5DD.bam"),
output:
join(peakqc_dir, "macsNarrow", "macsNarrow.{name}.Q5DD.FRiP_table.txt"),
Expand All @@ -482,7 +482,7 @@ rule FRiP_macsN:
trap 'rm -rf "${{tmp}}"' EXIT
python {params.script} \\
-p {input.bed} \\
-p {input.peaks} \\
-b {input.bam} \\
-g {params.genome} \\
-o {output} \\
Expand All @@ -492,7 +492,7 @@ rule FRiP_macsN:

rule FRiP_Genrich:
input:
bed = join(genrich_dir, "{name}", "{name}.narrowPeak"),
peaks = expand(join(genrich_dir, "{SID}", "{SID}.narrowPeak"), SID=chips),
bam = join(bam_dir, "{name}.Q5DD.bam"),
output:
join(peakqc_dir, "Genrich", "Genrich.{name}.Q5DD.FRiP_table.txt"),
Expand All @@ -514,7 +514,7 @@ rule FRiP_Genrich:
trap 'rm -rf "${{tmp}}"' EXIT
python {params.script} \\
-p {input.bed} \\
-p {input.peaks} \\
-b {input.bam} \\
-g {params.genome} \\
-o {output} \\
Expand All @@ -524,7 +524,7 @@ rule FRiP_Genrich:

rule FRiP_macsB:
input:
bed = join(macsB_dir, "{name}", "{name}_peaks.broadPeak"),
peaks = expand(join(macsB_dir, "{SID}", "{SID}_peaks.broadPeak"), SID=chips),
bam = join(bam_dir, "{name}.Q5DD.bam"),
output:
join(peakqc_dir, "macsBroad", "macsBroad.{name}.Q5DD.FRiP_table.txt"),
Expand All @@ -546,7 +546,7 @@ rule FRiP_macsB:
trap 'rm -rf "${{tmp}}"' EXIT
python {params.script} \\
-p {input.bed} \\
-p {input.peaks} \\
-b {input.bam} \\
-g {params.genome} \\
-o {output} \\
Expand Down

0 comments on commit c9f3f9a

Please sign in to comment.