1#ifndef SCRAN_VARIANCES_CHOOSE_HIGHLY_VARIABLE_GENES_HPP
2#define SCRAN_VARIANCES_CHOOSE_HIGHLY_VARIABLE_GENES_HPP
7#include "sanisizer/sanisizer.hpp"
8#include "topicks/topicks.hpp"
31 std::size_t
top = 4000;
66template<
typename Stat_>
68 topicks::PickTopGenesOptions<Stat_> opt;
71 opt.bound = chvg_options.
bound;
91template<
typename Stat_,
typename Bool_>
93 topicks::pick_top_genes(n, statistic, options.
top, options.
larger, output, internal::translate_options<Stat_>(options));
106template<
typename Bool_ =
char,
typename Stat_>
108 auto output = sanisizer::create<std::vector<Bool_> >(n
109#ifdef SCRAN_VARIANCES_TEST_INIT
110 , SCRAN_VARIANCES_TEST_INIT
128template<
typename Index_,
typename Stat_>
130 return topicks::pick_top_genes_index<Index_>(n, statistic, options.
top, options.
larger, internal::translate_options<Stat_>(options));
Variance modelling for single-cell expression data.
Definition choose_highly_variable_genes.hpp:15
std::vector< Index_ > choose_highly_variable_genes_index(const Index_ n, const Stat_ *const statistic, const ChooseHighlyVariableGenesOptions &options)
Definition choose_highly_variable_genes.hpp:129
void choose_highly_variable_genes(const std::size_t n, const Stat_ *const statistic, Bool_ *const output, const ChooseHighlyVariableGenesOptions &options)
Definition choose_highly_variable_genes.hpp:92
Options for choose_highly_variable_genes().
Definition choose_highly_variable_genes.hpp:20
std::size_t top
Definition choose_highly_variable_genes.hpp:31
bool use_bound
Definition choose_highly_variable_genes.hpp:42
double bound
Definition choose_highly_variable_genes.hpp:52
bool keep_ties
Definition choose_highly_variable_genes.hpp:58
bool larger
Definition choose_highly_variable_genes.hpp:36