require_files_tped: Require that (old) plink transposed files are present

View source: R/require_files_tped.R

require_files_tpedR Documentation

Require that (old) plink transposed files are present

Description

This function checks that each of the Plink transposed files (TPED/TFAM extensions) are present, given the shared base file path, stopping with an informative message if any of the files is missing. This function aids troubleshooting, as various downstream external software report missing files differently and sometimes using confusing or obscure messages.

Usage

require_files_tped(file)

Arguments

file

The shared file path (excluding extensions tped, tfam).

Value

Nothing

See Also

plink1_bed_to_tped() for creating TPED/TFAM files from BED/BIM/FAM files.

emmax_kin(), emmax_lmm() for functions that require TPED/TFAM files.

Examples

## Not run: 
# to require "data.tped" and "data.tfam", run like this:
# (stops if any of the files is missing)
require_files_tped("data")

## End(Not run)


OchoaLab/genbin documentation built on Nov. 14, 2024, 7:33 p.m.