package
0.0.0-20220611144015-40008dcd7b35
Repository: https://github.com/knightjdr/cmgo.git
Documentation: pkg.go.dev

# README

Module name: nmf-subset

Subset an NMF basis (prey) matrix to only include preys enriched in specified compartments.

parametersdefinitiondefault
abundanceCapthe value to cap cell color on the heat map1
basisMatrixNMF basis matrix
clusteringMethodthe hierarchical clustering methodcomplete
distanceMetricthe distance metriceuclidean
minAbundancethe minimum abundance for limiting the color on the heat map0
minNMFScorethe minimum score required in any of the specified ranks to include a row0
outFileoutput file namebasis-subset.svg
ranks1ranks defining first NMF compartment
ranks2ranks defining second NMF compartment
specificitythe fold-change the ranks of interest must have relative to remaining ranks to be included2
thresholdfractional threshold (relative to max) to consider a prey enriched in a compartment0.5

Example file formats

basisMatrix

variable,1,2,3
AAAS,0.0,0.18373784550412228,0.0
AAK1,0.13963834317658874,0.0,0.0
AAR2,0.0,0.016517285371126216,0.034697999230769466
AARS2,0.0,0.0,0.001598769548285137

Output

  • heat map as svg
  • legend for fold enrichment