readChunkcounts: Load a chunkcounts matrix from chromopainter

Description Usage Arguments Value See Also Examples

View source: R/helperFunctions.R

Description

Read chromopainter output and present it in the form that badMIXTURE needs; i.e. a matrix normalised to have rowsums = 1, which is the default behaviour

Usage

1
readChunkcounts(filename, skip = 1)

Arguments

filename

Name of the chunkcounts file to be loaded

skip

number of lines to skip at the top of the file. Set to 1 if there is a CFACTOR header.

Value

A matrix of normalised chunkcounts

See Also

readQ

Examples

1
2
3
4
5
## Not run: 
recent_ariL=readChunkcounts((system.file("extdata",
"Recent_admix.pruned_cp_pop_linked.chunkcounts.out", package = "badMIXTURE")))

## End(Not run)

danjlawson/badMIXTURE documentation built on Sept. 27, 2019, 9:11 p.m.