C# Class PerseusApi.Utils.PerseusUtils

Exibir arquivo Open project: JurgenCox/perseus-plugins

Public Properties

Property Type Description
commentPrefix HashSet
commentPrefixExceptions HashSet

Public Methods

Method Description
AddFilter ( List filters, Parameters p, int inds, string &errString ) : void
GetAvailableAnnots ( string &baseNames, AnnotType &types, string &files ) : string[][]
GetAvailableAnnots ( string &baseNames, AnnotType &types, string &files, List &badFiles ) : string[][]

Read-in all available annotations.

GetAvailableAnnots ( string &baseNames, string &files ) : string[][]
GetAvailableAnnots ( string &baseNames, string &files, List &badFiles ) : string[][]

Read-in all available annotations.

GetNumFilterParams ( string selection ) : BaseLibS.Param.Parameter[]
GetRelationsNumFilter ( Parameters param, string &errString, int &colInds, bool &and ) : Relation[]
GetRowCount ( StreamReader reader, StreamReader auxReader, int mainColIndices, List filters, char separator ) : int
HasAnyDescription ( IMatrixData data ) : bool
IsValidRowNumFilter ( double row, Relation relations, bool and ) : bool
LoadMatrixData ( string[]>.IDictionary annotationRows, int eInds, int cInds, int nInds, int tInds, int mInds, ProcessInfo processInfo, IList colNames, IMatrixData mdata, StreamReader reader, StreamReader auxReader, int nrows, string origin, char separator, bool shortenExpressionNames, List filters ) : void
ReadMatrixFromFile ( IMatrixData mdata, ProcessInfo processInfo, string filename, char separator ) : void
ReadMatrixFromFile ( IMatrixData mdata, ProcessInfo processInfo, string filename, int eInds, int nInds, int cInds, int tInds, int mInds, Parameters mainFilterParameters, Parameters numericalFilterParameters, bool shortenExpressionColumnNames ) : void
WriteMatrixToFile ( IMatrixData data, string filename, bool addtlMatrices = false ) : void

Write matrix to file with tab separation

Private Methods

Method Description
ColumnIndices ( string typeRow, int &eInds, int &nInds, int &cInds, int &tInds, int &mInds ) : void
FromString1 ( string s ) : AnnotType
GetAnnotFiles ( ) : string[]
GetAvailableAnnots ( string file, string &baseName, AnnotType &types ) : string[]
GetColIndsNumFilter ( Parameters parameters, string &realVariableNames ) : int[]
GetColumnSelectionParameter ( string selection ) : BaseLibS.Param.Parameter
GetHasAddtlMatrices ( TextReader reader, IList expressionColIndices, char separator ) : bool
GetRelations ( Parameters parameters, string realVariableNames ) : Relation[]
GetRelationsParameter ( ) : BaseLibS.Param.Parameter
GetVariableName ( int i ) : string
IsValidLine ( string line, char separator, List filters, bool hasAddtlMatrices ) : bool
IsValidLine ( string line, char separator, List filters, string &split, bool hasAddtlMatrices ) : bool
LoadMatrixData ( IList colNames, IList colDescriptions, IList mainColIndices, IList catColIndices, IList numColIndices, IList textColIndices, IList multiNumColIndices, string origin, IMatrixData matrixData, string[]>.IDictionary annotationRows, Action progress, Action status, char separator, TextReader reader, StreamReader auxReader, int nrows, bool shortenExpressionNames, List filters ) : void
ParseExp ( string s, float &expressionValue, bool &isImputedValue, float &qualityValue ) : void
RemoveQuotes ( IEnumerable names ) : List
RemoveQuotes ( string name ) : string
RemoveSplitWhitespace ( string s ) : string
SplitAnnotRows ( string[]>.IDictionary annotRows, string[]>.Dictionary &catAnnotRows, string[]>.Dictionary &numAnnotRows ) : void
SplitLine ( string line, char separator ) : string[]
ToDoubles ( string s1, bool hasAddtlMatrices ) : double[]

Method Details

AddFilter() public static method

public static AddFilter ( List filters, Parameters p, int inds, string &errString ) : void
filters List
p Parameters
inds int
errString string
return void

GetAvailableAnnots() public static method

public static GetAvailableAnnots ( string &baseNames, AnnotType &types, string &files ) : string[][]
baseNames string
types AnnotType
files string
return string[][]

GetAvailableAnnots() public static method

Read-in all available annotations.
public static GetAvailableAnnots ( string &baseNames, AnnotType &types, string &files, List &badFiles ) : string[][]
baseNames string
types AnnotType
files string
badFiles List all files which couldn't be read
return string[][]

GetAvailableAnnots() public static method

public static GetAvailableAnnots ( string &baseNames, string &files ) : string[][]
baseNames string
files string
return string[][]

GetAvailableAnnots() public static method

Read-in all available annotations.
public static GetAvailableAnnots ( string &baseNames, string &files, List &badFiles ) : string[][]
baseNames string
files string
badFiles List all files which couldn't be read
return string[][]

GetNumFilterParams() public static method

public static GetNumFilterParams ( string selection ) : BaseLibS.Param.Parameter[]
selection string
return BaseLibS.Param.Parameter[]

GetRelationsNumFilter() public static method

public static GetRelationsNumFilter ( Parameters param, string &errString, int &colInds, bool &and ) : Relation[]
param Parameters
errString string
colInds int
and bool
return Relation[]

GetRowCount() public static method

public static GetRowCount ( StreamReader reader, StreamReader auxReader, int mainColIndices, List filters, char separator ) : int
reader System.IO.StreamReader
auxReader System.IO.StreamReader
mainColIndices int
filters List
separator char
return int

HasAnyDescription() public static method

public static HasAnyDescription ( IMatrixData data ) : bool
data IMatrixData
return bool

IsValidRowNumFilter() public static method

public static IsValidRowNumFilter ( double row, Relation relations, bool and ) : bool
row double
relations Relation
and bool
return bool

LoadMatrixData() public static method

public static LoadMatrixData ( string[]>.IDictionary annotationRows, int eInds, int cInds, int nInds, int tInds, int mInds, ProcessInfo processInfo, IList colNames, IMatrixData mdata, StreamReader reader, StreamReader auxReader, int nrows, string origin, char separator, bool shortenExpressionNames, List filters ) : void
annotationRows string[]>.IDictionary
eInds int
cInds int
nInds int
tInds int
mInds int
processInfo PerseusApi.Generic.ProcessInfo
colNames IList
mdata IMatrixData
reader System.IO.StreamReader
auxReader System.IO.StreamReader
nrows int
origin string
separator char
shortenExpressionNames bool
filters List
return void

ReadMatrixFromFile() public static method

public static ReadMatrixFromFile ( IMatrixData mdata, ProcessInfo processInfo, string filename, char separator ) : void
mdata IMatrixData
processInfo PerseusApi.Generic.ProcessInfo
filename string
separator char
return void

ReadMatrixFromFile() public static method

public static ReadMatrixFromFile ( IMatrixData mdata, ProcessInfo processInfo, string filename, int eInds, int nInds, int cInds, int tInds, int mInds, Parameters mainFilterParameters, Parameters numericalFilterParameters, bool shortenExpressionColumnNames ) : void
mdata IMatrixData
processInfo PerseusApi.Generic.ProcessInfo
filename string
eInds int
nInds int
cInds int
tInds int
mInds int
mainFilterParameters Parameters
numericalFilterParameters Parameters
shortenExpressionColumnNames bool
return void

WriteMatrixToFile() public static method

Write matrix to file with tab separation
public static WriteMatrixToFile ( IMatrixData data, string filename, bool addtlMatrices = false ) : void
data IMatrixData
filename string
addtlMatrices bool if true numbers are converted to triples value;imputed;quality
return void

Property Details

commentPrefix public_oe static_oe property

public static HashSet commentPrefix
return HashSet

commentPrefixExceptions public_oe static_oe property

public static HashSet commentPrefixExceptions
return HashSet