hypo_import_snps: Import SNP based statistics

Description Usage Arguments Details See Also Examples

View source: R/hypogen_import.R

Description

hypo_import_snps imports SNP based statistics (such as VCFtools output).

Usage

1

Arguments

file

string scalar (mandatory), the input file

gz

logical scalar (optional), is the input file gz compressed?

run

string scalar (optional), appends a column RUN as ID if several files should be merged later

...

parameters passed to vroom::vroom()

Details

This function imports SNP based statistics. The input is expected to be tab separated, to contain a CHROM and POS column and can optionally be gz compressed. After import, the CHROM based position is transposed to a genome wide position for continuous visualization.

See Also

hypo_import_windows

Examples

1
2
3
file_snps <- system.file("extdata", "example.weir.fst.gz", package = "hypogen")

hypo_import_snps(file = file_snps, gz = TRUE)

k-hench/hypogen documentation built on April 14, 2021, 1:44 p.m.