$maskSNP | R Documentation |
Method for masking and unmasking SNPs in an BC, FS or IC object.
BCobj$maskSNP(snps)
FSobj$maskSNP(snps)
ICobj$maskSNP(snps)
BCobj$unmaskSNP(snps)
FSobj$unmaskSNP(snps)
ICobj$unmaskSNP(snps)
snps |
An integer vector giving the indices of the SNP(s) in the dataset. |
In the linkage mapping process, some SNPs are often probmatic and there
may be the need exclude these SNPs in forming linkage groups and computing linkage maps. This can be achieved using
the $maskSNP
function, which masks SNPs.
Once a SNP is masked, it will be ignored in the functions $createLG
,
$addBIsnps
, $computeMap
. Note, however, that if a SNP is
already included in a linkage group, masking a SNP will not remove it (To remove SNPs from
a linkage group, one needs to use the $removeSNP
function).
The $unmaskSNP
function just unmasks any SNPs which have been masked using
$maskSNP
.
Timothy P. Bilton
BC
, FS
, IC
## simulate some sequencing data
set.seed(6745)
config <- list(list(sample(c(1,2,4), size=30, replace=TRUE)))
F1data <- simFS(0.01, config=config, meanDepth=10, nInd=50)
## Mask SNPs 1,5,8,11,13
F1data$maskSNP(c(1,5,8,11))
## Unmask SNPs 5 and 8
F1data$unmaskSNP(c(5,8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.