Description

Uses rastair to assess C->T conversion as a readout for methylation in a genome-wide basis, with rastair 0.8 (default) or rastair version 2

Input

name
description
pattern

ch_bam

BAM alignment files
Structure: [ val(meta), path(bam) ]

*.bam

ch_bai

BAM index files
Structure: [ val(meta), path(bai) ]

*.bai

ch_fasta

Reference genome fasta file
Structure: [ [:], path(fasta) ]

*.{fa,fasta}

ch_fasta_index

Reference genome index file
Structure: [ val(meta), path(fai) ]

*.fai

use_rastair2

Run rastair version 2 (rastair2/mbias for paired-end samples, then rastair2/call
with its cutoffs, and bcftools/stats) instead of rastair 0.8
(rastair/mbias, rastair/mbiasparser, rastair/call, rastair/methylkit).
rastair version 2 is free for non-commercial use only (University of Oxford licence);
the outputs of the caller that was not run are empty channels.

trims

Bases to ignore at read ends instead of the M-bias estimate, as
[ nOT, nOB ], each r1_start,r1_end,r2_start,r2_end (for example
[ '0,0,10,0', '0,0,10,0' ]). With [], rastair estimates them: rastair 0.8
with rastair/mbias and rastair/mbiasparser, rastair version 2 with
rastair2/mbias (paired-end samples; single-end samples are not trimmed).
When set, the M-bias steps are skipped for both callers.

Output

name
description
pattern

mbias

File describing the molecular bias (MBIAS) of the TAPS conversion
Structure: [ val(meta), path(mbias) ]

*.txt

call

Rastair call output files (similar to bed format, genome-wide)
Structure: [ val(meta), path(call) ]

*.txt

methylkit

Rastair call output files in MethylKit format (similar to bed format, genome-wide)
Structure: [ val(meta), path(methylkit) ]

*.gz

vcf

rastair version 2 VCF with per-position methylation and genotype calls
Structure: [ val(meta), path(vcf) ]

*.vcf.gz

vcf_tbi

tabix index of the rastair version 2 VCF
Structure: [ val(meta), path(tbi) ]

*.vcf.gz.tbi

bed

rastair version 2 CpG methylation BED
Structure: [ val(meta), path(bed) ]

*.bed.gz

bed_tbi

tabix index of the rastair version 2 BED
Structure: [ val(meta), path(tbi) ]

*.bed.gz.tbi

bcftools_stats

bcftools stats of the rastair version 2 VCF (MultiQC input)
Structure: [ val(meta), path(stats) ]

*stats.txt

mbias_html

rastair version 2 M-bias report (paired-end samples only)
Structure: [ val(meta), path(html) ]

*.mbias.html

mbias_cutoffs

Bases to ignore at read ends, as used by rastair version 2 call (paired-end
samples only): line 1 is --nOT, line 2 --nOB. When mbias reports several
contigs, the longest one is used; restrict it with --region in the
RASTAIR2_MBIAS ext.args to choose (and to keep memory down on large genomes).
Structure: [ val(meta), path(cutoffs) ]

*.cutoffs.txt