Description
Scaffold a set of assemblies using YaHS and RagTag. YaHS is used to scaffold the first provided assembly, and then RagTag is used to scaffold the remaining assemblies using the first scaffolded assembly as a reference. Finally the RagTag scaffolds are re-scaffolded using YaHS to correct errors.
Input
Channel containing assemblies for scaffolding. Structure: [ val(meta), path(fasta) ]
*.{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