Skip to content

feat: export raw mrs files#173

Merged
elizabethlorenc merged 1 commit into
mainfrom
feat-export-raw-mrs-files
Mar 23, 2026
Merged

feat: export raw mrs files#173
elizabethlorenc merged 1 commit into
mainfrom
feat-export-raw-mrs-files

Conversation

@elizabethlorenc

@elizabethlorenc elizabethlorenc commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

If raw MRS files have been uploaded to XNAT (within MRS resource folders attached to their matching DICOM(s)), download them along with the DICOMs. Then, zip them into a tarfile in the bids/sourcedata directory, matching the DICOM naming.
Screenshot 2026-03-16 at 10 24 27 AM

Also refactored the resource download code to avoid duplication; new list_xnat_resources function separates the XNAT resource listing code from the assign_bids_name function so that it can be called for both DICOM and rawMRS resources.

If raw MRS files have been uploaded to XNAT (within MRS resource folders attached to their matching DICOM(s)), download them along with the DICOMs. Then, zip them into a tarfile in the bids/sourcedata directory, matching the DICOM naming.

Also refactored the resource download code to avoid duplication; new list_xnat_resources function separates the XNAT resource listing code from the assign_bids_name function so that it can be called for both DICOM and rawMRS resources.
@elizabethlorenc
elizabethlorenc merged commit 506f557 into main Mar 23, 2026
5 checks passed
@elizabethlorenc
elizabethlorenc deleted the feat-export-raw-mrs-files branch March 23, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants