Skip to content

Check for 100% missing rate#11

Open
dvg-p4 wants to merge 6 commits intoWenjianBI:masterfrom
dvg-p4:check-all-na
Open

Check for 100% missing rate#11
dvg-p4 wants to merge 6 commits intoWenjianBI:masterfrom
dvg-p4:check-all-na

Conversation

@dvg-p4
Copy link
Copy Markdown

@dvg-p4 dvg-p4 commented Feb 16, 2024

Closes #10

I also took the liberty of making some minor fixes to the documentation, mainly adding a line for the G.model argument, and using @inheritParams to automatically reuse the parameter documentation from SPACox() for SPACox.plink() and SPACox.one.SNP(). I addressed most of the other warnings and notes from R CMD check as well.

TODO:

  • Test
  • Bump version number

@dvg-p4 dvg-p4 marked this pull request as draft February 16, 2024 18:47
@dvg-p4 dvg-p4 marked this pull request as ready for review July 24, 2024 16:43
@dvg-p4
Copy link
Copy Markdown
Author

dvg-p4 commented Jul 24, 2024

@WenjianBI Would it be possible to merge in the fixes I've proposed in this PR? SPACox is very useful for our work, but the bug with 100% missingness has thrown a bit of a wrench in things for us.

Comment thread R/Library.r
Comment on lines +248 to +251
if(missing.rate == 1){
return(c(NA, 1, NA, NA, NA, NA, NA))
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This portion is the actual fix for the missingness bug--the rest is all cleanup of documentation and imports.

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.

SPACox errors out if there are no nonmissing genotypes for a variant

1 participant