|
singlepp
A C++ library for cell type classification
|
Classifier built from an intersection of genes. More...
#include <train_single.hpp>
Public Member Functions | |
| Index_ | get_test_nrow () const |
| const Markers< Index_ > & | get_markers () const |
| const std::vector< Index_ > & | get_test_subset () const |
| const std::vector< Index_ > & | get_ref_subset () const |
| std::size_t | num_labels () const |
| std::size_t | num_profiles () const |
Classifier built from an intersection of genes.
Instances of this class should not be directly constructed, but instead returned by calling train_single_intersect(). This uses the intersection of genes between the test dataset and those of the reference dataset. Each instance can be used in classify_single_intersect() with a test dataset that has the specified genes.
| Index_ | Integer type for the row/column indices of the matrix. |
| Float_ | Floating-point type for the correlations and scores. |
|
inline |
get_test_subset() and get_ref_subset()). e.g., get_test_subset()[get_markers()[2][1].front()] is the test matrix row index of the first marker of the third label over the first label. The set of marker genes is a subset of those in the input markers in train_single_intersect().
|
inline |
ref_id matrix supplied to train_single_intersect(), and can be assumed to represent row indices into the reference matrix. This has the same length as the subset vector returned by get_test_subset(), where corresponding entries refer to the same genes in the respective datasets.
|
inline |
|
inline |
test_id array supplied to train_single_intersect(), and can be assumed to represent row indices into the test matrix. This has the same length as the subset vector returned by get_ref_subset(), where corresponding entries refer to the same genes in the respective datasets.
|
inline |
|
inline |