-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from jhlegarreta/RemoveVersionOptionalArgInSc…
…ripts ENH: Remove unnecessary/uninformative version optional arg in scripts
- Loading branch information
Showing
19 changed files
with
0 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Harden transform with Slicer.", | ||
epilog="Written by Fan Zhang, [email protected]") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'polydata', | ||
help='') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,6 @@ def _build_arg_parser(): | |
description="Assess if a fiber within the clusters belongs to left hemispheric, right hemispheric, or commissural tracts. " | ||
"This code needs to be run in the ATLAS space, where the brain is clustered at the RAS origin. ", | ||
epilog="Written by Fan Zhang ([email protected]) and Lauren O\'Donnell ([email protected]). Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='A directory of clustered whole-brain tractography as vtkPolyData (.vtk or .vtp).') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,6 @@ def main(): | |
parser = argparse.ArgumentParser( | ||
description="Runs clustering of tractography for multiple subjects to create an atlas. This tract atlas can then be applied to the complete set of fibers from individual subjects of interest. To make it possible to cluster the high number of fibers, this code uses random sampling and the Nystrom method as described in the reference below.", | ||
epilog="Written by Lauren O\'Donnell, [email protected]. Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='A directory of (already registered) whole-brain tractography as vtkPolyData (.vtk or .vtp).') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Clusters tractography (propagates clusters) from a cluster atlas (a multi-subject/multi-atlas cluster representation).", | ||
epilog="Written by Lauren O\'Donnell, [email protected]. Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputFile', | ||
help='A file of whole-brain tractography as vtkPolyData (.vtk or .vtp).') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Removes outliers in a subject dataset that was clustered from a cluster atlas. This script uses the atlas to identifies and remove outliers in each cluster of the subject. The atlas must be the same one used to cluster the subject dataset", | ||
epilog="Written by Lauren O\'Donnell, [email protected]. Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='A directory containing subject clusters (.vtp). Please note that file separator should not be provided at the end of the input so that the program can automatically recognize subject ID from the input folder name.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Compute diffusion scalar measurements (such as FA, MD, etc). This script reports the mean statistics of each fiber cluster (or fiber tract) within the input folder.", | ||
epilog="Written by Fan Zhang ([email protected])") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='Directory of fiber clustering results obtained by <wm_cluster_from_atlas.py> of multiple subjects. Make sure only the fiber clustering results are stored in this folder, making one subdirectory corresponding to one subject.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Harden transform with Slicer.", | ||
epilog="Written by Fan Zhang, [email protected]") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='Directory of input VTK/VTP files that are going to be transformed.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Quality control of fiber clustering results across multiple subjects.", | ||
epilog="Written by Fan Zhang, [email protected]") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='Directory of fiber clustering results obtained by <wm_cluster_from_atlas.py> of multiple subjects. Make sure only the fiber clustering results are stored in this folder, making one subdirectory corresponding to one subject.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,6 @@ def _build_arg_parser(): | |
description="Separate each cluster into left/right/commissural tracts based on the fiber location information computed by <wm_assess_cluster_location_by_hemisphere.py>. " | ||
"The output is three directories of fiber bundles according to left hemisphere, right hemisphere, and commissural tracts. ", | ||
epilog="Written by Fan Zhang ([email protected]) and Lauren O\'Donnell ([email protected]). Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='A directory of clustered whole-brain tractography as vtkPolyData (.vtk or .vtp).') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Decide a cluster belonging to commissural or hemispheric in the atlas.", | ||
epilog="Written by Fan Zhang, [email protected]") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputAtlasDirectory', | ||
help='Directory of the fiber clustering atlas. An output CSV file will be generated, showing the location of each fiber cluster: left-hemisphere, right-hemisphere, commissural, or Not Given if the fibers of a cluster are relatively even distributed in these three regions. ') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Measures mean FA, etc. in tractography clusters in a directory.", | ||
epilog="Written by Lauren O\'Donnell, [email protected]. Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectoryDWI', | ||
help='A directory of DWIs (nhdr or nrrd).') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Compute Tract Anatomical Profile", | ||
epilog="Written by Fan Zhang, [email protected].") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='A directory containing subdirectories for all clustered subjects.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Grab one cluster from within all subject directories and rename to include subject ID. Output all clusters into the output directory", | ||
epilog="Written by Lauren O\'Donnell, [email protected]. Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'cluster', type=int, | ||
help='The cluster number you would like to copy for all subjects.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Extract fiber clusters that connect to one particular region, such as one cortical parcel or one fMRI functional area. This is based on the results from <wm_measure_endpoint_overlap.py>.", | ||
epilog="Written by Fan Zhang, [email protected]") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='Contains endpoint overlap percentage measurement as txt files, which are computed from <wm_measure_endpoint_overlap.py>.') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Applies white matter laterality pipeline to input directory.", | ||
epilog="Written by Lauren O\'Donnell, [email protected]") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='Contains whole-brain tractography as vtkPolyData file(s).') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Measures mean FA, etc. in tractography clusters in a directory.", | ||
epilog="Written by Lauren O\'Donnell, [email protected]. Please reference \"O'Donnell, Lauren J., and C-F. Westin. Automatic tractography segmentation using a high-dimensional white matter atlas. Medical Imaging, IEEE Transactions on 26.11 (2007): 1562-1575.\"") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputDirectory', | ||
help='A directory of tractography as vtkPolyData (.vtk or .vtp).') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,6 @@ def _build_arg_parser(): | |
parser = argparse.ArgumentParser( | ||
description="Measure overlaps of fiber clusters with cortical parcellation or fMRI functional areas. This is based on the 3D Slicer module FiberEndPointFromLabelMap.", | ||
epilog="Written by Fan Zhang, [email protected]") | ||
parser.add_argument("-v", "--version", | ||
action="version", default=argparse.SUPPRESS, | ||
version='1.0', | ||
help="Show program's version number and exit") | ||
parser.add_argument( | ||
'inputTractDirectory', | ||
help='Directory of fiber clustering results obtained by <wm_cluster_from_atlas.py> of multiple subjects. Make sure only the fiber clustering results are stored in this folder, making one subdirectory corresponding to one subject.') | ||
|