Extracting links of XCP-d minimal inputs and FreeSurfer surface data from data manifests

extract_linksXCP(
  manifest = "datastructure_manifest.txt",
  task,
  surf,
  filename = "downloadlist.txt",
  subjects
)

Arguments

manifest

the filepath of the manifest file. Set to datastructure_manifest.txt by default.

task

name (case-sensitive) of the task, without numbers or directional labels. E.g., REST

surf

name (case-sensitive) of the FreeSurfer surface data. E.g., thickness

filename

The desired filename, with a *.txt extension, of the text file containing the links. Set to download_list.txt by default

subjects

If specified the only download links from these subjects will be included

Value

outputs a .txt file containing the links filtered from the data manifest file

Details

This function extracts links of XCP-d minimal inputs files and FreeSurfer surface data from NDA formatted data manifest files

Examples

if (FALSE) { # \dontrun{
extract_linksXCP(manifest = "datastructure_manifest.txt", task="REST",freesurfer = "thickness",subjects = c("0891566","0571649"))
} # }