mumosa
Multi-modal analyses of single-cell data
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
mumosa.hpp File Reference

Scale multi-modal embeddings based on their relative variance. More...

#include <vector>
#include <stdexcept>
#include <cmath>
#include <algorithm>
#include <limits>
#include "knncolle/knncolle.hpp"
#include "tatami_stats/tatami_stats.hpp"
Include dependency graph for mumosa.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 Float_ >
std::pair< Float_, Float_ > mumosa::compute_distance (Index_ num_cells, Float_ *distances)
 
template<typename Dim_ , typename Index_ , typename Float_ >
std::pair< Float_, Float_ > mumosa::compute_distance (const knncolle::Prebuilt< Dim_, Index_, Float_ > &prebuilt, const Options &options)
 
template<typename Dim_ , typename Index_ , typename Float_ >
std::pair< Float_, Float_ > mumosa::compute_distance (Dim_ num_dim, Index_ num_cells, const Float_ *data, const knncolle::Builder< knncolle::SimpleMatrix< Dim_, Index_, Float_ >, Float_ > &builder, const Options &options)
 
template<typename Float_ >
Float_ mumosa::compute_scale (const std::pair< Float_, Float_ > &ref, const std::pair< Float_, Float_ > &target)
 
template<typename Float_ >
std::vector< Float_ > mumosa::compute_scale (const std::vector< std::pair< Float_, Float_ > > &distances)
 
template<typename Dim_ , typename Index_ , typename Input_ , typename Scale_ , typename Output_ >
void mumosa::combine_scaled_embeddings (const std::vector< Dim_ > &num_dims, Index_ num_cells, const std::vector< Input_ * > &embeddings, const std::vector< Scale_ > &scaling, Output_ *output)
 

Detailed Description

Scale multi-modal embeddings based on their relative variance.