| fuzzygene_context {FuzzyGene} | R Documentation |
fuzzygene_context(fuzzygene, context,
valueColumn = NULL,
minCoverage = 0,
align = NULL);
The context replaces the control baseline: both the wildtype and the mutant state are propagated from the given condition, so foldchange is read as "mutant vs wildtype inside this context" instead of "mutant vs the training mean".
The table (csv or tsv) must carry at least one gene column and one expression column. All non-numeric columns are treated as candidate gene keys and the one that matches the most model genes is used, so a gene_name,gene_id,mean_counts pseudobulk table works out of the box. Rows whose expression value is not a finite number are skipped (never silently turned into zero), and model genes that are absent from the table keep the training baseline.
Note that a fitted static map is usually contractive: after it converges, the state no longer depends on where the propagation started. The context therefore matters most for (i) the reference state used by fold changes, (ii) non-converged / transient responses and (iii) lagged (time series) models.
a multi line coverage summary, or an R# error object when the context is rejected