run_gp2ap: Run genoprob_to_alleleprob

View source: R/run_gp2ap.R

run_gp2apR Documentation

Run genoprob_to_alleleprob

Description

Read in genotype probabilities, convert them to allele probabilities, and write them back out.

Usage

run_gp2ap(input_file, output_file, cores = 1, compress = FALSE)

Arguments

input_file

Name of input file (should be RDS)

output_file

Name of output file (will be RDS)

cores

Number of CPU cores to use, for parallel calculations. (If 0, use parallel::detectCores().) Alternatively, this can be links to a set of cluster sockets, as produced by parallel::makeCluster().

compress

If TRUE, save a compressed RDS file (smaller but slower).

Examples

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_gp2ap("b6btbr_probs.rds", "b6btbr_aprobs.rds")

rqtl/qtl2cl documentation built on Oct. 13, 2024, 1:11 a.m.