GithubHelp home page GithubHelp logo

bids_convert crashing about brkraw HOT 10 CLOSED

brkraw avatar brkraw commented on June 14, 2024
bids_convert crashing

from brkraw.

Comments (10)

egarza avatar egarza commented on June 14, 2024 1

Hi,

Yes that was the problem, should've noticed. Thank you, that was resolved.

BTW, regarding the JSON, I meant you only need changing 'Model20p_bids.json' file instead of all other files, but this option only allows one task per dataset.

Because the value in 'task' in the filename seems not sufficient to use as task value, I'm considering other options, such as combine with task_event file, which researcher required to upload for task-based fMRI, so be more flexible with multiple task design.

If you only have resting-state data at this point, please fill out the 'TaskName' field in Model20p_bids.json such as 'resting state'. It would create the JSON for all single files with the given value. I hope this works for you.

Yes this fixed the Task issue as well.
My suggestion would be to consider multiple tasks, that could be implemented from your XLSX file for easiness. Such as rest1, rest2, or rest, visual, etc.

Thanks again, we are loving this converter and our lab will use it for now.

from brkraw.

egarza avatar egarza commented on June 14, 2024

I ran everything again with the "default" SessID and it worked.

Can SessID be modified such as SubjectID?

Otherwise, it worked great.

Thank you

Eduardo

from brkraw.

egarza avatar egarza commented on June 14, 2024

In the JSON, "TaskName": "Value was not specified", however I did put rest as the task in the XLSX.

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 14, 2024

@egarza could you send me the xlsx file showing the issue?

from brkraw.

egarza avatar egarza commented on June 14, 2024

It's in my comment. It's a Google drive

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 14, 2024

@egarza The SessID is modifiable as SubjID. According to the error message you posted, it seems the pandas do not recognize the 'SessID' column. So wondering if the file you put a link on your commend is the file that causing the error or with the default session?

Thanks!

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 14, 2024

@egarza Regarding the JSON, The "Value was not specified" message will be added when it is assigned as null at the JSON file, and unfortunately, the JSON does not communicate with BIDS sheets, so you need to provide the value for the TaskName by editing the JSON file.

This means that if you have multiple tasks design, it requires manual updates for a single file.
I'm considering making an additional tool to handle that since it is really hard to implement on the conversion step without the user input, but if you have any suggestions (such as using task field value to implant JSON is enough) I could implement that.

from brkraw.

egarza avatar egarza commented on June 14, 2024

The file I uploaded was the one that DID NOT work. I can upload the file that DID work. I just left the SessIDalone, no changes on the column name. I'll upload the working file in a moment.

About the JSON, if the task field from the XLSX can be sent to the JSON that would help a lot, otherwise changing eaach individual JSON can become challenging.

Thanks

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 14, 2024

@egarza BTW, regarding the JSON, I meant you only need changing 'Model20p_bids.json' file instead of all other files, but this option only allows one task per dataset.

Because the value in 'task' in the filename seems not sufficient to use as task value, I'm considering other options, such as combine with task_event file, which researcher required to upload for task-based fMRI, so be more flexible with multiple task design.

If you only have resting-state data at this point, please fill out the 'TaskName' field in Model20p_bids.json such as 'resting state'. It would create the JSON for all single files with the given value. I hope this works for you.

from brkraw.

dvm-shlee avatar dvm-shlee commented on June 14, 2024

@egarza Regarding the BIDS sheet, the error caused because the BIDS sheet is not the first datasheet in excel. My code only takes the sheet located at first tap, so when it processed it takes an empty sheet. (It not related to the name of the sheet. To prevent a future issue with this, I will make an update to take a sheet only with a particular name (such as BIDS), so adding an additional sheet could not affect conversion.

Please check the below image.
image

If you change the above as below, it will work again.
image

I hope this can resolve your problem. And thank you for reporting this issue

from brkraw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.