decode_surf_data {VertexWiseR}R Documentation

Decode surface data

Description

Correlates the significant clusters of an earlier vertex-wise analysis with a database of task-based fMRI and voxel-based morphometric statistical maps and associate them with relevant key words

Usage

decode_surf_data(surf_data, contrast = "positive", VWR_check = TRUE)

Arguments

surf_data

a numeric vector with a length of 20484

contrast

A string object indicating whether to decode the positive or negative mask ('positive' or 'negative')

VWR_check

A boolean object specifying whether to check and validate system requirements. Default is TRUE.

Details

The 'NiMARE' python module is used for the imaging decoding and is imported via the reticulate package. The function also downloads the 'Neurosynth' database in the package's inst/extdata directory (~8 Mb) for the analysis.

Value

A data.frame object listing the keywords and their Pearson's R values

Examples

CTv = rbinom(20484, 1, 0.001) 
decoding = decode_surf_data(CTv, 'positive', VWR_check=FALSE);
head(decoding)

[Package VertexWiseR version 1.0.0 Index]