Comments (3)
Are you able to update to noodles 0.50.0 / noodles-bam 0.44.0? Reader::query_unmapped
now requires the header, which should fix this issue.
bam/reader: Require a SAM header when querying for unmapped records (
Reader::query_unmapped
).It's possible for a chunk to include mapped records, which are subsequently filtered out, but they do require the associated header to decode.
from noodles.
So by my reading of the spec, I think it is allowable, for an unmapped read, to have RNAME set, but POS as 0.
This is not allowed in by the spec. An unmapped record with no coordinate (i.e., POS
= 0) does not have a reference sequence name (i.e., RNAME
= *
). See ยง 1.4.3 (2022-08-22): "An unmapped segment without coordinate has a *
at [RNAME
]."
Does the query range allow 0 to be part of the interval?
No, 0 is not a coordinate that can be queried from the index. To query a full region, use an unbounded range, e.g., Region::new("sq0", ..)
.
from noodles.
Great! That appears to work, thank you!
While I have your attention, can I ask a related question?
So by my reading of the spec, I think it is allowable, for an unmapped read, to have RNAME set, but POS as 0.
Does the query range allow 0 to be part of the interval? My understanding is that Position starts at 1.
I guess the simplest form of query to achieve my goals, would be to do a query that just iterates over anything with the given RNAME.
from noodles.
Related Issues (20)
- Build Error on Windows HOT 1
- noodles implementation is slower than rust-htslib, did I do something suboptimal? HOT 5
- Concurrent reading/decompression of BAM files. HOT 3
- Add underlying reader access for CRAM `AsyncReader` HOT 1
- Lazy reading of BAM records requires reading of the header first HOT 1
- Question: different coalescing of bytes for index queries? HOT 2
- Documentation is opaque on 0 vs 1 indexing, and whether regions are right-inclusive or not. HOT 1
- Seamless parsing of BAM/SAM HOT 4
- noodles sam successfully read the recording but failed to write it HOT 2
- noodles bam failled to write record with large mapping position. HOT 1
- Alignment span calculation (bug or misunderstanding) HOT 4
- Installation error HOT 2
- question: how to convert cigar from bytes. HOT 4
- `Send`-able `Repository`? HOT 2
- Fixed-length `Character` fields HOT 2
- Why `Flags::PROPERLY_ALIGNED` instead of `Flags::PROPERLY_PAIRED` as name? HOT 2
- BGZF invalid header really strict HOT 6
- bgzf/multithreaded_writer: Add builder HOT 1
- Parsing VCF fails for ID in header HOT 1
- Async BGZF readers eagerly evaluate blocks HOT 2
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 noodles.