Skip to content

Nilearn masker.fit_transform input limitations #6

@stephaniealley

Description

@stephaniealley

@illdopejake, I have a question regarding the Nilearn masker.fit_transform() function. From what I can see in the documentation, this function accepts NiftiImage objects or filenames as input. If I run my analysis (based on the ML tutorial) using the .tsv confound files provided with the data, for example, everything is fine. If I want to use a different collection of confounds, however, I have to load the .tsv file with pandas, alter the dataframe, and then write the dataframe back to file so that it can be loaded as input to masker.fit_transform. Do you know if there is a better way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions