1#ifndef SINGLEPP_LOADERS_VERIFY_HPP
2#define SINGLEPP_LOADERS_VERIFY_HPP
34template<
typename Value_,
typename Index_,
typename Rank_,
typename Label_>
38 throw std::runtime_error(
"number of columns of 'rankings' does not equal length of 'labels'");
46 throw std::runtime_error(
"length of 'markers' does not equal the number of labels in 'labels'");
52 throw std::runtime_error(
"number of inner vectors in 'markers' does not equal the number of labels in 'labels'");
54 for (
const auto&
m :
mm) {
57 throw std::runtime_error(
"gene indices in 'markers' should be non-negative and less than the number of rows in 'rankings'");
Load pre-processed single reference datasets.
Definition labels.hpp:23
tatami::DenseMatrix< Value_, Index_, std::vector< Rank_ > > RankMatrix
Definition rankings.hpp:35
void verify(const RankMatrix< Value_, Index_, Rank_ > &rankings, const std::vector< Label_ > &labels, const singlepp::Markers< Index_ > &markers)
Definition verify.hpp:35
std::vector< std::vector< std::vector< Index_ > > > Markers
Load ranking matrices for singlepp reference datasets.