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

Fails conversion with tonii_all #140

Open
mschneider1711 opened this issue Sep 29, 2023 · 8 comments
Open

Fails conversion with tonii_all #140

mschneider1711 opened this issue Sep 29, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@mschneider1711
Copy link

mschneider1711 commented Sep 29, 2023

Describe the bug
A clear and concise description of what the bug is.
When I want to convert multiple datasets with tonii_all at the same time I get a bug that the input folder is not valid.
image
When I comment out the section where it checks if the parent folder is a pv_dataset it works and all my files are converted into nifti.
My folder structur is:
image

Expected behavior
In my case the BidsData folder should not be recognized as a pv_dataset and therefore the script should not stop at this point.

Desktop (please complete the following information):

  • Windows 11
  • Version v.0.3.10

@Aswendt-Lab
@arefks
@maswendt

@gdevenyi
Copy link
Collaborator

gdevenyi commented Oct 2, 2023

Please share the complete command you are using.

@mschneider1711
Copy link
Author

That's the command I'm using:

image

@gdevenyi
Copy link
Collaborator

gdevenyi commented Oct 3, 2023

And what are the contents of one of the subfolders of BidsData?

@mschneider1711
Copy link
Author

It is the raw dataset.

image

@gdevenyi
Copy link
Collaborator

gdevenyi commented Oct 3, 2023

Ok, the error is as expected. The tonii_all command is intended to be run on a single dataset, whereas you are running it on multiple datasets.

The error could be better in terms of what it says, since it wrongly indicates you're running on a single scan.

I think the solution here is an optional flag to tonii_all --recursive which will recurse down directories.

@mschneider1711
Copy link
Author

Unfortunately I get the same error when using it on a single dataset:

image

@dvm-shlee
Copy link
Member

@mschneider1711, apologies for the delayed response. Have you managed to resolve the issue? If not, could you please share the contents of the /Data folder located under /BidsData?

It seems there might be a misunderstanding causing the brkraw tonii_all command to treat BidsData as a single raw data set, whereas your initial method should have worked as expected. I am actively working on addressing issues within the BrkRaw package and expect to have enhancements ready by mid-May. If you're still encountering problems, I can assist you in testing with the new module, which should present fewer issues than the current version. Please consider that the complete code will be ready by May 15th.

@dvm-shlee dvm-shlee added this to the v0.4.0 release milestone May 15, 2024
@dvm-shlee dvm-shlee moved this to In Progress in BrkRaw v0.4 May 15, 2024
@dvm-shlee dvm-shlee self-assigned this May 15, 2024
@dvm-shlee dvm-shlee added the bug Something isn't working label May 15, 2024
@MrImaging
Copy link

I experienced this issue as well and could resolve it/work around it by zipping the raw data sets/folders, which then allowed me to apply tonii_all to multiple subjects and sessions simultaneuosly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

4 participants