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

Heterozygosity filter does not remove samples below -3SD #19

Open
mvochteloo opened this issue Mar 21, 2024 · 0 comments
Open

Heterozygosity filter does not remove samples below -3SD #19

mvochteloo opened this issue Mar 21, 2024 · 0 comments

Comments

@mvochteloo
Copy link

In the filter_het.R script samples for which the proportion of non-homozygous sites below -3 or above +3 standard deviations are correctly identified als failed (het_fail). However, for the het_pass samples below -3 standard deviations are not filtered out.

het_fail <- subset(het, (het$HET_RATE < mean(het$HET_RATE) - 3*sd(het$HET_RATE)) | (het$HET_RATE > mean(het$HET_RATE) +3 * sd(het$HET_RATE)));
het_pass <- subset(het, (het$HET_RATE < mean(het$HET_RATE) - 3*sd(het$HET_RATE)) | (het$HET_RATE < mean(het$HET_RATE) +3 * sd(het$HET_RATE)));
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

1 participant