Skip to content

Support for simultaneous reading of unindexed VCF/BCF files. #1089

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

Merged
merged 3 commits into from
Jul 8, 2020

Conversation

pd3
Copy link
Member

@pd3 pd3 commented Jun 24, 2020

In order for this to work, the caller must ensure that the input
files have chromosomes in the same order and consistent with the
order of sequences in the header.

Replaces #1076.

pd3 added a commit to samtools/bcftools that referenced this pull request Jun 24, 2020
In order for this to work, the input files have chromosomes in the
same order and consistent with the order of sequences in the header.

Depends on samtools/htslib#1089.
@daviesrob
Copy link
Member

Well, so far I've failed to fool the out-of-order detection logic, so I think this should be safe enough. I did notice that it isn't worried about POS not in order within a chromosome. It seems to work, albeit outputting out of order records, so presumably it's no more of a problem than for the single-file case?

Would you have any objection to me renaming BCF_SR_REQUIRE_IDX_WARN to something like BCF_SR_NO_INDEX_WARN? The current symbol seems a little wrong as it's describing the opposite of what's being asked for. I can handle the necesary changes if you're happy with that.

pd3 and others added 3 commits July 7, 2020 14:59
In order for this to work, the caller must ensure that the input
files have chromosomes in the same order and consistent with the
order of sequences in the header.

Replaces #1076.
@daviesrob
Copy link
Member

Rebased with added tests. BCF_SR_REQUIRE_IDX_WARN has been changed to BCF_SR_ALLOW_NO_IDX to better reflect what the option does. I'll adjust the bcftools part to match when this has gone in.

@daviesrob daviesrob merged commit 832e4ba into develop Jul 8, 2020
@daviesrob daviesrob deleted the bcf-no-idx branch July 8, 2020 09:27
daviesrob pushed a commit to samtools/bcftools that referenced this pull request Jul 8, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…(PR #1253)

In order for this to work, the input files have chromosomes in the
same order and consistent with the order of sequences in the header.

Depends on samtools/htslib#1089.
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

Successfully merging this pull request may close these issues.

None yet

3 participants