Differences between revisions 1 and 2
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
If the first character of FILENAME is....
 

The final file name is...

~ (tilde)
   
SubjectHomeDir/FILENAME

. (period)
   
UserHomeDir/FILENAME

/ (slash)
   FILENAME

other character
 

SubjectHomeDir/Subdirectory/FILENAME

||''If the first character of FILENAME is....''||''The final file name is...''||
||
~ (tilde)||SubjectHomeDir/FILENAME||
||
. (period)||UserHomeDir/FILENAME||
||
/ (slash)||FILENAME||
||other character||
SubjectHomeDir/Subdirectory/FILENAME||
Line 36: Line 15:
Data Type
   
Subdirectory

Functional data
   fmri

Head Points
   bem

Surface
   
surf

Anatomical
   mri

ROI/Label
   label

RGB
   
image/rgb

Control Points (control.dat)
   
tmp

Edit (edit.dat)
   
tmp


||Data Type||Subdirectory||
||
Functional data||fmri||
||
Head Points||bem||
||
Surface||surf||
||
Anatomical||mri||
||
ROI/Label||label||
||
RGB||image/rgb||
||
Control Points (control.dat)||tmp||
||
Edit (edit.dat)||tmp||
||Segmentation||mri||
||Color Table||$CSURF_DIR||
||Label||label||
||Anatomical Transform||mri/transforms||

Whenever a file name is required to load or save data, the following system is used. First, on startup, TkMedit attempts to acquire a User Home Directory and a Subject Home Directory. The User Home Directory is always the current directory from which TkMedit was launched. The Subject Home Directory is based on the way in which the anatomical data was loaded. If the default TkMedit loading method is used, it is the concatenated contents of $SUBJECTS_DIR and the subject name. If the -f switch is used, it is the value of that parameter.

If the first character of the file name is ~ (tilde) or . (period), it is substituted with the Subject Home Directory or User Home Directory, respectively. If the first character is another alphanumeric character, a default location directory is prepended to the file name. If the first character is / (slash), it is left alone. This behavior is summarized below:

If the first character of FILENAME is....

The final file name is...

~ (tilde)

SubjectHomeDir/FILENAME

. (period)

UserHomeDir/FILENAME

/ (slash)

FILENAME

other character

SubjectHomeDir/Subdirectory/FILENAME

...where FILENAME is the file name that was input.

The subdirectory used in the last substitution depends on the file type being loaded, and is appropriate for the standard NMR center directory structure. These are:

Data Type

Subdirectory

Functional data

fmri

Head Points

bem

Surface

surf

Anatomical

mri

ROI/Label

label

RGB

image/rgb

Control Points (control.dat)

tmp

Edit (edit.dat)

tmp

Segmentation

mri

Color Table

$CSURF_DIR

Label

label

Anatomical Transform

mri/transforms

TkMeditGuide/TkMeditReference/TkMeditFileNameSubstitution (last edited 2008-04-29 11:45:58 by localhost)