1#ifndef SCRAN_VARIANCES_CHOOSE_HIGHLY_VARIABLE_GENES_HPP
2#define SCRAN_VARIANCES_CHOOSE_HIGHLY_VARIABLE_GENES_HPP
9#include "sanisizer/sanisizer.hpp"
10#include "topicks/topicks.hpp"
33 std::size_t
top = 4000;
65template<
typename Stat_>
67 topicks::PickTopGenesOptions<Stat_> opt;
70 opt.bound = chvg_options.
bound;
90template<
typename Stat_,
typename Bool_>
92 topicks::pick_top_genes(n, statistic, options.
top, options.
larger, output, internal::translate_options<Stat_>(options));
105template<
typename Bool_ =
char,
typename Stat_>
107 auto output = sanisizer::create<std::vector<Bool_> >(n
108#ifdef SCRAN_VARIANCES_TEST_INIT
109 , SCRAN_VARIANCES_TEST_INIT
127template<
typename Index_,
typename Stat_>
129 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:17
void choose_highly_variable_genes(std::size_t n, const Stat_ *statistic, Bool_ *output, const ChooseHighlyVariableGenesOptions &options)
Definition choose_highly_variable_genes.hpp:91
std::vector< Index_ > choose_highly_variable_genes_index(Index_ n, const Stat_ *statistic, const ChooseHighlyVariableGenesOptions &options)
Definition choose_highly_variable_genes.hpp:128
Options for choose_highly_variable_genes().
Definition choose_highly_variable_genes.hpp:22
std::size_t top
Definition choose_highly_variable_genes.hpp:33
bool use_bound
Definition choose_highly_variable_genes.hpp:44
double bound
Definition choose_highly_variable_genes.hpp:51
bool keep_ties
Definition choose_highly_variable_genes.hpp:57
bool larger
Definition choose_highly_variable_genes.hpp:38