View source: R/restrictPhecodesBySex.R
restrictPhecodesBySex | R Documentation |
restrictPhecodesBySex
alters a table for PheWAS with phecodes, as from createPhenotypes
, to exclude individuals with non-applicable sexes from certain phenotypes.
restrictPhecodesBySex(phenotypes,id.sex,sex.restriction=PheWAS::sex_restriction)
phenotypes |
The PheWAS table to have restrictions applied. The first column should be the id. |
id.sex |
A data frame with the first column being the id and the second the sex, "M" or "F", of the individual. Individuals with any other specification will have all sex-specific phenotypes set to NA. |
sex.restriction |
List that specifies sex-specific phecodes. By default uses the provided PheWAS::sex_restriction. |
The phenotypes
data frame with NA values for individuals that do not match the sex for sex-specific codes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.