View source: R/create_phe_table_from_fam_table.R
create_phe_table_from_fam_table | R Documentation |
.fam
) tableCreate a single-phenotype table from pedigree (.fam
) table.
The individuals' family and within-family ID's are copied.
The pheno
is copied as well, but
renamed to P1
and divided by ten.
In this way, PLINK treats the phenotype table as having quantitative
traits.
create_phe_table_from_fam_table(fam_table)
fam_table |
a tibble of the genetic mapping, with as many rows as SNPs. Each row contains:
Use get_test_fam_table to get 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
create_phe_table_from_fam_table(get_test_fam_table())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.