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

Ignore undeclared keys in INFO and FORMAT when writing BCF files #169

Merged
merged 2 commits into from
Jul 1, 2019

Conversation

alumi
Copy link
Member

@alumi alumi commented Jul 1, 2019

cljam.io.bcf.writer/write-variants fails to encode variants if they contain keys not declared in meta-info.
This PR fixes the bug by ignoring such keys.

[{:chr "1", :pos 10, :ref "A", :alt ["C"],
:info {:UNDECLARED-INFO #{"???"}},
:FORMAT [:UNDECLARED-FORMAT]}]

https://travis-ci.org/chrovis/cljam/jobs/552587080#L535-L554

@alumi alumi added the bug label Jul 1, 2019
@alumi alumi requested a review from a team July 1, 2019 05:10
@codecov
Copy link

codecov bot commented Jul 1, 2019

Codecov Report

Merging #169 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #169   +/-   ##
=======================================
  Coverage   86.87%   86.87%           
=======================================
  Files          73       73           
  Lines        5663     5663           
  Branches      481      481           
=======================================
  Hits         4920     4920           
  Misses        262      262           
  Partials      481      481
Impacted Files Coverage Δ
src/cljam/io/bcf/writer.clj 89.85% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a3048ea...94ce1f8. Read the comment docs.

@alumi alumi requested review from a team and removed request for a team July 1, 2019 05:21
@ghost ghost requested review from athos and yito88 and removed request for a team July 1, 2019 05:21
Copy link
Contributor

@yito88 yito88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@athos athos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@athos athos merged commit 2cbb76f into master Jul 1, 2019
@athos athos deleted the fix/bcf-ignore-undeclared-keys branch July 1, 2019 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants