From 8eb310de1ec189fe3ef504109dd178ef4c7649c0 Mon Sep 17 00:00:00 2001 From: Ali Khan Date: Wed, 1 Jun 2022 11:30:36 -0400 Subject: [PATCH] change '-' to '.' for bids dir if custom filepaths bids_dir needs to be a folder with snakebids 0.6.0, so changing this in the tests and docs for now (could revert this back if snakebids is updated to accept '-' as a bids dir) --- .github/workflows/python-testing.yml | 4 ++-- docs/tutorials/specializedScans.md | 4 ++-- docs/tutorials/standardBIDS.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-testing.yml b/.github/workflows/python-testing.yml index 18c1f926..e1fc59fa 100644 --- a/.github/workflows/python-testing.yml +++ b/.github/workflows/python-testing.yml @@ -148,10 +148,10 @@ jobs: poetry run hippunfold test_data/bids_segT2w test_out participant -np --modality segT2w - name: Test cropseg bids, with path override run: | - poetry run hippunfold - test_out participant -np --modality cropseg --path_cropseg test_data/data_cropseg/sub-{subject}_hemi-{hemi}_dseg.nii.gz + poetry run hippunfold . test_out participant -np --modality cropseg --path_cropseg test_data/data_cropseg/sub-{subject}_hemi-{hemi}_dseg.nii.gz - name: Test cropseg bids, with path override, left hemi run: | - poetry run hippunfold - test_out participant -np --modality cropseg --path_cropseg test_data/data_cropseg_1hemi/sub-{subject}_hemi-{hemi}_dseg.nii.gz --hemi L + poetry run hippunfold . test_out participant -np --modality cropseg --path_cropseg test_data/data_cropseg_1hemi/sub-{subject}_hemi-{hemi}_dseg.nii.gz --hemi L - name: Test T2w with T1w template registration run: | poetry run hippunfold test_data/bids_singleT2w test_out participant -np --modality T2w --t1_reg_template diff --git a/docs/tutorials/specializedScans.md b/docs/tutorials/specializedScans.md index 3a1f2ad7..7901a8d4 100644 --- a/docs/tutorials/specializedScans.md +++ b/docs/tutorials/specializedScans.md @@ -41,7 +41,7 @@ Here is an example of what the input directory might look like: This can be unfolded with the command: - hippunfold - PATH_TO_OUTPUT_DIR participant --modality cropseg \ + hippunfold . PATH_TO_OUTPUT_DIR participant --modality cropseg \ --path_cropseg exvivo/sub-{subject}/sub-{subject}_hemi-{hemi}_desc-hippo_dseg.nii.gz \ --hemi R --skip_inject_template_labels @@ -87,7 +87,7 @@ hippocampus. Once done, we may have a directory like this: Note that only the last file is needed for unfolding: - hippunfold - PATH_TO_OUTPUT_DIR participant --output_spaces corobl --hemi R --no_reg_template \ + hippunfold . PATH_TO_OUTPUT_DIR participant --output_spaces corobl --hemi R --no_reg_template \ --path_T2w PATH_TO_EXVIVO_DIR/sub-001/sub-001_hemi-R_desc-exvivo_space-CITI168_T2w.nii.gz \ --output_spaces corobl diff --git a/docs/tutorials/standardBIDS.md b/docs/tutorials/standardBIDS.md index f307b104..d8295bb5 100644 --- a/docs/tutorials/standardBIDS.md +++ b/docs/tutorials/standardBIDS.md @@ -79,7 +79,7 @@ HippUnfold will not recognize them without the suffix `_T2w`. We can thus use the `--path_T2w` flag to specify exactly which of these file(s) to use as inputs: - hippunfold - PATH_TO_OUTPUT_DIR participant \ + hippunfold . PATH_TO_OUTPUT_DIR participant \ --path_T1w PATH_TO_nonBIDS_DIR/sub-001_T1w.nii.gz \ --path_T2w PATH_TO_nonBIDS_DIR/sub-{subject}_T2SPACE.nii.gz