GithubHelp home page GithubHelp logo

fmri_task_validation's Introduction

fmri_task_validator

Code originaly provided by Pierre-Emmanuel Morin
Script used to validate de content of e-prime directories obtained during fMRI session (CIMA-Q). This code verifies that all files are properly identified (CIMA-Q naming convention) and that files required for further analysis are present.

Use

You should have one, unzipped, directory per participant containing the files created during one fMRI session for CIMA-Q
The directories are from /loris/media_uploads and are expected to be named according to the following rule:
   PSCID_VisitLabel_IRMF_task_suffix (example: 1234567_V01_IRMf_task)

The validate the content by running the scipt:
    python3 fmri_task_validator.py 1234567_V03_IRMf_task
or (to send results to a file)
    python3 fmri_task_validator.py 1234567_V01_IRMf_task >> validation.txt
    python3 fmri_task_validator.py 2345678_V01_IRMf_task >> validation.txt

Output example:
 9889496_V03_IRMf_task
   PRATIQUE-9889496-V03.edat2
   PRATIQUE-9889496-V03.txt
   Output_Retrieval_9889496_V03.txt
   Retrieval-9889496-V03.edat2
   Encoding-scan_NewPad-9889496-V03.txt
   Output-Responses-Encoding_9889496_847696_V03A.txt
   Onset-Event-Encoding_9889496_847696_V03A.txt
   Encoding-scan_NewPad-9889496-V03.edat2
   Retrieval-9889496-V03.txt
      All IDs are OK!
      Content is valid!

Ignored files

An array contains a list of files to ignore.
Current list includes:
   README.txt
   *.pdf (debrifing files are sometimes included)

Required files

The following files must be present:
   Onset-Event-Encoding*
   Output-Responses-Encoding*
   Output_Retrieval*

Future development

Add an alternate printing mode (single vs multiple)

fmri_task_validation's People

Contributors

pierreemorin avatar

Watchers

 avatar

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.