Skip to content

Completed assignment 1#1

Open
michellechzwang wants to merge 7 commits intomainfrom
assignment-1
Open

Completed assignment 1#1
michellechzwang wants to merge 7 commits intomainfrom
assignment-1

Conversation

@michellechzwang
Copy link
Copy Markdown
Owner

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

  • [X ] I can confirm that my changes are working as intended

Copy link
Copy Markdown

@eric-j-sanders eric-j-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out Eric! I have just made the change to only remove samples missing rs1861 genotypes

Copy link
Copy Markdown

@eric-j-sanders eric-j-sanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick update! Assignment complete!

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

Successfully merging this pull request may close these issues.

2 participants