Code Monkey home page Code Monkey logo

convert-eprime's Introduction

Hi there, I'm Taylor ๐Ÿ‘‹

I'm a postdoctoral researcher at the University of Pennsylvania working with Dr. Ted Satterthwaite. I'm primarily interested in neuroinformatics (tool-building for cognitive neuroscience), reproducible neuroimaging research, and fMRI denoising.

I am currently a maintainer for XCP-D, a BIDS app that denoises minimally-preprocessed fMRI data coming out of workflows like fMRIPrep and Nibabies, and ASLPrep, a BIDS App for preprocessing arterial spin labeling data.

I am a member of the maintainer teams for NiMARE, tedana, nilearn, and the Brain Imaging Data Structure (BIDS). I also contribute to a number of neuroimaging-related Python tools, like fMRIPrep, the physiopy suite, and heudiconv.

I try to answer questions on NeuroStars when I have the time, as well.

ORCID Google Scholar Personal Site Metadata

๐Ÿ”ญ I'm currently working on preparing xcp_d for its first major release and converting BIDS to a machine-parseable schema.

๐ŸŒฑ I'm currently learning about arterial spin labeling (ASL) in preparation to start maintaining ASLPrep.

๐Ÿ‘ฏ Iโ€™m looking to collaborate on advanced denoising tools for fMRI data leveraging multi-echo fMRI, complex-valued fMRI, or simultaneous physio acquisitions. If you're working on this kind of thing, let me know!

๐Ÿ’ฌ Ask me about using xcp_d, NiMARE, tedana, or BIDS.

๐Ÿ“ซ How to reach me: Message me on the BrainHack Mattermost or email me.

๐Ÿ˜„ Pronouns: he/him

Taylor's GitHub stats

convert-eprime's People

Contributors

cgc avatar tsalo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

convert-eprime's Issues

How to cite `convert-eprime`

Hi @tsalo

I used convert-eprime for a study that i'm now writing up. I would like to cite it, but I'm unsure what you'd prefer. Do you want to create a citable DOI, or should I just refer to this repo?

Thanks!

Use pandas.

First pass done with text_to_csv and etext_to_rcsv. Need to do text_to_rcsv next and then check over all results.

Parse error in convert_eprime.py

Hi!

Wanted to let you know of a corner case in your parsing script. Here's the pdb output:

/convert_eprime.py(23)()
-> """
(Pdb) c
Traceback (most recent call last):
File "/usr/lib64/python2.6/pdb.py", line 1296, in main
pdb._runscript(mainpyfile)
File "/usr/lib64/python2.6/pdb.py", line 1215, in _runscript
self.run(statement)
File "/usr/lib64/python2.6/bdb.py", line 372, in run
exec cmd in globals, locals
File "", line 1, in
File "convert_eprime.py", line 395, in
function(*sys.argv[2:])
File "convert_eprime.py", line 122, in text_to_csv
split_header_idx = one_row[j_col].index(": ")
ValueError: substring not found
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
/convert_eprime.py(122)text_to_csv()
-> split_header_idx = one_row[j_col].index(": ")
(Pdb) l
117
118 for i_row in range(n_rows):
119 one_row = filtered_data[start_index[i_row]+1:end_index[i_row]]
120 data_by_rows.append(one_row)
121 for j_col in range(len(one_row)):
122 -> split_header_idx = one_row[j_col].index(": ")
123 all_headers.append(one_row[j_col][:split_header_idx])
124
125 unique_headers = list(set(all_headers))
126
127 # Preallocate list of lists composed of NULLs.
(Pdb) one_row
'Experiment: REDACTED', 'SessionDate: xx-xx-xxxx', 'SessionTime: xx:xx:xx', 'RandomSeed: 2079008169', 'Group: 1', 'Subject:123', 'Session: 1', 'runnumber: run5', 'triggersetup: scan start', 'buttonboxline: SRBox line 5', 'Display.RefreshRate: 61.779', 'trigger: 5', 'scanstart1.OnsetDelay: 3', 'scanstart1.OnsetTime: 9638', 'scanstart1.DurationError: -999999', 'scanstart1.RTTime: 56811', 'scanstart1.RT: 47173', 'scanstart1.RESP: 5', 'scanstart2.OnsetDelay: 4', 'scanstart2.OnsetTime: 56820', 'scanstart2.DurationError: -4', 'scanstart3.OnsetDelay: 0', 'scanstart3.OnsetTime: 58816', 'scanstart3.DurationError: 0', 'scanstart4.OnsetDelay: 0', 'scanstart4.OnsetTime: 60816', 'scanstart4.DurationError: 0', 'Goodbye.OnsetDelay: 0', 'Goodbye.OnsetTime: 416816', 'Goodbye.DurationError: 0', 'sscanstart1.OnsetDelay: 0', 'sscanstart1.OnsetTime: 0', 'sscanstart1.DurationError: 0', 'sscanstart1.RTTime: 0', 'sscanstart1.RT: 0', 'sscanstart1.RESP: ', 'sscanstart4.OnsetDelay: 0', 'sscanstart4.OnsetTime: 0', 'sscanstart4.DurationError: 0', 'sscanstart4.RTTime: 0', 'sscanstart4.RT: 0', 'sscanstart4.RESP: ', 'eprimestart1.OnsetDelay: 0', 'eprimestart1.OnsetTime: 0', 'eprimestart1.DurationError: 0', 'eprimestart1.RTTime: 0', 'eprimestart1.RT: 0', 'eprimestart1.RESP: ', 'eprimestart2.OnsetDelay: 0', 'eprimestart2.OnsetTime: 0', 'eprimestart2.DurationError: 0', 'eprimestart3.OnsetDelay: 0', 'eprimestart3.OnsetTime: 0', 'eprimestart3.DurationError: 0', 'eprimestart4.OnsetDelay: 0', 'eprimestart4.OnsetTime: 0', 'eprimestart4.DurationError: 0'

I don't python so I'm not quite sure what it's chocking on, but if I had to guess it would be those "RESP: " headers with no associated value. Note that this was from a successful run and not an aborted one.

problem getting the code working

Hi, many thanks for making this code available.
I have run the setup.py to install and am now trying to convert .edat file to text by running the following command:
python ~/convert-eprime-main/convert-eprime/convert.py text_to_csv sub1_run1.edat

i dont get any errors, but it doesnt print any outputs or create any output files either.....
any ideas what i'm doing wrong would be appreciated
thanks
Steve

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.