Skip to content

Assignment 1#1

Open
jnepv wants to merge 3 commits intomainfrom
assignment-1
Open

Assignment 1#1
jnepv wants to merge 3 commits intomainfrom
assignment-1

Conversation

@jnepv
Copy link
Copy Markdown
Owner

@jnepv jnepv commented Mar 15, 2026

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Adding the code and answers for assignment 1

What did you learn from the changes you have made?

How to account for different genetic models (recessive, additive, dominant)

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

How were these changes tested?

A reference to a related issue in your repository (if applicable)

Checklist

  • 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 comments related to sample filtering


# Load the genotype matrix for SNP rs1861 with additive coding
geno_subset <- fread("./02_activities/data/geno.additiveA1.raw")
geno_subset=na.omit(geno_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 line will throw away samples even if they were genotyped for rs1861, just because they are missing genotype values for other SNPs that aren't relevant. So you end up fitting a model on fewer SNPs than you could have.

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.

Thank you for the timely fix! 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