#include <pclset.h>

Public Member Functions | |
| bool | Open (const std::vector< std::string > &vecstrFiles, size_t iSkip=2, CPCL::ENormalize eNormalize=CPCL::ENormalizeNone) |
| Create a new PCL set by opening and aligning the given PCL filenames. | |
| size_t | GetGenes () const |
| Return the number of genes in the PCL set. | |
| size_t | GetPCLs () const |
| Return the number of PCLs in the set. | |
| float | Get (size_t iPCL, size_t iGene, size_t iExperiment) const |
| Returns the value at the requested PCL position. | |
| const float * | Get (size_t iPCL, size_t iGene) const |
| Return a single gene's row from the given PCL. | |
| size_t | GetGene (const std::string &strGene) const |
| Return the index of the given gene name, or -1 if it is not included in the PCL set. | |
| const std::string & | GetGene (size_t iGene) const |
| Returns the gene name at the given index. | |
| const std::vector< std::string > & | GetGeneNames () const |
| Returns the vector of gene names associated with this PCL set. | |
| const CPCL & | Get (size_t iPCL) const |
| Return the PCL at the given index. | |
A PCL set is a set of PCLs whose gene indices have been aligned; that is, the same gene will appear at any index in all contained PCLs. Genes not actually present in individual PCLs will be given missing values for data and empty strings for feature values.
Definition at line 42 of file pclset.h.
| bool Sleipnir::CPCLSet::Open | ( | const std::vector< std::string > & | vecstrFiles, | |
| size_t | iSkip = 2, |
|||
| CPCL::ENormalize | eNormalize = CPCL::ENormalizeNone | |||
| ) |
Create a new PCL set by opening and aligning the given PCL filenames.
| vecstrFiles | Vector of PCL filenames to be opened. | |
| iSkip | Number of feature columns to skip between the gene IDs and experimental data columns in each file. | |
| eNormalize | Way in which each PCL should be normalized. |
Definition at line 61 of file pclset.cpp.
| size_t Sleipnir::CPCLSet::GetGenes | ( | ) | const [inline] |
| size_t Sleipnir::CPCLSet::GetPCLs | ( | ) | const [inline] |
| float Sleipnir::CPCLSet::Get | ( | size_t | iPCL, | |
| size_t | iGene, | |||
| size_t | iExperiment | |||
| ) | const [inline] |
Returns the value at the requested PCL position.
| iPCL | PCL index. | |
| iGene | Gene row. | |
| iExperiment | Experiment column. |
Definition at line 93 of file pclset.h.
References Sleipnir::CMeta::GetNaN().
| const float* Sleipnir::CPCLSet::Get | ( | size_t | iPCL, | |
| size_t | iGene | |||
| ) | const [inline] |
Return a single gene's row from the given PCL.
| iPCL | PCL index. | |
| iGene | Gene row. |
| size_t Sleipnir::CPCLSet::GetGene | ( | const std::string & | strGene | ) | const [inline] |
Return the index of the given gene name, or -1 if it is not included in the PCL set.
| strGene | Gene name to retrieve. |
| const std::string& Sleipnir::CPCLSet::GetGene | ( | size_t | iGene | ) | const [inline] |
| const std::vector<std::string>& Sleipnir::CPCLSet::GetGeneNames | ( | ) | const [inline] |
| const CPCL& Sleipnir::CPCLSet::Get | ( | size_t | iPCL | ) | const [inline] |
Return the PCL at the given index.
| iPCL | Index of PCL to retrieve from the set. |
1.5.5