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

Validate sample check when VCF contains aggregated genotypes #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tcezard
Copy link
Member

@tcezard tcezard commented Dec 19, 2024

Tests should pass once I rebase on top of #232

metadata_file = os.path.join(self.resources_folder, 'metadata_2_analysis_same_samples.xlsx')
self.validation.eload_cfg.set('submission', 'metadata_spreadsheet', value=metadata_file)
self.validation.eload_cfg.set('validation', 'sample_check', value={})
with patch.object(self.validation, '_get_dir', return_value=os.path.join(self.resources_folder, 'vcf_dir')):
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine for now, but I do think that if we want to allow the eload directory to be changed by individual tests, it would be better to allow the directory path to be optionally passed into the Eload object, and just constructing it from the config by default. It would make a few of these tests simpler - kind of like how we started allowing the config to be passed in rather than always reading it from file.

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