parafac4microbiome1.0.2 package

Parallel Factor Analysis Modelling of Longitudinal Microbiome Data

assessModelQuality

Create randomly initialized models to determine the correct number of ...

assessModelStability

Bootstrapping procedure to determine PARAFAC model stability for a giv...

calculateFMS

Calculate Factor Match Score for all initialized models.

calculateSparsity

Calculate sparsity across the feature mode of a multi-way array.

calculateVarExp

Calculate the variation explained by a PARAFAC model.

calcVarExpPerComponent

Calculate the variance explained of a PARAFAC model, per component

corcondia

Core Consistency Diagnostic (CORCONDIA) calculation

fac_to_vect

Vectorize Fac object

flipLoadings

Sign flip the loadings of many randomly initialized models to make con...

importMicrobiotaProcess

Import MicrobiotaProcess object for PARAFAC modelling

importPhyloseq

Import Phyloseq object for PARAFAC modelling

importTreeSummarizedExperiment

Import TreeSummarizedExperiment object for PARAFAC modelling

initializePARAFAC

Initialize PARAFAC algorithm input vectors

multiwayCenter

Center a multi-way array

multiwayCLR

Perform a centered log-ratio transform over a multi-way array

multiwayScale

Scale a multi-way array

parafac_core_als

Internal PARAFAC alternating least-squares (ALS) core algorithm

parafac_fun

PARAFAC loss function calculation

parafac_gradient

Calculate gradient of PARAFAC model.

parafac

Parallel Factor Analysis

parafac4microbiome-package

parafac4microbiome: Parallel Factor Analysis Modelling of Longitudinal...

pipe

Pipe operator

plotModelMetric

Plot diagnostics of many initialized PARAFAC models.

plotModelStability

Plot a summary of the loadings of many initialized parafac models.

plotModelTCCs

Plots Tucker Congruence Coefficients of randomly initialized models.

plotPARAFACmodel

Plot a PARAFAC model

processDataCube

Process a multi-way array of count data.

reinflateFac

Calculate Xhat from a model Fac object

reinflateTensor

Create a tensor out of a set of matrices similar to a component model.

sortComponents

Sort PARAFAC components based on variance explained per component.

transformPARAFACloadings

Transform PARAFAC loadings to an orthonormal basis. Note: this functio...

vect_to_fac

Convert vectorized output of PARAFAC to a Fac list object with all loa...

Creation and selection of PARAllel FACtor Analysis (PARAFAC) models of longitudinal microbiome data. You can import your own data with our import functions or use one of the example datasets to create your own PARAFAC models. Selection of the optimal number of components can be done using assessModelQuality() and assessModelStability(). The selected model can then be plotted using plotPARAFACmodel(). The Parallel Factor Analysis method was originally described by Caroll and Chang (1970) <doi:10.1007/BF02310791> and Harshman (1970) <https://www.psychology.uwo.ca/faculty/harshman/wpppfac0.pdf>.

  • Maintainer: Geert Roelof van der Ploeg
  • License: MIT + file LICENSE
  • Last published: 2024-09-17