EnrichmentAnalysis: WriteMatrixToCifti - Output an R array matrix into an...

Description Usage Arguments Examples

View source: R/EnrichmentAnalysis.R

Description

This function will write an R data matrix as a CIFTI pconn file, properly indexed. Unfortunately, this function requires a compiled matlab package, SurfConnectivity. Contact Eric Feczko to get the package.

Usage

1
2
3
4
5
6
7
8
9
EnrichmentAnalysis(
  metric_data,
  ncols,
  modules,
  matlab_path,
  enrichment_path,
  output_file,
  tempname
)

Arguments

metric_data

A binarized matrix

ncols

The number of columns in the matrix – used to write the array to a text file

modules

A numeric vector representing the modules for the binarized modules

matlab_path

A character string representing the path to the matlab compiler

enrichment_path

A character string representing the path to the compiled enrichment folder

output_file

A character string representing the path to the output chisquared file

tempname

A character string representing the path and prefix for temporary files, critical for parallel processing

Examples

1
WriteMatrixToCifti(metric_data,ncols,surf_template_file,matlab_path,enrichment_path,output_file,tempname)

DCAN-Labs/MarginalModelCIFTI documentation built on Nov. 30, 2021, 3:40 p.m.