Hello everyone! Checking the fl-sarek code I notic...
# sarek
g
Hello everyone! Checking the fl-sarek code I noticed that when using UMI-based deduplication method, The designed workflow include two alignemnt steps: 1. extract UMI 2. first alignment on raw reads 3. generate the consensus reads 4. second alignment on the consensus reads. Am I misinterpreting the pipeline? If this is the workflow, Is there any reason or best practice to align the consensus reads instead of the raw fastq? Thanks a lot in advance!
s
That is the method if using fgbio to generate consensus reads yes
The argument that fgbio use is that the resulting consensus reads may map better in another location, and remapping should be relatively computationally inexpensive because in general you use consensus reads when you have a lot of redundancy
Sentieon doesn't do this, it just produces consensus reads that are already mapped, but you have to pay to use Sentieon (it is implemented in sarek though)
https://fulcrumgenomics.github.io/fgbio/tools/latest/CallMolecularConsensusReads.html
The consensus reads produced are unaligned, due to the difficulty and error-prone nature of inferring the conesensus alignment. Consensus reads should therefore be aligned after, which should not be too expensive as likely there are far fewer consensus reads than input raw raws. Please see how best to use this tool within the best-practice pipeline: https://github.com/fulcrumgenomics/fgbio/blob/main/docs/best-practice-consensus-pipeline.md
g
Hi Simon, Now is more clear! Thanks a lot for the quick and extensive answer!
s
incidentally you can look at nf-core/fastquorum for fgbio consensus generation more generally
(it has some options that aren't available in sarek, like duplex sequencing)
g
Thanks you! I will definitely have a look into it!