mumosa
Multi-modal analyses of single-cell data
|
Scale multi-modal embeddings based on their relative variance. More...
#include <vector>
#include <stdexcept>
#include <cmath>
#include <algorithm>
#include <limits>
#include <cstddef>
#include "knncolle/knncolle.hpp"
#include "tatami_stats/tatami_stats.hpp"
Go to the source code of this file.
Classes | |
struct | mumosa::Options |
Options for compute_distance() . More... | |
Namespaces | |
namespace | mumosa |
Scale multi-modal embeddings to adjust for differences in variance. | |
Functions | |
template<typename Index_ , typename Distance_ > | |
std::pair< Distance_, Distance_ > | mumosa::compute_distance (Index_ num_cells, Distance_ *distances) |
template<typename Index_ , typename Input_ , typename Distance_ > | |
std::pair< Distance_, Distance_ > | mumosa::compute_distance (const knncolle::Prebuilt< Index_, Input_, Distance_ > &prebuilt, const Options &options) |
template<typename Index_ , typename Input_ , typename Distance_ , class Matrix_ = knncolle::Matrix<Index_, Input_>> | |
std::pair< Distance_, Distance_ > | mumosa::compute_distance (std::size_t num_dim, Index_ num_cells, const Input_ *data, const knncolle::Builder< Index_, Input_, Distance_, Matrix_ > &builder, const Options &options) |
template<typename Distance_ > | |
Distance_ | mumosa::compute_scale (const std::pair< Distance_, Distance_ > &ref, const std::pair< Distance_, Distance_ > &target) |
template<typename Distance_ > | |
std::vector< Distance_ > | mumosa::compute_scale (const std::vector< std::pair< Distance_, Distance_ > > &distances) |
template<typename Index_ , typename Input_ , typename Scale_ , typename Output_ > | |
void | mumosa::combine_scaled_embeddings (const std::vector< std::size_t > &num_dims, Index_ num_cells, const std::vector< Input_ * > &embeddings, const std::vector< Scale_ > &scaling, Output_ *output) |
Scale multi-modal embeddings based on their relative variance.