Script Overview
This page documents some important scripts that are installed with Datman, as well as how to use and configure them. All scripts discussed here can be found in Datman’s ‘bin’ folder.
dm_blacklist_rm
Description |
Delete any files that have been blacklisted.
Only removes data from the directories
configured by |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
|
Additional Software Dependencies |
None |
dm_sftp
Description |
Downloads scan zip files from an FTP Server. Note: The user running this script must have the sftp server in their ‘known_hosts’ file. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
None |
Additional Software Dependencies |
None |
dm_link
Description |
Apply the Datman naming convention to the raw zip files. Makes correctly-named symlinks in the ‘dicom’ folder that point to the original zip files in the ‘zips’ folder. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
|
Additional Software Dependencies |
None |
dm_xnat_upload
Description |
Uploads scan zip files from Datman’s ‘dicom’ directory to the configured XNAT server. |
Environment Variables |
|
Config Settings |
|
Additional Config Files |
None |
Additional Software Dependencies |
None |
dm_xnat_extract
Description |
Downloads scan data from the configured XNAT server and converts it to all configured file types. |
Environment Variables |
|
Config Settings |
|
Additional Config Files |
|
Additional Software Dependencies |
dm_qc_report
Description |
Generate QC metrics for the data in the study’s ‘nii’ folder. These will be put in the study’s ‘qc’ folder and can be displayed by the QC dashboard if it is installed. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
|
Additional Software Dependencies |
Newer versions may work, but no guarantees. |
dm_redcap_scan_completed
Description |
Retrieve redcap ‘scan completed’ survey data from a redcap server and push it to Datman’s QC dashboard database. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
None |
Additional Software Dependencies |
None |
xnat_fetch_sessions
Description |
Download XNAT sessions as raw scan zip files and deposit them in the study’s ‘zip’ folder. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
None |
Additional Software Dependencies |
None |
dm_task_files
Description |
Finds task files in the study’s ‘resources’ folder and symlinks them into the study’s ‘tasks’ folder with a standard name scheme. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
None |
Additional Software Dependencies |
None |
dm_parse_faces
Description |
Converts eprime text files for the FACES task into BIDS format .tsv files. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
None |
Additional Software Dependencies |
None |
dm_update_standards
Description |
Update the gold standards for a study. The scans chosen as gold standards should have correct header values that all new scans can be compared against. |
Environment Variables |
None |
Config Settings |
|
Additional Config Files |
None |
Additional Software Dependencies |
None |