$removeLG | R Documentation |
Method for removing linkage group(s) from the list of linkage groups contained in a BC, FS or IC object.
BCobj$removeLG(LG, where = NULL)
FSobj$removeLG(LG, where = NULL)
ICobj$removeLG(LG)
LG |
An integer vector specifying the number of the linkage groups to be removed. |
where |
Character vector specifying which list of linkage groups to remove linkage groups from. |
For a linkage analysis in GUSMap, there may be the need to remove linkage groups from the list of created linkage groups. The indices of the linkage groups corresponds to the number given in the output for the BC, FS or IC object.
BC
object: When where = "LG-pts"
, linkage groups will be removed from the set of pseudo-testcross
linkage groups created via the $createLG
function. On the other hand, if
where = "LG-bi"
, then the pseudo-testcross linkage groups with BI SNPs added created
from the $addBIsnps
function will be removed.
When where = NULL
, linkage groups will be removed from the set of pseudo-testcross linkage groups with BI SNPs added if available,
otherwise they will be removed from the set of pseudo-testcross linkage groups.
FS
object: When where = "LG-pts"
, linkage groups will be removed from the set of pseudo-testcross
linkage groups created via the $createLG
function. On the other hand, if
where = "LG-comb"
, then linkage groups from the set of combined linkage groups
created from the $addBIsnps
function will be removed.
When where = NULL
, linkage groups will be removed from the set of combined linkage groups if available,
otherwise they will be removed from the set of pseudo-testcross linkage groups.
Timothy P. Bilton
BC
, FS
, IC
## simulate sequencing data
config <- list(replicate(2,sample(c(1,2,4), size=30, replace=TRUE), simplify = FALSE))
F1data <- simFS(0.01, config=config, meanDepth=10, nInd=50)
## Compute 2-point recombination fractions
F1data$rf_2pt(nClust=1)
## create paternal and maternal linkage groups
F1data$createLG()
## remove linkage groups 2 and 4
F1data$removeLG(LG = c(2,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.