fst_path {qtl2fst}R Documentation

Path used in fst_genoprob object

Description

Get the path used in an fst_genoprob object.

Usage

fst_path(object)

Arguments

object

An object of class "fst_genoprob" as created by fst_genoprob().

Value

Character string with path (and initial file stem) for files used in the input object.

See Also

fst_files(), replace_path()

Examples

library(qtl2)
grav2 <- read_cross2(system.file("extdata", "grav2.zip", package="qtl2"))
probs <- calc_genoprob(grav2, error_prob=0.002)
dir <- tempdir()
fprobs <- fst_genoprob(probs, "grav2", dir, overwrite=TRUE)

fst_path(fprobs)
fst_files(fprobs)

# clean up: remove all the files we created
unlink(fst_files(fprobs))

[Package qtl2fst version 0.28 Index]