Skip to contents

Create a merged AFQ/phenotype dataframe

Usage

read_afq_files(
  nodes_csv,
  pheno_csv = NULL,
  index = "subjectID",
  index_nodes = index,
  index_pheno = index,
  dwi_metrics = NULL,
  factor_cols = NULL,
  pheno_cols = NULL,
  ...
)

Arguments

nodes_csv

path to a nodes file

pheno_csv

path to a phenotypic file, leave NULL to return an "unsupervised" AFQ dataset

index

specification of the column used for merging

index_nodes

specification of the column used for merging

index_pheno

specification of the column used for merging

dwi_metrics

which diffusion metrics should be retained

factor_cols

which columns should be treated as factors

pheno_cols

which columns to include from pheno file

...

arguments to be passed to read.csv

Examples

if (FALSE) { # \dontrun{
  df_afq <- read_afq_files(nodes_csv = "a/path/to/nodes.csv",
                           pheno_csv = "a/path/to/pheno.csv")
} # }