Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DATALAD RUNCMD] Move all files from lower cased sub dir into upper case #1

Closed
wants to merge 1 commit into from

Conversation

yarikoptic
Copy link

might be wrong thing to do and files must not be replaced since shows some changes to annexed and json files from what was in original capitalized named subject. Someone needs to check it all out

=== Do not change lines below ===
{
"chain": [],
"cmd": "bash -c 'mkdir -p ../sub-NDARVN280JTN/ses-HBNsiteCBIC/dwi; find . -type l -o -type f | while read f; do mv "$f" "../sub-NDARVN280JTN/${{f//sub-ndarvn280jtn/sub-NDARVN280JTN}}"; done'",
"dsid": "b32508c1-d2c1-4b40-a3e3-48df49e7fa56",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "sub-ndarvn280jtn"
}
^^^ Do not change lines above ^^^

might be wrong thing to do and files must not be replaced!

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "bash -c 'mkdir -p ../sub-NDARVN280JTN/ses-HBNsiteCBIC/dwi; find . -type l -o -type f | while read f; do mv \"$f\" \"../sub-NDARVN280JTN/${{f//sub-ndarvn280jtn/sub-NDARVN280JTN}}\"; done'",
 "dsid": "b32508c1-d2c1-4b40-a3e3-48df49e7fa56",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "sub-ndarvn280jtn"
}
^^^ Do not change lines above ^^^
@mattcieslak
Copy link

@scovitz do we have a subject with a lower case directory? If so, how did this pass the validator?

@yarikoptic
Copy link
Author

@scovitz do we have a subject with a lower case directory? If so, how did this pass the validator?

I think neither BIDS nor bids-validator cares ATM. Filed bids-standard/bids-specification#857

@scovitz
Copy link
Contributor

scovitz commented Aug 20, 2021

@yarikoptic great catch thanks so much for catching this! @mattcieslak it looks like both the uppercase and lowercase versions of that directory exist, so we're going to need to deal with that.

@scovitz
Copy link
Contributor

scovitz commented Aug 24, 2021

@yarikoptic Thanks so much again for alerting us to this issue! There should only be one subject directory (uppercase) for sub-NDARVN280JTN now. The upper and lowercase versions of the same string did map to the same subject; however, the originally uppercase directory was missing data, so @mattcieslak and I ended up removing it and renaming the originally lowercase subject to uppercase. We were able to push the changes to GitHub, as seen in the latest commit on this repo.

Thanks again!

@yarikoptic
Copy link
Author

Note, as https://github.com/PennLINC/HBN_BIDS/pull/1/files shows, T1w image was somehow different in content between lower and upper case. Any idea why?

@mattcieslak
Copy link

I took a look into this and the answer is funny. The image data is identical between the uppercase and lowercase files. The difference comes from the command history added by afni to the nifti header. One has commands with the lowercase filename as input and the other has uppercase. Afni's refacer was run on each image.

@yarikoptic
Copy link
Author

ah, I thought this dataset is just pointing to "original" HBN dataset files in fcp-indi, but apparently it has its own "life". gotcha

@yarikoptic yarikoptic closed this Aug 25, 2021
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.

3 participants