Git Product home page Git Product logo

dicer's People

Contributors

benfulcher avatar chaosuo avatar kevinaquino avatar

Stargazers

 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

Forkers

sidchop m31glx sipv

dicer's Issues

Add the DiCER parameters as an input

Unfortunately this has been hard coded, but making this a parameter into the shell script makes it easier to change for studies.

This requires a little re-write of carpetCleaner.py this might break things so this will happen after a clean up.

Work with an input of FD and DVARS instead of a confounds file

@Marianne-Oldehinkel Wrote a nice little bash script for it

#generate tsv file
nRow=$(cat $outdir/DVARS.txt | wc -l)
zerofile=$outdir/zeros.txt 
yes 0 | head -$nRow > $zerofile

echo "0
$(cat $outdir/FD.txt)" > $outdir/FD.txt
echo "FD
$(cat $outdir/FD.txt)" > $outdir/FD.txt
echo "DVARS
$(cat $outdir/DVARS.txt)" > $outdir/DVARS.txt
echo "col0
$(cat $zerofile)" > $zerofile

paste $zerofile $zerofile $zerofile $outdir/DVARS.txt $zerofile $zerofile $outdir/FD.txt > $outdir/confounds.tsv

Will implement it in the future!

Errors: files not found

I'm using DiCER, testing on a single subject that was preprocessed using fMRIPrep v20.2.6 (the latest version as of Nov 2021)

Because I'm using fMRIprep version > 1.1.1, I used DiCER_lightweight.sh instead of carpetCleaner.sh

Other dependencies I'm using are:
Python 3.9.7 (miniconda) with all required packages (scikit-learn, etc)
FSL v6.0.3
AFNI 21.2.04

My call to DiCER_lightweight.sh was as follows (with variables as shown), using a T1w in same space as the functional images (MNI152NLin2009cAsym, with both functional and anatomical images in 2x2x2 mm format).

variables

subjid='001'
basefolder='/home/Chyatt/onrc/data/fmriprep/domino3/derivatives/fmriprep/'
pathToFiles=${basefolder}'sub-'${subjid}'/ses-01'
func='func/sub-'${subjid}'_ses-01_task-domino3_run-1_space-MNI152NLin2009cAsym_res-2_desc-preproc_bold.nii.gz'
T1w='anat/sub-'${subjid}'_ses-01_space-MNI152NLin2009cAsym_res-2_desc-preproc_T1w.nii.gz'

call to DiCER

sh DiCER_lightweight.sh -i $func -a $T1w -w $pathToFiles -s ${subjid} -d

FAST and detrending/high pass filtering appeared to work fine.

The first error was:
ImportError: cannot import name 'izip' from 'itertools' (unknown location)
but this is due to using Python 3+. I don't think this is affecting the overall execution.

Additional errors are described in my attached my DiCER output.

Any suggestions would be helpful. Thank you!

dicer_errors (1).txt

Where can I see a description of DiCER outputs?

Hi, thanks for the toolbox!
I run carpetCleaner.sh since I did the preprocessing with fmriprep (1.2.6-1), I had to modify the names in the script though in order to match with the fmriprep outputs. I got some errors and warnings, but did not crashed.
Are these all the output I should get in the dbscan folder? which is the one that contents the functional data denoised with DiCER?
Thank you so much in advance
screenshot

IndexError: too many indices for array

Dear Kevin,

congratulations for the tool! I'm using it with my own pre-processed data (ICA-AROMA+2P), but DiCER_lightweight.sh returns me with the following error after performing correctly FAST:

./DiCER_lightweight.sh -i filtered_fmri.nii.gz -a structural.nii -w $subjects/BS_HC_01 -s BS_HC_01 -d

Unfolded 91x109x91x395 time-series matrix using Fortran ordering
Read in 902629x395 time series data
Unfolded 91x109x91x395 time-series matrix using Fortran ordering
Traceback (most recent call last):
File "carpetCleaning/clusterCorrect.py", line 376, in
X = fMRI_in_out.timeSeriesData(ts_file,mask_file,maskIndex=maskLabel)
File "/home/pnc/Desktop/Pipeline_imaging/scripts/DiCER/carpetCleaning/../utils/fMRI_in_out.py", line 55, in timeSeriesData
X = Xraw[M==maskIndex,:]
IndexError: too many indices for array

  • filtered_fmri: 4D preprocessed fMRI in MNI space
  • structural: raw T1w

Do you have any idea where is the problem?
Lorenzo

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.