View source: R/run_calckinship.R
run_calckinship | R Documentation |
Calculate genetic similarity among individuals (kinship matrix) from conditional genotype probabilities.
run_calckinship(
input_file,
output_file,
type = c("overall", "loco", "chr"),
omit_x = FALSE,
use_allele_probs = TRUE,
cores = 1,
compress = FALSE
)
input_file |
Input RDS file containing genotype or allele probabilities |
output_file |
Output RDS file for calculated kinship matrix |
type |
Indicates whether to calculate the overall kinship
( |
omit_x |
If |
use_allele_probs |
If |
cores |
Number of CPU cores to use, for parallel calculations.
(If |
compress |
If TRUE, save a compressed RDS file (smaller but slower). |
input_file <- paste0("https://github.com/rqtl/qtl2data/",
"blob/master/B6BTBR/b6btbr.zip")
## Not run: cross2rds(input_file, "b6btbr.rds")
## Not run: run_calcgenoprob("b6btbr.rds", "b6btbr_probs.rds")
## Not run: run_calckinship("b6btbr_probs.rds", "b6btbr_kinship.rds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.