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

updated kingToMatrix to account for new KING --related output #18

Merged
merged 3 commits into from
May 6, 2019

Conversation

mconomos
Copy link
Contributor

@mconomos mconomos commented May 4, 2019

The function used to infer if it was --ibdseg or --kinship output from the column names present. However, with the --related option in KING now, that output contains both. The simplest solution is just to make the user specify which they want (they should know anyways), so I added a new 'estimator' argument.

I'm not 100% sure I did the match.arg() thing correctly, so if you could at least check that over, that would be good. Thanks!

@mconomos mconomos requested a review from smgogarten May 4, 2019 20:29
Copy link
Collaborator

@smgogarten smgogarten left a comment

Choose a reason for hiding this comment

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

Added a check that the requested estimator is actually present in the file, otherwise it will issue a warning and return a diagonal matrix. Updated unit tests and examples to use estimator argument.

@smgogarten smgogarten merged commit b45f6de into master May 6, 2019
@smgogarten smgogarten deleted the pcair branch May 6, 2019 23:08
@mconomos
Copy link
Contributor Author

mconomos commented May 6, 2019

Thanks for catching that case!

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