mrbles.path module

MRBLE-Path Classes and Functions

This file stores the MRBLE-Path classes and functions for the MRBLEs Analysis module.

class mrbles.path.PathUnmix(references, blast=True)[source]

Bases: mrbles.data.TableDataFrame

MRBLE-Path unmixing algorithm.

Parameters:
  • references (Pandas DataFrame) – Dataframe with reference spectra.
  • blast (bool) – Setting to convert blast E-scores. Defaults to True.
static blast_convert(data)[source]

Convert and invert BLAST E-values to 0-1 reference spectra.

static generate_test_refs(channels, spike_channel=None, signal_max=65536, scale=True)[source]

Generate test reference spectra.

spike_channel : list
List of channel numbers to spike.
signal_max : int
Maximum value. Defaults to 2**16: 65536.
scale : bool
Scale to 1. Defaults to True.
unmix(data, signal, z_score=True)[source]

Unmix data.

Parameters:
  • data (Pandas DataFrame) – Data that contains the various sets.
  • signal (str) – Column with signal data.
  • z_score (bool or list) – Convert to Z-score if set to True, or uses mean and SD values of provided list position 0 is mean, position 1 is SD. Defaults to True.