Skip to content

Commit

Permalink
Merge pull request #16 from ATpoint/dev
Browse files Browse the repository at this point in the history
v2.2
  • Loading branch information
ATpoint authored Jul 23, 2023
2 parents b7fe502 + 70d655d commit c90541b
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 53 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# atac_chip_preprocess

# v2.2
- trim process will now always output fastp report regardless of `--keep_trim`
- improve documentation

# v2.1
- input is now a samplesheet indicating sample name and the R1/R2 files plus a group information.
- separated trimming and alignment/sort into separate processes
Expand All @@ -18,4 +22,4 @@
- remove the conda CI test, only run with Docker

## < 2.0
(...)
(...)
121 changes: 74 additions & 47 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion bin/validate_samplesheet.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ if(length_ss != 3 | sum_ss != 3)
unique_sample <- unique(ss$sample)
for(u in unique_sample){

# Libtype for same sample must be identical
sx <- ss[ss$sample==u,]

# R1 and R2 must not have duplicates
Expand Down
2 changes: 0 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ dependencies:
- tabix
- ucsc-bedgraphtobigwig
- ucsc-bigwigtobedgraph


4 changes: 3 additions & 1 deletion modules/cat_fastq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ process CatFastq {
publishDir = [
path: params.outdir,
mode: params.publishmode,
saveAs: { filename -> !(filename.endsWith("fq.gz") & params.keep) || filename.equals("versions.txt") || filename.equals("command_lines.txt") ? null : filename }
saveAs: { filename ->
(filename.endsWith("fq.gz") & params.keep) ? filename : null
}
]

container params.container
Expand Down
6 changes: 5 additions & 1 deletion modules/trim.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ process Trim {
publishDir = [
path: params.outdir,
mode: params.publishmode,
saveAs: { filename -> !(filename.endsWith("fq.gz") & params.keep) || filename.equals("versions.txt") || filename.equals("command_lines.txt") ? null : filename }
saveAs: { filename ->
(filename.endsWith("fq.gz") & params.keep) ||
(filename.endsWith(".html")) ||
(filename.endsWith(".json")) ? filename : null
}
]

container params.container
Expand Down

0 comments on commit c90541b

Please sign in to comment.