Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

8.12.11. nilearn.glm.expression_to_contrast_vector

nilearn.glm.expression_to_contrast_vector(expression, design_columns)

Converts a string describing a contrast to a contrast vector

Parameters:

expression: string,

the expression to convert to a vector

design_columns: list or array of strings,

the column names of the design matrix