GrScoreHistogram | R Documentation |
Plots a histogram of granule scores from a specified column within a Seurat object,
with a vertical line denoting a threshold. The function allows for an optional
inversion of filtering logic based on the miscname
and auto
parameters.
GrScoreHistogram(
obj = combined.obj,
colname = i1,
miscname = "thresh.stress.ident1",
per_granule = TRUE,
auto = TRUE,
show.q90 = TRUE,
w = 8,
h = 5,
...
)
obj |
A Seurat object containing metadata with granule scores and miscellaneous information.
Defaults to |
colname |
The name of the column within |
miscname |
The key within |
per_granule |
Show granule- or cell count on the Y axis? Default is granules (TRUE). |
auto |
A logical flag indicating whether to automatically invert the filtering logic
for a specific |
show.q90 |
Show 90th quantile of the distribution |
... |
Additional parameters to be passed to |
The function first verifies the structure and content of the provided obj
, ensuring it
contains the necessary components for threshold retrieval and score extraction.
The histogram is plotted using ggExpress::qhistogram
, with customization options
available through additional arguments. The auto
parameter's effect is noted, particularly for the
thresh.notstress.ident3
condition, although it primarily impacts plotting logic interpretation.
The function directly calls ggExpress::qhistogram
for plotting, hence does not return a value
but generates a histogram plot as a side effect.
GrScoreHistogram(
obj = combined.obj,
colname = "RNA_snn_res.6.reassigned_cl.av_GO:0042063",
miscname = "thresh.stress.ident1"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.