Reads CSV, TSV or Excel tables (first column = sample IDs), VCF, HapMap and FASTA files. The data type and the table orientation are guessed when not given.
Usage
read_markers(
path,
name = basename(path),
format = NULL,
type = NULL,
transpose = NULL
)Arguments
- path
Path to the file.
- name
Original file name (used for format detection).
- format
File format; guessed with
detect_format()ifNULL.- type
Data type, one of
data_types(); guessed ifNULL.- transpose
TRUEif samples are in columns and markers in rows. Guessed ifNULL.
Examples
f <- system.file("extdata", "demo_binary.csv", package = "clusnalyst")
read_markers(f)
#> <Clusnalyst data>
#> Type: Dominant or binary markers (0/1)
#> Samples: 30
#> Markers: 60