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

Develop tests for alt_allele_prob_file and est_alt_allele_prob with multiple metafounders #150

Open
1 of 5 tasks
XingerTang opened this issue Jan 4, 2024 · 3 comments
Open
1 of 5 tasks

Comments

@XingerTang
Copy link
Contributor

XingerTang commented Jan 4, 2024

@RosCraddock @gregorgorjanc

Relate to #142, #149

Tasks to do:

  • A functional test to see if we can read alternative allele frequency and estimate the alternative allele frequency correctly for one or more than one metafounders.
Subtest Name alt_allele_prob_file est_alt_allele_prob main_metafounder Description Complete
default x x x Test the default values of the alternative allele frequency without any input or estimation with multiple metafounders
alt_allele_prob_file_single x x Test the input option alt_allele_prob_file for a single metafounder, we need the test output to be different when the alt_allele_prob_file is given
alt_allele_prob_file_multiple x x Test the input option alt_allele_prob_file for multiple metafounders, we need the test output to be different when there is only a single metafounder
est_alt_allele_prob_single x x Test the option est_alt_allele_prob for a single metafounder, we need a test data input such that we can infer exact alternative allele frequency from it
est_alt_allele_prob_multiple x x Test the option est_alt_allele_prob for multiple metafounders, we need a test data input such that we can infer exact alternative allele frequency from it and test output to be different when there is only a single metafounder
both x Test the case when both options are used, whether the inputted alternative allele probabilities are used as a starting point for alternative allele probabilities estimation
incorrect_pedigree x x Test case when a metafounder is written incorrectly as not a founder in the pedigree file
default_metafounder x x x Test case when 0 is being used as parents and no main metafounder is being provided as input, test whether 0 would be replaced by the default MF_1
main_metafounder x x Test if the input option main_metafounder is working, requiring an input pedigree file with both metafounders and 0 as parents
incorrect_main_metafounder x x Test case when the input meta_founder does not start with MF_, whether an error would be raised
incorrect_metafounder_in_file x x Test case when the names of input metafounders in the input alternative allele probability file do not start with MF_, whether an error would be raised
  • Additional accuracy tests to see if the provided/estimated alternative allele frequency can improve the accuracy:

    • a test with single metafounder and user-provided alternative allele frequency
    • a test with multiple metafounder and user-provided alternative allele frequency
    • a test with multiple metafounder and estimated alternative allele frequency
@gregorgorjanc
Copy link
Member

Best if @RosCraddock works on this alongside you @XingerTang

@XingerTang XingerTang changed the title Develop tests for alt_allele_prob and est_alt_allele_prob with multiple metafounders Develop tests for alt_allele_prob_file and est_alt_allele_prob with multiple metafounders Jan 10, 2024
XingerTang added a commit to XingerTang/AlphaPeel that referenced this issue Jan 10, 2024
@RosCraddock
Copy link

@RosCraddock @gregorgorjanc

Relate to #142, #149

Tasks to do:

  • A functional test to see if we can read alternative allele frequency and estimate the alternative allele frequency correctly for one or more than one metafounders.

Subtest Name alt_allele_prob_file est_alt_allele_prob main_metafounder Description Complete
default x x x Test the default values of the alternative allele frequency without any input or estimation with multiple metafounders √
alt_allele_prob_file_single √ x x Test the input option alt_allele_prob_file for a single metafounder, we need the test output to be different when the alt_allele_prob_file is given √
alt_allele_prob_file_multiple √ x x Test the input option alt_allele_prob_file for multiple metafounders, we need the test output to be different when there is only a single metafounder √
est_alt_allele_prob_single x √ x Test the option est_alt_allele_prob for a single metafounder, we need a test data input such that we can infer exact alternative allele frequency from it √
est_alt_allele_prob_multiple x √ x Test the option est_alt_allele_prob for multiple metafounders, we need a test data input such that we can infer exact alternative allele frequency from it and test output to be different when there is only a single metafounder √
both √ √ x Test the case when both options are used, whether the inputted alternative allele probabilities are used as a starting point for alternative allele probabilities estimation √
incorrect_pedigree √ x x Test case when a metafounder is written incorrectly as not a founder in the pedigree file √
default_metafounder x x x Test case when 0 is being used as parents and no main metafounder is being provided as input, test whether 0 would be replaced by the default MF_1
main_metafounder x x √ Test if the input option main_metafounder is working, requiring an input pedigree file with both metafounders and 0 as parents √
incorrect_main_metafounder x x √ Test case when the input meta_founder does not start with MF_, whether an error would be raised √
incorrect_metafounder_in_file √ x x Test case when the names of input metafounders in the input alternative allele probability file do not start with MF_, whether an error would be raised √

  • Additional accuracy tests to see if the provided/estimated alternative allele frequency can improve the accuracy:

    • a test with single metafounder and user-provided alternative allele frequency
    • a test with multiple metafounder and user-provided alternative allele frequency
    • a test with multiple metafounder and estimated alternative allele frequency

Additional Accuracy Tests:

  • a test with single metafounder and user-provided alternative allele frequency
  • a test with multiple metafounder in segregated lineages and user-provided alternative allele frequency
  • a test with multiple metafounder with overlapping lineages and user-provided alternative allele frequency
  • a test with multiple metafounder in segregated lineages and estimated alternative allele frequency
  • a test with multiple metafounder iwith overlapping lineages and estimated alternative allele frequency

@XingerTang
Copy link
Contributor Author

XingerTang commented May 9, 2024 via email

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

No branches or pull requests

3 participants