Skip to content

Commit

Permalink
Merge branch 'develop' into motif2factorsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten-vd-Sande authored Sep 18, 2023
2 parents c4c0b6a + 36f1a17 commit 75568bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ All changed fall under either one of these types: `Added`, `Changed`, `Deprecate
- all samples with a label in the condition column are used
- (this feature was previously dependent on a batch effect correction in the contrast design)

### Fixed

- (major) regression where peak calling input controls were being ignored.

## [1.1.0] - 2023-09-13

### Added
Expand Down
4 changes: 2 additions & 2 deletions seq2science/rules/peak_calling.smk
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ rule genrich_pileup:
"../envs/genrich.yaml"
params:
params=config["peak_caller"].get("genrich", " "),
control=lambda wildcards, input: f"-c {input.control}" if "control" in input else "",
control=lambda wildcards, input: f"-c {input.control}" if hasattr(input, "control") else "",
reps=lambda wildcards, input: input, # help resolve changes in input files
resources:
mem_gb=8,
Expand Down Expand Up @@ -183,7 +183,7 @@ rule macs2_callpeak:
)
else "BAM"
),
control=lambda wildcards, input: f"-c {input.control}" if "control" in input else "",
control=lambda wildcards, input: f"-c {input.control}" if hasattr(input, "control") else "",
keep_mates=config["macs2_keep_mates"]
resources:
mem_gb=4,
Expand Down

0 comments on commit 75568bc

Please sign in to comment.