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

Coverage: investigate and better handle tabix indexing concatenated bgzipped files. #4

Open
grosscol opened this issue Mar 3, 2023 · 0 comments

Comments

@grosscol
Copy link
Collaborator

grosscol commented Mar 3, 2023

Current State

During coverage aggregation, bgzipped results are concatenated together as the process runs.

# Aggregate depths from depth file chunks
mlr -N --tsv 'nest' --ivar ";" -f 3 \${PIPES[@]} |\
sort --numeric-sort --key=2 |\
bgzip >> ${result_file}

Tabix sometimes fails to produce a valid index for concatenated summary data occasionally. An index gets written, has the contig name, but can't be used to get data by region. tabix file.tsv.gz chr22:10000100-10000200 | wc -l gets 0.

Work around currently involves re-writing entire bgzipped file.

Action items

  • Generate small reproducible example of tabix not producing an index of data.
  • Sort out solution that is more efficient that re-writing the entire gzipped file.

Reference

Suspected to be related to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant