Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-cheshire committed Feb 1, 2024
1 parent 957b7ab commit 037a62b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions subworkflows/local/align_bowtie2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ workflow ALIGN_BOWTIE2 {
/*
* Sort, index BAM file and run samtools stats, flagstat and idxstats
*/
BAM_SORT_STATS_SAMTOOLS ( BOWTIE2_TARGET_ALIGN.out.aligned, fasta )
BAM_SORT_STATS_SAMTOOLS ( BOWTIE2_TARGET_ALIGN.out.aligned, fasta )
ch_versions = ch_versions.mix(BAM_SORT_STATS_SAMTOOLS.out.versions)

BAM_SORT_STATS_SAMTOOLS_SPIKEIN ( BOWTIE2_SPIKEIN_ALIGN.out.aligned, spikein_fasta )
Expand All @@ -54,7 +54,7 @@ workflow ALIGN_BOWTIE2 {
emit:
versions = ch_versions // channel: [ versions.yml ]

orig_bam = BOWTIE2_TARGET_ALIGN.out.aligned // channel: [ val(meta), bam ]
orig_bam = BOWTIE2_TARGET_ALIGN.out.aligned // channel: [ val(meta), bam ]
orig_spikein_bam = BOWTIE2_SPIKEIN_ALIGN.out.aligned // channel: [ val(meta), bam ]

bowtie2_log = BOWTIE2_TARGET_ALIGN.out.log // channel: [ val(meta), log_final ]
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/deduplicate_linear.nf
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ workflow DEDUPLICATE_LINEAR {
ch_metrics = FIND_UNIQUE_READS.out.metrics
ch_versions = ch_versions.mix( FIND_UNIQUE_READS.out.versions )

// Subset original .bam file to contain only unique alignments
// Subset original .bam file to contain only unique alignments
ch_split.control
.join( bai )
.join( ch_linear_duplicates )
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/extract_fragments.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ workflow EXTRACT_FRAGMENTS {
* MODULE: Keep the read pairs that are on the same chromosome and fragment length less than 1000bp.
*/
AWK (
BEDTOOLS_BAMTOBED.out.bed
BEDTOOLS_BAMTOBED.out.bed
)
ch_versions = ch_versions.mix(AWK.out.versions)

Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/extract_metadata_awk.nf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Generate table-based metadata from a summary report using AWK
* Generate table-based metadata from a summary report using AWK
*/

include { AWK_SCRIPT } from '../../modules/local/linux/awk_script'
Expand Down
7 changes: 3 additions & 4 deletions subworkflows/local/peak_qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ workflow PEAK_QC {
.join ( flagstat.map { row -> [row[0].id, row ].flatten()} )
.map { row -> [ row[1], row[2], row[4], row[6] ]}
.set { ch_frip }
//ch_frip | view

/*
* MODULE: Calculate frip scores for primary peaks
Expand All @@ -47,7 +46,7 @@ workflow PEAK_QC {
min_frip_overlap
)
ch_versions = ch_versions.mix(PEAK_FRIP.out.versions)
// PEAK_FRIP.out.frip_mqc | view
// PEAK_FRIP.out.frip_mqc | view

/*
* MODULE: Calculate peak counts for primary peaks
Expand Down Expand Up @@ -144,8 +143,8 @@ workflow PEAK_QC {
/*
* MODULE: Plot upset plots for sample peaks
*/
PLOT_CONSENSUS_PEAKS (
ch_merged_bed_sorted.ifEmpty([])
PLOT_CONSENSUS_PEAKS (
ch_merged_bed_sorted.ifEmpty([])
)
ch_versions = ch_versions.mix(PLOT_CONSENSUS_PEAKS.out.versions)

Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/prepare_genome.nf
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ workflow PREPARE_GENOME {
/*
* Index genome fasta file
*/
ch_fasta_index = SAMTOOLS_FAIDX ( ch_fasta, [[id:"fasta"], []] ).fai
ch_fasta_index = SAMTOOLS_FAIDX ( ch_fasta, [[id:"fasta"], []] ).fai
ch_versions = ch_versions.mix(SAMTOOLS_FAIDX.out.versions)

/*
Expand Down
6 changes: 3 additions & 3 deletions tests/config/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ params {
}

process {
cpus = 2
memory = 6.GB
time = 6.h
cpus = 2
memory = 6.GB
time = 6.h
}

if ("$PROFILE" == "singularity") {
Expand Down
2 changes: 1 addition & 1 deletion workflows/cutandrun.nf
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ workflow CUTANDRUN {
ch_samtools_bam,
ch_samtools_bai,
true,
PREPARE_GENOME.out.fasta.collect(),
PREPARE_GENOME.out.fasta.collect(),
PREPARE_GENOME.out.fasta_index.collect()
)
ch_samtools_bam = MARK_DUPLICATES_PICARD.out.bam
Expand Down

0 comments on commit 037a62b

Please sign in to comment.