Comments (3)
Can you post a reproducer of the code that is failing for you and a minimal input data set? Please ensure that you are checking the error returned by idx.Chunks
. internal.Index.Chunks
should not return a nil []bgzf.Chunk
without an error, but I suspect that it does in this case.
from hts.
Sorry, I misread what you are worried about. It is not possible to return a nil []bgzf.Chunk
without saying why. If you use a nil []bgzf.Chunk
as a parameter to bgzf.Reader.SetChunk
it removes the chunk limitation on the reader which Iterator
behaviour is based on. The invalid interval error is not hard (maybe it should have just used io.EOF, but it's done now), and it just there to inform the caller that the returned []bgzf.Chunk
should not be used. idx.Chunks
returns an error, this is documentation that it may fail and that the error should be checked before the returned []bgzf.Chunks
is used.
from hts.
Are you satisfied with the answer above? If not, please respond, otherwise I'll close this as invalid in the next few days.
from hts.
Related Issues (20)
- Invalid .bam output using hts.bam.Writer HOT 20
- Zero length bam records have invalid bin values HOT 5
- iso8601 HOT 4
- bam: reader over allocates in some cases
- csi: malformed dummy bin header HOT 10
- csi: missing chunks from CSI index HOT 9
- header parsing error with CL. HOT 13
- Faster bgzf compression/decompression with libdeflate? HOT 2
- Bam reader error on date format (different format) HOT 6
- Possible issue with SAM record validation HOT 3
- Failure to read reference stats from index HOT 3
- Is the 9827_2%2349.bam file still available? HOT 2
- Record.Qual error HOT 1
- bam: Invalid pos for unmapped SAM record HOT 5
- Different performance after 2 launches HOT 1
- bgzf: Seek() loads wrong block due to readahead caching bug HOT 2
- fai: Reading a fasta file with blank contig names causes invalid offsets HOT 1
- fai: attempting to create an index from a file with ultra long lines fails HOT 3
- bgzf: race? HOT 6
- Bam reader error on date format HOT 3
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 hts.