Learn R Programming

neurohcp (version 0.6)

hcp_list_files: List files from HCP bucket

Description

Lists a set of files from an HCP bucket for a specific sub-folder

Usage

hcp_list_files(prefix = "", delimiter = NULL, query = NULL, ...)

hcp_list_dirs(prefix = "HCP/", ...)

Arguments

prefix
directory folder to list files. If "", then it will be the root path
delimiter
Delimiter to list files. For example ".mat", for ".mat"
query
Additional query arguments
...
additional arguments passed to get_hcp_file

Value

List with the result of the GET command, the parsed result, and the content from the result.

Examples

Run this code
if (have_aws_key()){
x = hcp_list_files(prefix = "HCP/100307/unprocessed/3T/Diffusion",
   delimiter="bval")
t1_niis = hcp_list_files(prefix ="HCP/100307/T1w",
delimiter = ".nii.gz")
all_dirs = hcp_list_dirs("HCP/")
}

if (have_aws_key()){
 all_dirs = hcp_list_dirs("HCP/")
 cr =parse_list_files(all_dirs)$prefixes
}

Run the code above in your browser using DataLab