-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run modkit once + general changes to methylation subworkflow (#451)
* Only running modkit once (depending on phasing) * Moved methylation subworkflow to own directory * Added tests * Fixed test failures * Updated tests * Added input to methylation call site * Renamed input channel 0 * Fixed alignment * Fixed workflow dependencies * Updated pipeline test snapshot * Only importing modkit once, setting args in config * Merged calls to METHYLATION * Corrected process names * Merge changelog * Added parameters to methylation tests * Removed input phased * Added files to workflow output * Moved parameter check to methylation callsite * Fixed test config * Fixed WhatsHap stats stub * Fixed process selectors in test config * Fixed join in test * Removed dumps * Updated pipeline test snaps * Fixed call to PREPARE_GENOME in test * Added methylation test to CI workflow * Fixed formatting * Removed unused channel * Removed unused config * Minor indentation and comment fixes * Updated docs * Added missing join * Updates snapshots * Changed formatting to appease the pre-commit gods
- Loading branch information
Showing
16 changed files
with
979 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
include { MODKIT_PILEUP } from '../../../modules/nf-core/modkit/pileup/main' | ||
include { TABIX_BGZIPTABIX } from '../../../modules/nf-core/tabix/bgziptabix/main' | ||
|
||
workflow METHYLATION { | ||
|
||
take: | ||
ch_bam_bai // channel: [ val(meta), bam, bai ] | ||
ch_fasta // channel: [ val(meta), fasta ] | ||
ch_fai // channel: [ val(meta), fai ] | ||
ch_bed // channel: [ val(meta), bed ] | ||
|
||
main: | ||
ch_versions = Channel.empty() | ||
|
||
// Performs pileups per haplotype if the phasing workflow is on, set in config | ||
MODKIT_PILEUP (ch_bam_bai, ch_fasta, ch_bed) | ||
ch_versions = ch_versions.mix(MODKIT_PILEUP.out.versions) | ||
|
||
|
||
MODKIT_PILEUP.out.bed | ||
.transpose() | ||
.set { ch_bgzip_modkit_pileup_in } | ||
|
||
TABIX_BGZIPTABIX ( ch_bgzip_modkit_pileup_in ) | ||
ch_versions = ch_versions.mix(TABIX_BGZIPTABIX.out.versions) | ||
|
||
emit: | ||
bed = TABIX_BGZIPTABIX.out.gz_tbi.map { meta, bed, tbi -> [ meta, bed ] } // channel: [ val(meta), path(bed) ] | ||
tbi = TABIX_BGZIPTABIX.out.gz_tbi.map { meta, bed, tbi -> [ meta, tbi ] } // channel: [ val(meta), path(tbi) ] | ||
versions = ch_versions // channel: [ versions.yml ] | ||
} | ||
|
Oops, something went wrong.