visualiseHaplo {polyqtlR} | R Documentation |
Visualise haplotypes in certain individuals in a certain region
Description
Function to visualise the haplotypes of a certain region in certain individuals
Usage
visualiseHaplo(
IBD_list,
display_by = c("phenotype", "name"),
linkage_group = NULL,
Phenotype.df = NULL,
genotype.ID = NULL,
trait.ID = NULL,
pheno_range = NULL,
cM_range = "all",
highlight_region = NULL,
select_offspring = NULL,
recombinant_scan = NULL,
allele_fish = NULL,
presence_threshold = 0.95,
xlabl = TRUE,
ylabl = TRUE,
mainTitle = NULL,
multiplot = NULL,
append = FALSE,
colPal = c("white", "navyblue", "darkred"),
hap.wd = 0.4,
recombination_data = NULL,
reset_par = TRUE,
log = NULL
)
Arguments
IBD_list |
List of IBD probabilities |
display_by |
Option to display a subset of the population's haplotypes either by |
linkage_group |
Numeric identifier of the linkage group being examined, based on the order of |
Phenotype.df |
A data.frame containing phenotypic values, which can be used to select a subset of the population
to visualise (with extreme phenotypes for example). By default |
genotype.ID |
The colname of |
trait.ID |
The colname of |
pheno_range |
Vector of numeric bounds of the phenotypic scores to include (offspring selection). |
cM_range |
Vector of numeric bounds of the genetic region to be explored. If none are specified, the default of |
highlight_region |
Option to hightlight a particular genetic region on the plot; can be a single position or a vector of 2 positions. By default |
select_offspring |
Vector of offspring identifiers to visualise, must be supplied if |
recombinant_scan |
Vector of homologue numbers between which to search for recombinant offspring in the visualised region and selected individuals.
By default |
allele_fish |
Vector of homologue numbers of interest, for which to search for offspring that carry these homologues (in the visualised
region). By default |
presence_threshold |
Numeric. The minimum probability used to declare presence of a homologue in an individual. This is only needed if a |
xlabl |
Logical, by default |
ylabl |
Logical, by default |
mainTitle |
Option to override default plot titles with a (vector of) captions. By default |
multiplot |
Vector of integers. By default |
append |
Option to allow user to append new plots to spaces generated by |
colPal |
Colour palette to use in the visualisation (best to provide 3 colours). |
hap.wd |
The width of the haplotype tracks to be plotted, generally recommended to be about 0.4 (default value) |
recombination_data |
List object as returned by the function |
reset_par |
By default |
log |
Character string specifying the log filename to which standard output should be written. If |
Value
If recombinant_scan
vector is supplied, a vector of recombinant offspring ID in the region of interest (otherwise NULL
).
Examples
data("IBD_4x")
visualiseHaplo(IBD_list = IBD_4x,
display_by = "name",
linkage_group = 1,
select_offspring = "all",
multiplot = c(3,3))