plot_component_sizes
component_hist(data, highlight=None)
Draw a histogram for the given data.
This function is made for drawing histograms for data in small integer ranges, so the bin size is always 1.
One bar of the histogram can be highlighted in a different color. This could represent, for example, the bar corresponding to the number of samples present in the analysis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
list
|
Data from which to compute frequency distribution. |
required |
highlight
|
int
|
Value frequency to highlight in a different color. |
None
|
Source code in src/rna_clique/plot_component_sizes.py
count_samples(config)
Determine the number of samples used in an analysis.
This function prefers faster ways of determining the number of samples if they are available. If the number of samples could not be determined from the command-line arguments and configuration, then a SampleCountError will be raised.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
RNACliqueConfig
|
RNACliqueConfig for the analysis. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The number of samples used in the analysis. |