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.

nilearn.glm.expression_to_contrast_vector#

nilearn.glm.expression_to_contrast_vector(expression, design_columns)[source]#

Converts a string describing a contrast to a contrast vector

Parameters:
expressionstring

The expression to convert to a vector.

design_columnslist or array of strings

The column names of the design matrix.

Notes

This function is experimental. It may change in any future release of Nilearn.