Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate whether gzipped fasta is smaller than 2-bit #1580

Closed
lbergelson opened this issue Mar 15, 2016 · 3 comments
Closed

investigate whether gzipped fasta is smaller than 2-bit #1580

lbergelson opened this issue Mar 15, 2016 · 3 comments

Comments

@lbergelson
Copy link
Member

It's possible that 2-bit isn't gaining us much efficiency. If we could read gzip fasta we might be able to use that instead for less complexity.

We might have to maintain it zipped in memory though, which could be complicated.

@droazen droazen added this to the beta milestone Mar 15, 2016
@droazen droazen modified the milestones: alpha-2, beta Mar 28, 2016
@droazen
Copy link
Contributor

droazen commented Mar 28, 2016

For alpha-2 and @akiezun

@akiezun
Copy link
Contributor

akiezun commented Mar 29, 2016

ordered by size

Homo_sapiens_assembly19.fasta          3140756381 bytes (100%)
Homo_sapiens_assembly19.fasta.bgzip     870590559 bytes  (27%) - samtools faidx creates 2 index files fai and gzi (both are required for fast lookups)
Homo_sapiens_assembly19.fasta.gz        822227249 bytes  (26% - using best compression ratio)
Homo_sapiens_assembly19.2bit            775499486 bytes  (24% of fasta, 89% of bgzip)
Homo_sapiens_assembly19.2bit.bgzip      684107046 bytes  (21%) - we'd probably need a new index for this

Based on this I think we should go for bgzip + index.
@droazen @lbergelson WDYT?
@tomwhite what's the right way to broadcast a block gzipped file with 2 index files?

@akiezun
Copy link
Contributor

akiezun commented Apr 17, 2016

closing this - the investigation is done. #1718 will take over speed investivation

@akiezun akiezun closed this as completed Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants