| findCommonID | R Documentation |
Identify which individuals are in common between a QTL mapping data set and a matrix of phenotypes, series of genes.
findCommonID(id1, id2)
id1 |
A character vector of individual IDs. This can also be a QTL
cross object (see |
id2 |
Like |
A list with three components:
First, a data frame with rows corresponding to all individuals (across the
two sets of individual IDs) and three columns: indexInFirst and
indexInSecond contain numeric indices to the locations of the
individuals within cross and pheno, and inBoth is a
logical vector to indicate which individuals appear in both crosses. The
row names are the individual identifiers.
The second and third components are vectors of indices in id1 and
id2, respectively, indicating the paired locations of the individuals
that are in common.
Karl W Broman, broman@wisc.edu
calc.locallod(), corbetw2mat()
data(f2cross, expr1)
# align IDs
id <- findCommonID(f2cross, expr1)
# aligned data
f2cross_aligned <- f2cross[,id$first]
expr1_aligned <- expr1[id$second,]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.