View source: R/summary.scantwo.R
subset.scantwo | R Documentation |
Pull out a specified set of chromosomes and/or LOD columns from
scantwo
output.
## S3 method for class 'scantwo'
subset(x, chr, lodcolumn, ...)
x |
An object of class |
chr |
Optional vector specifying which chromosomes to keep.
This should be a vector of character strings referring to
chromosomes by name; numeric values are converted to strings. Refer to
chromosomes with a preceding |
lodcolumn |
A vector specifying which LOD columns to keep (or, if
negative), omit. These should be between 1 and the number of LOD
columns in the input |
... |
Ignored at this point. |
The input scantwo
object, but with only the specified
subset of the data.
Karl W Broman, broman@wisc.edu
summary.scantwo
,
scantwo
data(fake.bc)
fake.bc <- calc.genoprob(fake.bc)
out <- scantwo(fake.bc, method="hk", pheno.col=1:2)
summary(subset(out, chr=18:19))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.