Comments (4)
The recommended practice is to stream fastq and copy over annotations with -C.
from bwa-mem2.
Illumina's bcl2fastq puts UMIs in the main header, not in the comment. Unfortunately most software including Picard and fgbio can only parse UMIs in Sam tags, yet no common software I have found has a tool to move them from read headers into tags (umi-tools claims to have this functionality but it doesn't work with PE data). I contacted the Samtools and Picard teams to suggest that they add support for parsing UMIs in read headers and moving them to Sam tags, and both teams said that instead of using bcl2fastq I should be doing bcl > uBam in order to put the UMIs into Sam tags directly; from there I can stream a uBam to a fastq, align it, and then combine the mapped and unmapped Bams to reconstitute the tag metadata. But it would be simpler to be able to align uBams directly and not have to stream fastqs or combine bams. Like I said I realize this isn't where the focus currently is, but it would be nice to add when time allows.
from bwa-mem2.
You can copy tags to fastq with "samtools fastq -T" and then bwa mem can copy these tags to output SAM with "-C". That is one pass. You don't need to "reconstitute the tag metadata".
You can alternatively copy UMIs to individual fastq records while streaming.
from bwa-mem2.
Hi @lh3
Do you mean to say that using samtools fastq -T
+ bwa-mem2 mem -C
is equal to mapping and merging ubam + bam?
If so, that seems preferable over using the merge step at the end.
Thanks
M
from bwa-mem2.
Related Issues (20)
- Precompiled AVX512 binary not working for Zen 4 Genoa HOT 7
- Allocation of 40.69 GB for suffix_array failed. HOT 4
- Mapping quality: bad and normal HOT 1
- Index building error
- Read group tag RG:Z for every read is missing HOT 2
- Question regarding the mismatch penalty -B
- Update paths in bwa-mem2-lisa
- Tag New Release HOT 6
- Difference in mapping quality and alignment for bwa mem2 compared to bwa mem HOT 5
- Is bwa really haplotype aware in non-human?
- error while index building HOT 1
- BWA-MEM2-LISA crashed with code 139 HOT 3
- [Question] How to install bwa-mem2-lisa
- Problems creating index with bwa-mem2 HOT 1
- MacOS M2 chip support
- Segmentation fault with valle-inclan dataset - bwa-mem2 2.2.1 avx512bw HOT 1
- bwa and bwa-mem2 relative indexing memory usage HOT 2
- Segmentation fault using bwa-mem2:2.2.1--hd03093a_5 HOT 7
- Add option to align multiple .fastq files at once? HOT 2
- Erroring during install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bwa-mem2.