Skip to content

Conversation

@allieychen
Copy link
Contributor

@allieychen allieychen commented Mar 8, 2019

  • Raise an error when there are no shards found.
  • When parsing the genomic region filter, it should be case sensitive. For instance, chrY:1-1000, should have ref=chrY, rather than ref=chry, or the SELECT query will return the wrong results. This method is reused by partitioning, in which the matching of the reference should be case insensitive.

Issues: 447,446
Tested: unit tests

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1599

  • 4 of 6 (66.67%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 88.938%

Changes Missing Coverage Covered Lines Changed/Added Lines %
gcp_variant_transforms/libs/vcf_file_composer.py 0 2 0.0%
Totals Coverage Status
Change from base Build 1593: -0.02%
Covered Lines: 7043
Relevant Lines: 7919

💛 - Coveralls

"""
blobs_to_be_composed = list(self._bucket.list_blobs(prefix=blob_prefix))
logging.info('Total number of blobs is %d.', len(blobs_to_be_composed))
if not blobs_to_be_composed:

Choose a reason for hiding this comment

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

This would have been a good candidate for a separate commit. This is part of the value of keeping your commit messages complete from the start: you can then rebase and push when you have multiple unrelated changes in a single PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see! I will drop this PR and create a new one. :)

genomic_region_parser.parse_genomic_region('chr'),
('chr', 0, genomic_region_parser._DEFAULT_END_POSITION)
)
self.assertEqual(

Choose a reason for hiding this comment

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

This could be folded into the test above (chr1 -> chrY)

- When parsing the genomic region filter, it should be case sensitive. For
instance, chrY:1-1000, should have ref=chrY, rather than ref=chry, Or
the SELECT query will return the wrong results. This method is reused by
partitioning, in which the matching of the reference should be
case insensitive.
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.

3 participants