Snakebids app for diffusion-based parcellation
khanlab / diffparc-surf Goto Github PK
View Code? Open in Web Editor NEWSnakebids app for diffparc-surf, including dwi processing
License: MIT License
Snakebids app for diffparc-surf, including dwi processing
License: MIT License
With FSL Eddy disabled, there is only the rudimentary motion-correction applied. Will need to improve this if working with e.g. high b-value datasets, or just to improve distortions.
Should be using tournier
instead. Can make this a config.yml setting.
Only a dry-run test dataset is currently in the repo -- can provide an openneuro dataset with T1w and dwi to use as a real test dataset, maybe shared via dropbox..
If topup is disabled, the workflow doesn't have any way to correct EPI-based distortions.
Should have some non-FSL alternative for this.
Readme is currently empty, can adapt one from another snakebids app
Currently the app requires nifti or bids data.
For dicoms, one option could be to supply a formatted dicom zip, e.g.:
{subject}_{session}.zip
(the upstream app could create the dicom zip from uploaded files and metadata)
Given this, then this workflow would need to:
Produce a tsv file per subject/session, with summary metrics (surface displacement, surface area, connectivity) for each parcel and hemisphere.
If "tidy" format, columns can be:
subject, session, hemi, parcel, measure_type, aggregation_type
measure_type=[surfdisp,surfarea,conn,...]
aggregation_type=[mean,max,min,stdev ...]
parcel=[limbic,exec,caudal_motor,...]
hemi=[L,R]
Was a problem in the original diffparc too. One option is to use a CNN to segment the brain, e.g. as is now implemented in #3. Downside to that approach is we are stuck with the trained labelling.
To ease visualization in connectome-workbench, can create a .spec
file for each subject that includes the .surf.gii
files, and the cifti dscalar
and dlabel
files.
shell:
antsApplyTransforms -d 3 --input-image-type 3 --input sub-3179/ses-Baseline/dwi/sub-3179_ses-Baseline_desc-preproc_dwi.nii.gz --reference-image sub-3179/ses-Baseline/dwi/sub-3179_ses-Baseline_space-T1w_res-orig_desc-dwiref_proc-crop_avgb0.nii.gz --transform sub-3179/ses-Baseline/dwi/sub-3179_ses-Baseline_from-dwi_to-T1w_type-itk_xfm.txt --interpolation Linear --output sub-3179/ses-Baseline/dwi/sub-3179_ses-Baseline_space-T1w_res-orig_desc-preproc_dwi.nii.gz --verbose
output:
...
Applying transform(s) to timePoint/channel/dimension5 129 (out of 130).
Output warped image: sub-3179/ses-Baseline/dwi/sub-3179_ses-Baseline_space-T1w_res-orig_desc-preproc_dwi.nii.gz
Killed
Using pre-compiled binaries from https://github.com/ANTsX/ANTs/releases/tag/v2.4.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.