adding 2 on the formula to get the phenotype proportion of heterozygote, on ploidy.R script, # 90
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
@goldingn
I am referring to the ploidy.R script, # 90
Where the main lines are trying to define the proportion of homozygous resistant and susceptible and heterozygous of phenotype.
According to the HWE, the phenotype proportion of homozygous susceptible is p^2, and q^2, and here we are trying to get the proportion of the phenotype that express the heterozygote which is 2pq (p^2+q^2+2pq = 1)
why I added 2 *
The code was:
proportion_het <- proportion_resistant_allele * proportion_susceptible_allele
Actually the code should be :
proportion_het <- 2* proportion_resistant_allele * proportion_susceptible_allele
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open ploidy.R at line 90 and compare the existing heterozygote calculation with the issue's Hardy–Weinberg rationale. Confirm the expected phenotype proportions from the stated relationship; the work is done when the heterozygote proportion matches that expectation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- bioinformatics
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100