fmriu.io.open_graphs: Open Graphs

Description Usage Arguments Value

Description

A utility to open graph information from a dataset.Assumes data is formatted by the BIDs spec. This means that derivatives are named as follows: sub-[#####]_task-[abcde]_ses-[#####]_(generic info).file

Usage

1
2
fmriu.io.open_graphs(fnames, dataset_id = "", atlas_id = "",
  fmt = "graphml", verbose = FALSE, rtype = "list", flatten = FALSE)

Arguments

fnames

[n] a vector of filenames, with separation by underscores IE, dataset_subject_run_(other information).ext. Alternatively, a path to a directory containing a collection of appropriately named files with extension as specified below.

dataset_id=""

[1] the dataset id in the filenames.

atlas_id=""

[1] the atlas id in the filenames.

fmt="graphml"

a parameter indicating the format for graphs to be read in as. Options are ['graphml', 'edgelist'].

verbose=FALSE

whether to print the iteration being loaded.

rtype='list'

the type of output to return. Options are 'list' and 'array'.

flatten=FALSE

a parameter to flatten the array if the rtype is set to 'array'.

TRUE

If rtype == 'array', then returns an [n x r^2] array

FALSE

If rtype == 'array', then returns an [n x r x r] array

Value

gr the graphs of the subjects. Size depends on the parameters specified.

dataset [n] a vector of the dataset ids for each subject.

subjects [n] the subject ids

sessions [n] the run ids

tasks [n] the task ids

runs [n] the run ids


neurodata/fmriutils documentation built on May 14, 2019, 2:30 p.m.