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

request for getSex for list of pedigrees and singletons #15

Closed
thoree opened this issue Dec 5, 2018 · 1 comment
Closed

request for getSex for list of pedigrees and singletons #15

thoree opened this issue Dec 5, 2018 · 1 comment
Labels
feature Feature request

Comments

@thoree
Copy link

thoree commented Dec 5, 2018

It would be nice with a version of getSex working
for a list of pedigrees and singletons:

library(pedtools)
v = list(singleton(1),singleton(2))
getSex(v,"1")
#> Error: Input is not a `ped` object

Created on 2018-12-05 by the reprex package (v0.2.1)

@magnusdv magnusdv added the feature Feature request label Dec 6, 2018
@magnusdv
Copy link
Owner

This is implemented now, with getSex() allowing x to be a list of ped objects:

library(pedtools)
v = list(singleton(id = "a", sex = 2), singleton(id = 1, sex = 1))
getSex(v, c("a", 1))
#> [1] 2 1

Created on 2018-12-10 by the reprex package (v0.2.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants