The hapHeatmap
function generates a graphical output of the alleles per gene in multiple samples.
hapHeatmap(
hap_table,
chain = c("IGH", "IGK", "IGL", "TRB", "TRA"),
genes_order = NULL,
removeIGH = TRUE,
lk_cutoff = 1,
mark_low_lk = TRUE,
size_annot = 1.5,
color_y = NULL,
order_subject = NULL,
file = NULL,
size_text = NULL,
ylabel_size = 1
)
A list with the following:
'p'
: heat-map visualization of the haplotype inference for multiple samples.
'width'
: Optimal width value for rendering plot.
'height'
: Optimal width value for rendering plot.
When a file is supplied the graph is also rendered to pdf.
haplotype summary table. See details.
the IG chain: IGH,IGK,IGL. Default is IGH.
A vector of the genes by the desired order. Default is by GENE.loc
if TRUE, 'IGH'\'IGK'\'IGL'\'TRB' prefix is removed from gene names.
the lK cutoff value to be considered low for texture layer. Default is lK<1.
if TRUE, a texture is add for low lK values. Default is TRUE.
size of bottom annotation text. Default is 1.5 .
named list of the colors for y axis labels.
order subject by a vector.
file path for rendering the plot to pdf. If non is supplied than the plot is returned as object. Default is NULL.
text size for annotations.
text size for y axis labels.
A data.frame
created by createFullHaplotype
.
# Plotting haplotpe heatmap
p <- hapHeatmap(samplesHaplotype)
p$p
Run the code above in your browser using DataLab