View source: R/recalibrate_genotypes.R
recal_Geno | R Documentation |
Recalibrate genotypes for samples of mixed population
recal_Geno(
genotypes,
type,
indAF,
platform = "EPIC",
GP_cutoff = 0.9,
outlier_cutoff = "max",
missing_cutoff = 0.1,
R2_cutoff_up = 1.1,
R2_cutoff_down = 0.75,
MAF_cutoff = 0.01,
HWE_cutoff = 1e-06
)
genotypes |
A list returned by either |
type |
One of snp_probe, typeI_probe, and typeII_probe. |
indAF |
A matrix of individual-specific AFs. Provide SNPs as rows and samples as columns. |
platform |
EPIC or 450K. |
GP_cutoff |
When calculating missing rate, genotypes with the highest genotype probability < GP_cutoff will be treated as missing. |
outlier_cutoff |
"max" or a number ranging from 0 to 1. If outlier_cutoff="max", genotypes with outlier probability larger than all of the three genotype probabilities will be set as missing. If outlier_cutoff is a number, genotypes with outlier probability > outlier_cutoff will be set as missing. |
missing_cutoff |
Missing rate cutoff to filter variants. Note that for VCF output, variants with missing rate above the cutoff will be marked in the |
R2_cutoff_up , R2_cutoff_down |
R-square cutoffs to filter variants (Variants with R-square > R2_cutoff_up or < R2_cutoff_down should be removed). Note that for VCF output, variants with R-square outside this range will be marked in the |
MAF_cutoff |
A MAF cutoff to filter variants. Note that for VCF output, variants with MAF below the cutoff will be marked in the |
HWE_cutoff |
HWE p value cutoff to filter variants. Note that for VCF output, variants with HWE p value below the cutoff will be marked in the |
A list of recalibrated genotypes containing
dosage |
A matrix of genotype calls. Variants with R2s, HWE p values, MAFs, or missing rates beyond the cutoffs are removed. |
genotypes |
A list containing RAI, shapes of the mixed beta distributions, prior probabilities that the RAI values belong to one of the three genotypes, proportion of RAI values being outlier (U), and genotype probability (GP) |
indAF |
A matrix of individual-specific AFs. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.