Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
GarzaLab
/
script_examples
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
script_examples
/
dcm2nii_fm_dti.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
30 lines (17 loc) · 1.21 KB
master
Breadcrumbs
script_examples
/
dcm2nii_fm_dti.sh
Copy path
Top
File metadata and controls
Code
Blame
30 lines (17 loc) · 1.21 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!
/bin/bash
#
####################################
#
Conversion of DICOM to NIFTI script for the FM_DTI
#
####################################
dcmdir=/media/INP_MRI_Backup/projects/INP/conectome_inp/data/dicom
niidir=/media/INP_MRI_Backup/projects/INP/conectome_inp/data/nifti
#
for subject in AD_019 AD_020 HC_021 HC_022 AD_023 AD_024 AD_025 AD_026 AD_027 HC_028 HC_029 AD_030 HC_031 HC_032 HC_033 AD_034 HC_036 HC_037 HC_038 HC_039 AD_040 HC_041 HC_042 AD_043 AD_045 AD_046 AD_047;
for
subject
in
AD_069 AD_070 AD_071 AD_072 AD_073 AD_074 AD_076 AD_080 AD_081 AD_083 AD_091 AD_092 AD_103 HC_075 HC_077 HC_078 HC_082 HC_084 HC_085 HC_086 HC_087 HC_088 HC_093 HC_094 HC_095 HC_097 HC_098 HC_099 HC_100 HC_101 HC_102
;
do
echo
"
**************Converting Subject
${subject}
*****************
"
dcm2nii -n y -g y -o
${niidir}
/fm_dti
${dcmdir}
/
${subject
#
???}
/fm_dti/IMG
*
mv
${niidir}
/fm_dti/FMDTI1362SHELLSPASENSE.nii.gz
${niidir}
/fm_dti/
${subject}
_fm_dti.nii.gz
echo
${subject}
_fm_dti.nii.gz
mv
${niidir}
/fm_dti/FMDTI1362SHELLSPASENSE.bval
${niidir}
/fm_dti/
${subject}
_fm_dti.bval
mv
${niidir}
/fm_dti/FMDTI1362SHELLSPASENSE.bvec
${niidir}
/fm_dti/
${subject}
_fm_dti.bvec
echo
"
***************Subject
${subject}
DONE ****************
"
done
You can’t perform that action at this time.