Plot the gene patters for given ids.
plotGeneClusterPatterns(
genesList,
ids,
additionalID,
max_gap = 1e+07,
colors,
maxNonEssential = 5,
alignType = c("local", "global"),
label_size = 0.5
)A list of GRanges.
IDs to be plotted. See getGeneCluster.
Other IDs should be included.
The maximal gaps from the first ID in `ids`.
The colors for genes
The maximal number for non-essential genes between two essential genes.
Align the gene pattern by query gene ('local') or by the clusters ('global').
The label cex value. default is 0.5.
invisible list of plot data.
fish <- readRDS(system.file('extdata', 'fish.rds',
package = 'geneClusterPattern'))
homologs <- readRDS(system.file('extdata', 'homologs.rds',
package = 'geneClusterPattern'))
queryGene <- 'inhbaa'
nearestNeighbors <- getGeneCluster(fish, queryGene, homologs)
genesList <- c(drerio=fish, homologs)
pgp <- plotGeneClusterPatterns(genesList, nearestNeighbors)