AFQ.utils.path#

Functions#

write_json(fname, data)

Write data to JSON file.

read_json(fname)

Read data from a JSON file.

drop_extension(path)

space_from_fname(dwi_fname)

apply_cmd_to_afq_derivs(derivs_dir, base_fname[, cmd, ...])

Module Contents#

AFQ.utils.path.write_json(fname, data)[source]#

Write data to JSON file.

Parameters:
fnamestr

Full path to the file to write.

datadict

A dict containing the data to write.

Returns:
None
AFQ.utils.path.read_json(fname)[source]#

Read data from a JSON file.

Parameters:
fnamestr

Full path to the data-containing file

Returns:
dict
AFQ.utils.path.drop_extension(path)[source]#
AFQ.utils.path.space_from_fname(dwi_fname)[source]#
AFQ.utils.path.apply_cmd_to_afq_derivs(derivs_dir, base_fname, cmd='rm', exception_file_names=None, suffix='', dependent_on=None, up_to=None)[source]#