cross2int | R Documentation |
Converts an object of class "cross
" to an object with class
"interval
". The function also imputes missing markers.
cross2int(object, impute = "MartinezCurnow", consensus.mark = TRUE,
id = "id", subset = NULL)
object |
an object of class |
impute |
a character string determining how missing values in
the linkage map should be imputed. If |
consensus.mark |
logical value. If |
id |
a character string or name of the unique identifier for each row of genotype
data (see Details). Defaults to |
subset |
a possible character vector naming the subset of
chromosomes to be returned. Defaults to |
This function provides the conversion of genetic data objects that have
already been generated using read.cross()
from Bromans qtl
package, to "interval"
objects ready for use with
wgaim
. Users should be aware that this function is restricted to
certain populations. object
must inherit one of the class
structures "bc"
, "dh"
, "f2"
, "riself"
.
During the conversion process three important linkage map attributes are assessed.
The map may be subsetted using the subset
argument
If consensus.mark = TRUE
then co-located marker sets are reduced
to form single consensus markers before missing values are
imputed. The marker similarity is determined by
the genetic distances that are given in the map component for each linkage
group. If a set of markers co-locate the name of the first marker is
chosen and a single consensus marker is determined by coalescing the
genetic information from all markers in the set. A "(C)" is placed
after the marker name for easy identification. The markers removed
from each set are returned with the object and placed under
"colocated.markers"
for inspection if required.
Missing values are imputed according to
the argument given by impute
. This imputation results in a
complete version of the marker data for each chromosome which is then
used to create the interval data component "interval.data
". The complete
marker data for each chromosome can be obtained from the "imputed.data
" element of the
returned list. It is therefore also possible to perform whole genome marker
analysis using wgaim
. See wgaim.asreml
for more details.
a list of class "cross"
that also inherits the class
"interval"
. The list contains the following components
geno |
A list with elements named by the corresponding names of the
chromosomes. Each chromosome is itself a list with six
elements: |
colocated.markers |
If |
pheno |
A data.frame of phenotypic information with rows as individuals read
in from |
Julian Taylor and Ari Verblya
Martinez, O., Curnow. R. N. (1994) Missing markers when estimating quantitative trait loci using regression mapping. Heredity, 73, 198-206.
Julian Taylor, Arunas Vebyla (2011). R Package wgaim: QTL Analysis in Bi-Parental Populations Using Linear Mixed Models. Journal of Statistical Software, 40(7), 1-18. URL https://www.jstatsoft.org/v40/i07/.
Verbyla, A. P., Cullis, B. R., Thompson, R (2007) The analysis of QTL by simultaneous use of the full linkage map. Theoretical And Applied Genetics, 116, 95-111.
read.cross
## Not run:
# read in linkage map from a rotated .CSV file with "id" as the
# identifier for each unique row
wgpath <- system.file("extdata", package = "wgaim")
genoSxT <- read.cross("csvr", file="genoSxT.csv", genotypes=c("AA","BB"),
na.strings = c("-", "NA"), dir = wgpath)
genoSxT <- cross2int(genoSxT, impute="MartinezCurnow", id = "id")
# plot linkage map
linkMap(genoSxT, cex = 0.5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.