-
Notifications
You must be signed in to change notification settings - Fork 12
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
Polish code with flake8 output & add functional test 5 and 6 #63
Conversation
@@ -241,64 +235,64 @@ def updateSeqError_ind(counts, errors, refReads, altReads, genoProbs): | |||
# | |||
|
|||
|
|||
def updateSeg(peelingInfo): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@XingerTang these edits to getNewton()
and related functions in this PeelingUpdates.py
file should not be in this PR - best to keep each PR simple and doing mostly one thing - polishing flake8 and tests is fine, but you are doing something else here,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gregorgorjanc I comment this part because this whole part of the code is broken (more details about it in the report I wrote), and updateSeg()
is trying to call a function setupTransmission()
which is not defined so the flake8 complained about this. So, it is flake8 related but I did do some extra here, I can uncomment the functions other than setupTransmission()
if it is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gregorgorjanc I comment this part because this whole part of the code is broken (more details about it in the report I wrote), and
updateSeg()
is trying to call a functionsetupTransmission()
which is not defined so the flake8 complained about this. So, it is flake8 related but I did do some extra here, I can uncomment the functions other thansetupTransmission()
if it is better.
I see! Hmm, odd, BUT good find!
Please open an issue so we have a history of such changes in the repository with a clear statement of what we should do and then PRs solving the issue are linked to the issues through "hash-links".
Then let's solve this as part of that other issue. Best to work one step at a time;)
Test 6 is for the sex-chromosome functionality (#58). Do we have sex-chromosome genotype or sequence data - I don't see these files in this PR (are they already in the git repo from before)?
Yeah, for test 5 we should look at the error-rate functionality (#57), so we need to discuss how to do a reasonable testing case! Do you have any suggestion how to do this in a simple way? Perhaps adding some errors into the input data compared to the true data and test that AlphaPeel recovers the true state? |
@gregorgorjanc Fort test 6, the sex-related part is from the command and the input file
where
gives the sex information. |
@gregorgorjanc For test 5, if we add some errors to the input data and compare the output to the true state, I'm wondering if the corrupted data can be recovered 100% to the true state, if not then how can we know which part of the loss of the accuracy is not error rate related and which part is caused by the input error rate. If we cannot separate these two cases then we won't know whether the effect of the input error rate is as expected. And for those that can return to the true state 100%, we can't tell if the accuracy is just a coincidence or a result of the correct error rate. |
@XingerTang I understand, BUT have you looked if the input and output make sense in the context of sex chromosome - females have two copies of X chromosome so they can have allele dosage of 0, 1, or 2, while males have one copy of X, so they can have allele dosage of 0 or 1. At the moment, we ignore the PAR (pseudo-autosomal region) of the Y chromosome, where males can have allele dosage of 0, 1, or 2 (will open an issue for this for future work - not a priority now). |
I moved this discussion to #57 |
I checked the input genotypes and the sequence file, and almost every entry is filled with |
@XingerTang ok, I propose to get this PR in and we open a new issue to address the sexchrom output, but I think this also raises the fact that we don't have sufficient information about these tests to really trust them. |
@XingerTang resolve the stuff mentioned in #63 (comment) and I will merge this PR. |
Merging this in to move to the next issues, some discovered as part of this PR work. |
Polish code according to AlphaGenes/tinyhouse#5
Add functional tests 5 and 6 #57 #58
I fix the test 6 by adding a result-checking part.
For test 5, originally test 5 did not have any data, so I copied the data of test 1 to test 5, and I set the expected data to check against the output of the command of the input data. Thus, I don't know if the code behaved as expected, maybe we need to assess the validity of the data later.