-
-
-
203 scores.reserve(num_labels);
-
204 for (
size_t l = 0;
l < num_labels; ++
l) {
-
-
-
-
-
-
223 std::vector<std::vector<Float_> >
scores;
-
-
-
+
+
195template<
typename Label_ = DefaultLabel,
typename Float_ = DefaultFloat>
+
+
+
+
201 scores.reserve(num_labels);
+
202 for (
size_t l = 0;
l < num_labels; ++
l) {
+
+
+
+
+
+
221 std::vector<std::vector<Float_> >
scores;
+
+
+
-
-
-
-
237template<
typename Label_,
typename Float_>
-
-
-
-
-
-
-
244 output.scores.emplace_back(
s.data());
-
-
+
+
+
+
235template<
typename Label_,
typename Float_>
+
+
+
+
+
+
+
242 output.scores.emplace_back(
s.data());
+
+
+
+
-
-
-
269template<
typename Label_ = DefaultLabel,
typename Value_,
typename Index_,
typename Float_>
-
-
-
271 const tatami::Matrix<Value_, Index_>&
test,
-
-
-
-
-
-
-
-
+
267template<
typename Label_ = DefaultLabel,
typename Value_,
typename Index_,
typename Float_>
+
+
+
269 const tatami::Matrix<Value_, Index_>&
test,
+
+
+
+
+
+
+
+
-
-
296template<
typename Label_ = DefaultLabel,
typename Value_,
typename Index_,
typename Float_>
-
-
-
298 const tatami::Matrix<Value_, Index_>&
test,
-
-
-
-
-
-
-
+
+
294template<
typename Label_ = DefaultLabel,
typename Value_,
typename Index_,
typename Float_>
+
+
+
296 const tatami::Matrix<Value_, Index_>&
test,
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
Common definitions for singlepp.
Cell type classification using the SingleR algorithm in C++.
Definition classify_single.hpp:19
std::vector< std::vector< std::vector< Index_ > > > Markers
Definition Markers.hpp:40
-
void classify_single_intersect(const tatami::Matrix< Value_, Index_ > &test, const TrainedSingleIntersect< Index_, Float_ > &trained, const ClassifySingleBuffers< Label_, Float_ > &buffers, const ClassifySingleOptions< Float_ > &options)
Definition classify_single.hpp:170
+
void classify_single_intersect(const tatami::Matrix< Value_, Index_ > &test, const TrainedSingleIntersect< Index_, Float_ > &trained, const ClassifySingleBuffers< Label_, Float_ > &buffers, const ClassifySingleOptions< Float_ > &options)
Definition classify_single.hpp:169
void classify_single(const tatami::Matrix< Value_, Index_ > &test, const TrainedSingle< Index_, Float_ > &trained, const ClassifySingleBuffers< Label_, Float_ > &buffers, const ClassifySingleOptions< Float_ > &options)
Implements the SingleR algorithm for automated annotation of single-cell RNA-seq data.
Definition classify_single.hpp:131
Output buffers for classify_single().
Definition classify_single.hpp:64
Float_ * delta
Definition classify_single.hpp:84
@@ -258,10 +256,10 @@
Float_ fine_tune_threshold
Definition classify_single.hpp:43
int num_threads
Definition classify_single.hpp:55
Float_ quantile
Definition classify_single.hpp:34
-
Results of classify_single() and classify_single_intersect().
Definition classify_single.hpp:198
-
std::vector< Float_ > delta
Definition classify_single.hpp:229
-
std::vector< Label_ > best
Definition classify_single.hpp:216
-
std::vector< std::vector< Float_ > > scores
Definition classify_single.hpp:223
+
Results of classify_single() and classify_single_intersect().
Definition classify_single.hpp:196
+
std::vector< Float_ > delta
Definition classify_single.hpp:227
+
std::vector< Label_ > best
Definition classify_single.hpp:214
+
std::vector< std::vector< Float_ > > scores
Definition classify_single.hpp:221
Train a classifier from a single reference.