Package org.biojava.nbio.survival.cox
Class CoxVariables
- java.lang.Object
-
- org.biojava.nbio.survival.cox.CoxVariables
-
public class CoxVariables extends Object
- Author:
- Scooter Willis
-
-
Constructor Summary
Constructors Constructor Description CoxVariables(String cohortName, String geneSet, String genes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringencodeFileURL(String file)static Stringfmt(Double d, int precision, int pad)StringgetCohortName()CoxInfogetCoxInfo(String name)LinkedHashMap<String,CoxInfo>getCoxInfoHashMap()StringgetGenes()StringgetGeneSet()intgetUniqueID()Need a unique id from StringvoidputCoxInfo(String name, CoxInfo coxInfo)StringtoString()
-
-
-
Constructor Detail
-
CoxVariables
public CoxVariables(String cohortName, String geneSet, String genes)
- Parameters:
cohortName-geneSet-genes-
-
-
Method Detail
-
getUniqueID
public int getUniqueID()
Need a unique id from String- Returns:
-
putCoxInfo
public void putCoxInfo(String name, CoxInfo coxInfo)
- Parameters:
name-coxInfo-
-
getCoxInfo
public CoxInfo getCoxInfo(String name)
- Parameters:
name-- Returns:
-
encodeFileURL
public String encodeFileURL(String file)
- Parameters:
file-- Returns:
-
fmt
public static String fmt(Double d, int precision, int pad)
- Parameters:
d-precision-pad-- Returns:
-
getCohortName
public String getCohortName()
- Returns:
- the cohortName
-
getGeneSet
public String getGeneSet()
- Returns:
- the geneSet
-
getCoxInfoHashMap
public LinkedHashMap<String,CoxInfo> getCoxInfoHashMap()
- Returns:
- the coxInfoHashMap
-
-