GithubHelp home page GithubHelp logo

khanlab / diffparc-surf Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 112.46 MB

Snakebids app for diffparc-surf, including dwi processing

License: MIT License

Shell 6.17% Python 92.61% Jupyter Notebook 1.19% Dockerfile 0.03%

diffparc-surf's Introduction

diffparc-surf

Snakebids app for diffusion-based parcellation

diffparc-surf's People

Contributors

akhanf avatar dependabot[bot] avatar

Watchers

 avatar

diffparc-surf's Issues

Minimal eddy-current correction

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.

Test dataset

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..

README

Readme is currently empty, can adapt one from another snakebids app

Dicom import

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:

  • parse subject, session from the filename
  • extract files, convert to nifti
  • figure out what files are T1w and what are DWI, and ignore anything else
  • rest of the workflow identical

Generate tsv summary files

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]

CIFTI spec files

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.

Error in rule resample_dwi_to_t1w (job id 15)

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

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.