Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions processes/build_references/build_reference.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readlengths = params.readlength.tokenize(',')

process bwa {

publishDir "${params.outdir}/bwa"
publishDir "${params.outdir}/bwa", mode: "link"

input:
file genome from file(params.genome)
Expand All @@ -29,7 +29,7 @@ process bwa {
}

process samtools {
publishDir "${params.outdir}/samtools"
publishDir "${params.outdir}/samtools", mode: "link"

input:
file genome from file(params.genome)
Expand Down Expand Up @@ -61,7 +61,7 @@ process bowtie_index {

process mappability {

publishDir "${params.outdir}/annotations"
publishDir "${params.outdir}/annotations", mode: "link"

input:
file genome from file(params.genome)
Expand All @@ -85,7 +85,7 @@ process mappability {

process density {

publishDir "${params.outdir}/densities"
publishDir "${params.outdir}/densities", mode: "link"

input:
file fai
Expand All @@ -104,7 +104,7 @@ process density {

process chrom_sizes {

publishDir "${params.outdir}/hotspot2"
publishDir "${params.outdir}/hotspot2", mode: "link"

input:
file fai
Expand All @@ -120,7 +120,7 @@ process chrom_sizes {

process chrom_info {

publishDir "${params.outdir}/annotations"
publishDir "${params.outdir}/annotations", mode: "link"

input:
file chrom_sizes
Expand All @@ -138,7 +138,7 @@ process hotspot2 {

container "fwip/hotspot2:latest"

publishDir "${params.outdir}/hotspot2"
publishDir "${params.outdir}/hotspot2", mode: "link"

input:
file chrom_sizes
Expand All @@ -161,7 +161,7 @@ process hotspot2 {
}

process nuclear_center_sites {
publishDir "${params.outdir}/hotspot2"
publishDir "${params.outdir}/hotspot2", mode: "link"

input:
file center_sites
Expand Down
42 changes: 21 additions & 21 deletions processes/bwa/aggregate/basic.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ process merge {
output:
file 'merged.bam' into merged

publishDir params.outdir
publishDir params.outdir, mode: "link"

script:
"""
Expand All @@ -59,7 +59,7 @@ process merge {
// TODO: single end
process dups {
label "modules"
publishDir params.outdir
publishDir params.outdir, mode: "link"
label 'high_mem'

input:
Expand Down Expand Up @@ -97,7 +97,7 @@ marked_bam.into { bam_for_counts; bam_for_adapter_counts; bam_for_filter; bam_fo
process filter {
label "modules"

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file bam from bam_for_filter
Expand Down Expand Up @@ -135,7 +135,7 @@ process filter_nuclear {

process macs2 {
label "macs2"
publishDir "${params.outdir}/peaks_macs2"
publishDir "${params.outdir}/peaks_macs2", mode: "link"
scratch false

when:
Expand All @@ -161,7 +161,7 @@ process macs2 {
process hotspot2 {
label "modules"

publishDir "${params.outdir}"
publishDir "${params.outdir}", mode: "link"
container "fwip/hotspot2:latest"

when:
Expand Down Expand Up @@ -215,7 +215,7 @@ process hotspot2 {

process spot_score {
label "modules"
publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file(bam) from bam_for_spot_score
Expand Down Expand Up @@ -256,7 +256,7 @@ process spot_score {

process bam_counts {
label "modules"
publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file(bam) from bam_for_counts
Expand All @@ -274,7 +274,7 @@ process bam_counts {

process count_adapters {
label "modules"
publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file(bam) from bam_for_adapter_counts
Expand All @@ -292,7 +292,7 @@ process count_adapters {

process preseq {
label "modules"
publishDir params.outdir
publishDir params.outdir, mode: "link"
input:
file nuclear_bam

Expand All @@ -318,7 +318,7 @@ process preseq {
process cutcounts {
label "modules"

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file(fai) from file("${params.genome}.fai")
Expand Down Expand Up @@ -366,7 +366,7 @@ process cutcounts {
process density {
label "modules"

publishDir params.outdir
publishDir params.outdir, mode: "link"
label 'high_mem'

input:
Expand Down Expand Up @@ -419,7 +419,7 @@ process density {

process multimapping_density {

publishDir params.outdir
publishDir params.outdir, mode: "link"
label 'modules'
label 'high_mem'

Expand Down Expand Up @@ -498,7 +498,7 @@ process multimapping_density {

process normalize_density {
label "modules"
publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
set(file(filtered_bam), file(density)) from to_normalize
Expand Down Expand Up @@ -541,7 +541,7 @@ process normalize_density {
process insert_sizes {
label "modules"

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file nuclear_bam from bam_for_inserts
Expand Down Expand Up @@ -571,7 +571,7 @@ process insert_sizes {
process motif_matrix {
label "modules"

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file hotspot_calls
Expand All @@ -595,7 +595,7 @@ process motif_matrix {
process closest_features {
label "modules"

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file hotspot_calls
Expand Down Expand Up @@ -639,7 +639,7 @@ process closest_features {
process differential_hotspots {
label "modules"

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file bam from bam_for_diff_peaks
Expand Down Expand Up @@ -683,7 +683,7 @@ process differential_hotspots {
process learn_dispersion {

label "footprints"
publishDir params.outdir
publishDir params.outdir, mode: "link"

memory = '8 GB'
cpus = 8
Expand Down Expand Up @@ -805,7 +805,7 @@ process working_tracks {
memory = '32 GB'
cpus = 1

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file merged_interval
Expand Down Expand Up @@ -833,7 +833,7 @@ process compute_footprints {
memory = '8 GB'
cpus = 1

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
set file(merged_interval), val(threshold) from merged_interval.combine(thresholds)
Expand Down Expand Up @@ -861,7 +861,7 @@ process compute_footprints {
process plot_footprints {

label "footprints"
publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file model from to_plot
Expand Down
12 changes: 6 additions & 6 deletions processes/bwa/process_bwa_paired_trimmed.nf
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ process mark_duplicates {

label "high_mem"

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file(merged_bam) from merged_bam
Expand Down Expand Up @@ -352,7 +352,7 @@ if (params.UMI)

process filter_bam_to_unique {

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file marked_bam
Expand Down Expand Up @@ -396,7 +396,7 @@ process bam_counts {
*/
process insert_size {

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
set file(bam), file(bai) from bam_for_insert
Expand Down Expand Up @@ -429,7 +429,7 @@ process insert_size {

process spot_score {

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
set file(bam), file(bai) from bam_for_spot
Expand Down Expand Up @@ -484,7 +484,7 @@ win = 75
bini = 20
process density_files {

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
set file(bam), file(bai) from bam_for_density
Expand Down Expand Up @@ -530,7 +530,7 @@ process density_files {
*/
process total_counts {

publishDir params.outdir
publishDir params.outdir, mode: "link"

input:
file 'fastqcounts*' from fastq_counts.collect()
Expand Down
Loading