Skip to content

Adding a check in the less than method for the VariantCall class to ensure that in cases where there is a mix of arrays and scalar values that the comparison still works.#701

Open
adaykin wants to merge 1 commit into
googlegenomics:masterfrom
adaykin:fix_genotype
Open

Adding a check in the less than method for the VariantCall class to ensure that in cases where there is a mix of arrays and scalar values that the comparison still works.#701
adaykin wants to merge 1 commit into
googlegenomics:masterfrom
adaykin:fix_genotype

Conversation

@adaykin

@adaykin adaykin commented Oct 6, 2021

Copy link
Copy Markdown

Adding a check in the less than method for the VariantCall class to ensure that in cases where there is a mix of arrays and scalar values that the comparison still works.

When running bq_to_vcf the lt method in VariantCall was attempting to compare a list to a single value (-1) that is getting set by using the MISSING_GENOTYPE_VALUE (set to -1) in the densify_variants._densify_variants method. This was causing an exception to occur.

Test:
Added a unit test and ran a test manually on a dataset that was receiving the error mentioned above to make sure the bq_to_vcf could successfully generate a VCF file.

…nsure that in cases where there is a mix of arrays and scalar values that the comparison still works
@moschetti moschetti self-assigned this Oct 6, 2021
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.

2 participants