Description
Scaffold a set of assemblies using RagTag and YaHS. First, each assembly is scaffolded with RagTag against the provided reference. Then, the RagTag scaffolds are re-scaffolded using YaHS with the provided Hi-C BAM to correct errors.
Input
Channel containing assemblies for scaffolding. Structure: [ val(meta), path(fasta) ]
*.{bam/cram/sam} Channel containing BAM files of Hi-C reads mapped to each assembly. Structure: [ val(meta), path(bam) ]
*.{bam/cram/sam} Output
Final scaffolds from YaHS in FASTA format Structure: [ val(meta), path(fasta) ]
*.fasta AGP describing how contigs are transformed into final scaffolds Structure: [ val(meta), path(agp) ]
*.agp Pairs file describing Hi-C contacts between scaffolds, translated from the contigs pairs file Structure: [ val(meta), path(pairs) ]
*.pairs.gz Chromsizes file for the scaffolds. A headerless TSV of format <contigname>\t<size> Structure: [ val(meta), path(chromsizes) ]
*.sizes FASTA file of scaffolds output by RagTag Structure: [ val(meta), path(fasta) ]
*.fasta.gz AGP file describing how contigs are transformed into scaffolds by RagTag Structure: [ val(meta), path(agp) ]
*.agp Numerical genome statistics of RagTag scaffolds Structure: [ val(meta), path(agp) ]
*.stats PAF file describing alignments of contigs to the reference assembly by RagTag Structure: [ val(meta), path(paf) ]
*.paf.gz Nucmer DELTA file of alignments of contigs to the reference assembly by RagTag if using Nucmer aligner Structure: [ val(meta), path(agp) ]
*.delta.gz Confidence scores used in scaffolding by RagTag Structure: [ val(meta), path(txt) ]
*.confidence.txt AGP files describing inital breaks by YaHS Structure: [ val(meta), path(agp) ]
*.agp AGP files describing each scaffolding round by YaHS Structure: [ val(meta), path(agp) ]
*.agp Components
-
bedtools/bamtobedsort
sanger-tol/nf-core-modules -
yahs/makepairsfile
sanger-tol/nf-core-modules -
ragtag/scaffold
nf-core/modules -
samtools/faidx
nf-core/modules -
yahs
nf-core/modules