pub struct StatsModelsNode {
pub level: String,
pub name: String,
pub model: Value,
pub group_by: Vec<String>,
pub transformations: Option<TransformSpec>,
pub contrasts: Vec<Value>,
pub dummy_contrasts: Option<Value>,
pub children: Vec<StatsModelsEdge>,
pub parents: Vec<StatsModelsEdge>,
/* private fields */
}Expand description
A single analysis node in a BIDS-StatsModel graph.
Each node operates at a specific level (run, session, subject, dataset) and defines:
- A statistical model specification (GLM or meta-analysis)
- Variable transformations to apply before modeling
- Explicit contrasts and/or dummy contrasts
- Grouping criteria for splitting data into independent analyses
Corresponds to a single entry in the "Nodes" array of a BIDS-StatsModels
JSON specification.
Fields§
§level: String§name: String§model: Value§group_by: Vec<String>§transformations: Option<TransformSpec>§contrasts: Vec<Value>§dummy_contrasts: Option<Value>§children: Vec<StatsModelsEdge>§parents: Vec<StatsModelsEdge>Implementations§
Source§impl StatsModelsNode
impl StatsModelsNode
pub fn new( level: &str, name: &str, model: Value, group_by: Vec<String>, transformations: Option<TransformSpec>, contrasts: Vec<Value>, dummy_contrasts: Option<Value>, ) -> Self
pub fn add_child(&mut self, edge: StatsModelsEdge)
pub fn add_parent(&mut self, edge: StatsModelsEdge)
pub fn add_collections(&mut self, collections: Vec<VariableCollection>)
pub fn get_collections(&self) -> &[VariableCollection]
Sourcepub fn run(
&self,
inputs: &[ContrastInfo],
_force_dense: bool,
_sampling_rate: &str,
) -> Vec<StatsModelsNodeOutput>
pub fn run( &self, inputs: &[ContrastInfo], _force_dense: bool, _sampling_rate: &str, ) -> Vec<StatsModelsNodeOutput>
Run this node, producing outputs.
Trait Implementations§
Source§impl Clone for StatsModelsNode
impl Clone for StatsModelsNode
Source§fn clone(&self) -> StatsModelsNode
fn clone(&self) -> StatsModelsNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StatsModelsNode
impl RefUnwindSafe for StatsModelsNode
impl Send for StatsModelsNode
impl Sync for StatsModelsNode
impl Unpin for StatsModelsNode
impl UnsafeUnpin for StatsModelsNode
impl UnwindSafe for StatsModelsNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more