plotRegulome
packageplotRegulome.Rd
Plotting Islet Regulome data
By providing the coordinates and IRB datasets of interest, it will produce the characteristic Islet Regulome Broser plot.
plotRegulome(coordinates, snps_dataset = "", snps_col = "dark red", contacts_dataset = "", contacts_col = c(`0` = "grey", `3` = "blue", `5` = "dark orange"), maps_dataset = "", clusters_dataset = "", cluster_col = "dark green", tfs_dataset = "", tfs_col = "dark blue", genes_col = c(gene = "dark grey", spec = "darkorchid3", lnc = "black"), showLongestTranscript = TRUE, randomIRB = FALSE, genome = "hg19", path = "~/data/IRB/")
coordinates | Either a |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
snps_dataset | GWAS SNPs dataset name to use for the analysis. The value should be one
of the defined below (column Dataset). Defaults to
|
||||||||||||||||||
snps_col | Color for the GWAS SNPs. Default: "dark red" |
||||||||||||||||||
contacts_dataset | BaitID or bait gene name for the virtual 4C data (Miguel-Escalada et al. (2019)) to plot. |
||||||||||||||||||
contacts_col | Named vector ("0", "3" and "5"), with the colors for each group of CHiCAGO contacts. |
||||||||||||||||||
maps_dataset | Name of the chromatin maps to plot. The value should be one
of the defined below (column Dataset). Defaults to
|
||||||||||||||||||
clusters_dataset | Name of the enhncer cluster data to plot. The value should be one
of the defined below (column Dataset). Defaults to
|
||||||||||||||||||
cluster_col | Color for the clusters. Default: "dark green" |
||||||||||||||||||
tfs_dataset | Name of the TF dataset to plot. The value should be one
of the defined below (column Dataset). Defaults to
|
||||||||||||||||||
tfs_col | Color for the TFs circle border. |
||||||||||||||||||
genes_col | Named character vector ("gene", "lnc" and "spec") with the colors for each type of feture plotted in the gene annotation track. |
||||||||||||||||||
showLongestTranscript | When plotting gene data, set to TRUE (default) if you want to reduce the number of transcripts by only plotting the longest transcript per gene. If set to FALSE, will plot all available transcripts. |
||||||||||||||||||
randomIRB | Generate random combinations of IRB datasets. |
||||||||||||||||||
genome | Character string indicating the genome for the coordinates. Default: hg19. |
||||||||||||||||||
path | Path containing the genomes folder (for example "hg19"). Default: "~/data/IRB/" |
A ggplot2 object that can be plotted or saved with ggsave. Recomended device size in
inches is: width=11, height=6
See the README on GitHub
if (FALSE) { coordinates <- "chr5:131817301-131826490" snps_dataset <- "70KforT2D" contacts_dataset <- 570519 #183446 maps_dataset <- "progenitors" clusters_dataset <- "" tfs_dataset <- "" path <- "~/data/IRB/" plotRegulome(coordinates=coordinates, snps_dataset=snps_dataset, contacts_dataset=contacts_dataset, maps_dataset=maps_dataset, clusters_dataset=clusters_dataset, tfs_dataset=tfs_dataset, path=path) }