View source: R/create_phe_table_from_psam_table.R
create_phe_table_from_psam_table | R Documentation |
.psam
) tableCreate a single-phenotype table from pedigree (.psam
) 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_psam_table(psam_table)
psam_table |
a tibble with as much rows as individuals. It has the following columns:
The uppercase column names are those as used by PLINK2. |
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_psam_table(get_test_psam_table())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.