computeRxy: compute Rxy from a simple 2-column formatted file

Description Usage Arguments Examples

View source: R/computeRxy.R

Description

This reads the file, strips off the first row (the column headers) and then writes it back out to a temporary file. Then reads it and does computations with the "related" package

Usage

1

Arguments

file

path to the two-column formatted file. 0 is used to denote missing data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
file <- system.file("extdata",
                    "WSH_W1718_v5_two_column_data.txt.gz",
                    package = "CohoBroodstock")
rxy <- computeRxy(file)

# here is one that uses a file that has some loci that must be dropped
file2 <- system.file("extdata",
                    "IGH_W1920_v1_norefs.txt.gz",
                    package = "CohoBroodstock")
rxy <- computeRxy(file2)

eriqande/CohoBroodstock documentation built on June 2, 2020, 3:09 a.m.