Open
Conversation
eric-j-sanders
suggested changes
Mar 18, 2026
eric-j-sanders
left a comment
There was a problem hiding this comment.
Please address issue related to sample filters
| ```{r} | ||
| # Load genotype data | ||
| geno_A1_subset <- fread("./02_activities/data/geno.A1.additive.raw") | ||
| geno_A1_subset=na.omit(geno_A1_subset) |
There was a problem hiding this comment.
This deletes samples missing genotype data for any SNP. This means it deletes samples that had non-missing values for the target SNP rs1861, but had missing values for other SNPs we aren't actually worried about. This filter step should only remove samples missing rs1861 genotypes.
Owner
Author
There was a problem hiding this comment.
Thanks for pointing this out Eric! I have just made the change to only remove samples missing rs1861 genotypes
…ith missing values in SNP of interest
eric-j-sanders
approved these changes
Mar 18, 2026
eric-j-sanders
left a comment
There was a problem hiding this comment.
Thanks for the quick update! Assignment complete!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Adding code to complete assignment 1.
What did you learn from the changes you have made?
I have learned how to use different plink commands in bash to look at .bim, .fam., and .bed files (e.g., looking at allele frequencies, calculating HWE p-values, etc). I have also learned how to do additive, recessive, and dominant coding, then evaluate associations between genotypes and phenotypes using linear regression models and visualizing it using scatterplots.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
N/A
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
N/A
How were these changes tested?
N/A
A reference to a related issue in your repository (if applicable)
Checklist