View source: R/create_phe_table_from_ped_table.R
create_phe_table_from_ped_table | R Documentation |
.ped
) tableCreate a single-phenotype table from pedigree (.ped
) table.
The individuals' family and within-family ID's are copied.
The case_control_code
is copied as well, but
renamed to trait
and divided by then.
In this way, PLINK treats the phenotype table as having quantitative
traits.
create_phe_table_from_ped_table(ped_table)
ped_table |
a 'pedigree' table. A
The Use read_plink_ped_file to read a |
a single-phenotype tibble, with columns:
FID
the family ID
IID
the within-family ID
P1
the phenotype
The column names match the PLINK names, see https://www.cog-genomics.org/plink/1.9/input#pheno
Richèl J.C. Bilderbeek
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.