Plot Individual Genes
# S4 method for bcbioRNASeq plotGene(object, interestingGroups, normalized = "tpm", gene, format = "symbol", color = scale_color_viridis(discrete = TRUE), returnList = FALSE)
| object | Object. |
|---|---|
| interestingGroups | Category to use to group samples. In the plotting
functions, this will define color and shape, where applicable. If unset,
this is automatically determined by the metadata set inside the
bcbioRNASeq object. When set to |
| normalized | Normalization method. Supports |
| gene | Gene identifier. Can input multiple genes as a character vector. |
| format | Ensembl identifier format. Supports |
| color | Desired ggplot color scale. Defaults to
|
| returnList | Return the plotlist used to generate the paneled,
multi-gene plot with |
returnList = FALSE: cowplot::plot_grid() graphical output.
returnList = TRUE: list of per gene ggplot objects.
Other Quality Control Plots: plot53Bias,
plotCountDensity,
plotCountsPerGene,
plotExonicMappingRate,
plotGenderMarkers,
plotGeneSaturation,
plotGenesDetected,
plotIntronicMappingRate,
plotMappedReads,
plotMappingRate,
plotRRNAMappingRate,
plotTotalReads
# Gene symbols symbol <- rowData(bcb)[["symbol"]][1:3] print(symbol)#> [1] "Rgs20" "Rab23" "Ncoa2"plotGene(bcb, gene = symbol, format = "symbol")# Gene identifiers# NOT RUN { ensgene <- rowData(bcb)[["ensgene"]][1:3] print(ensgene) plotGene(bcb, gene = ensgene, format = "ensgene") # }