|
topicks
Pick top genes for downstream analyses
|
#include <TopQueue.hpp>
Public Attributes | |
| std::optional< Stat_ > | bound |
| bool | open_bound = true |
| bool | keep_ties = true |
| bool | check_nan = false |
| std::optional< std::size_t > | reserve |
Options for TopQueue.
| Stat_ | Numeric type of the statistic for ranking top genes. |
| std::optional<Stat_> topicks::TopQueueOptions< Stat_ >::bound |
A absolute bound for the statistic. A gene will not be inserted in the queue if its statistic is:
larger = true and TopQueueOptions::open_bound = true.larger = true and TopQueueOptions::open_bound = false.larger = false and TopQueueOptions::open_bound = true.larger = false and TopQueueOptions::open_bound = false.If unset, no absolute bound is applied to the statistic.
| bool topicks::TopQueueOptions< Stat_ >::open_bound = true |
Whether TopQueue::bound is an open interval, i.e., genes with statistics equal to the bound will not be inserted in the queue. Only relevant if TopQueue::bound is set.
| bool topicks::TopQueueOptions< Stat_ >::keep_ties = true |
Whether to keep all genes with statistics that are tied with the top-th gene. If false, the number of genes in the queue will not be greater than top; ties are broken by retaining genes with a lower index.
| bool topicks::TopQueueOptions< Stat_ >::check_nan = false |
Whether to check for NaN values and ignore them. If false, it is assumed that no NaNs will be added to the queue.
| std::optional<std::size_t> topicks::TopQueueOptions< Stat_ >::reserve |
Memory to reserve for the underlying storage during TopQueue construction. If not provided, memory is automatically reserved for top elements to prevent any reallocation upon TopQueue::push(). Setting this value to zero will disable preallocation.