|
SIVIC API
0.9.26
|
#include <svkUCSFUtils.h>
Public Member Functions | |
| vtkTypeMacro (svkUCSFUtils, vtkObject) | |
Static Public Member Functions | |
| static svkUCSFUtils * | New () |
| static void | CreateMap () |
| Create the map from metabolite proper names to filenames. More... | |
| static string | GetMetaboliteName (string fileName) |
| Gets the name of a metabolite fore a given filename. More... | |
| static string | GetMetaboliteDirectoryName (string spectraFileName) |
| Gets the directory in which a metabolite file should reside. More... | |
| static string | GetMetaboliteRoot (string spectraFileName) |
| Gets the root name for a metabolite file. More... | |
| static string | GetMetaboliteFileName (string spectraFileName, string metaboliteName, bool includePath=false) |
| Get the filename for a given metabolite. More... | |
| static string | GetMetabolitePostfix (string metaboliteName) |
| Get the postfix for a given metabolite. More... | |
| static string | GetMetaboliteFromPostfix (string postfixName) |
| Get the metabolite name for a given postfix. More... | |
| static vector< string > | GetAllMetaboliteNames () |
| Returns a liste of all metabolites in our hash. More... | |
| static string | GetDICOMFileName (string fileName, svkDcmHeader *header) |
| static int | ReidentifyImages (string directory) |
| Reidentify images in a given directory. More... | |
Static Public Attributes | |
| static bool | mapCreated = false |
| static map< string, string > | metaboliteMap |
| Maps metabolite names to file extentions. More... | |
Protected Member Functions | |
| svkUCSFUtils () | |
| Constructor. More... | |
| ~svkUCSFUtils () | |
| Destructor. More... | |
UCSF specific utilities.
|
protected |
Constructor.
|
protected |
Destructor.
|
static |
Create the map from metabolite proper names to filenames.
Creates our hash.
TODO: Consider making the hash read from a text file so we don't have to recompile to add mappings
References svkUCSFUtils::mapCreated, and svkUCSFUtils::metaboliteMap.
Referenced by svkUCSFUtils::GetAllMetaboliteNames(), svkUCSFUtils::GetMetaboliteFromPostfix(), and svkUCSFUtils::GetMetabolitePostfix().
|
static |
Returns a liste of all metabolites in our hash.
Gets the names of all the metabolites in the current hash.
References svkUCSFUtils::CreateMap(), svkUCSFUtils::mapCreated, and svkUCSFUtils::metaboliteMap.
|
static |
References svkDcmHeader::GetIntValue(), and svkDcmHeader::GetStringValue().
|
static |
Gets the directory in which a metabolite file should reside.
Method takes a spectra file name and determines the name of the directory in which it should reside.
| spectraFileName | the name of the spectra file that you want to find the metabolite |
References svkUCSFUtils::GetMetaboliteRoot().
Referenced by svkUCSFUtils::GetMetaboliteFileName().
|
static |
Get the filename for a given metabolite.
Method takes a spectra file name and determines the filename of a given metabolite for that spectra.
| spectraFileName | the name of the spectra file that you want to find the metabolite |
| metaboliteName | the metabolite name you are looking for |
| incluePath | should we include the name of the path in which the file should exist |
References svkUCSFUtils::GetMetaboliteDirectoryName(), svkUCSFUtils::GetMetabolitePostfix(), and svkUCSFUtils::GetMetaboliteRoot().
|
static |
Get the metabolite name for a given postfix.
Get the metabolite name for a given postfix.
| postfix | for the name of the metabolite you are looking for |
References svkUCSFUtils::CreateMap(), svkUCSFUtils::mapCreated, and svkUCSFUtils::metaboliteMap.
Referenced by svkUCSFUtils::GetMetaboliteName().
|
static |
Gets the name of a metabolite fore a given filename.
Gets the metabolite name for a given metabolite file
References svkUCSFUtils::GetMetaboliteFromPostfix().
|
static |
Get the postfix for a given metabolite.
Get the file name postfix for a given metabolite.
| metaboliteName | the name of the metabolite you are looking for |
References svkUCSFUtils::CreateMap(), svkUCSFUtils::mapCreated, and svkUCSFUtils::metaboliteMap.
Referenced by svkUCSFUtils::GetMetaboliteFileName().
|
static |
Gets the root name for a metabolite file.
Method takes a spectra file name and determines the name of the root for the metabolites
| spectraFileName | the name of the spectra file that you want to find the metabolite root |
Referenced by svkUCSFUtils::GetMetaboliteDirectoryName(), and svkUCSFUtils::GetMetaboliteFileName().
|
static |
|
static |
Reidentify images in a given directory.
| vtkTypeMacro | ( | svkUCSFUtils | , |
| vtkObject | |||
| ) |
|
static |
|
static |
Maps metabolite names to file extentions.
Referenced by svkUCSFUtils::CreateMap(), svkUCSFUtils::GetAllMetaboliteNames(), svkUCSFUtils::GetMetaboliteFromPostfix(), and svkUCSFUtils::GetMetabolitePostfix().
1.8.5