public class TreeSAAPTP
extends java.lang.Object
GUIResultsView| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EvpthwyDN
Directory Name for Evpthwy directory
|
static java.lang.String |
EvpthwyLocKey
Location Key for Evpthwy directory
|
static java.lang.String |
NSynSubsFN
File name for NSynSubs file
|
static java.lang.String |
NSynSubsLocKey
Location Key for NSynSubs file
|
static java.lang.String |
SlidingWindowDN
Directory name for Sliding Window
|
static java.lang.String |
SlidingWLocKey
Location Key for SlidingWindow directory
|
static java.lang.String |
SubstsDN
Directory Name for Substs directory
|
static java.lang.String |
SubstsLocKey
Location Key for Substs directory
|
static java.lang.String |
SynSubsFN
File name for SynSubs file
|
static java.lang.String |
SynSubsLocKey
Location Key for SynSubs file
|
static java.lang.String |
ZSigPropFN
File name for Z-SigProp file
|
static java.lang.String |
ZSigPropLocKey
Location Key for Z-SigProp file
|
| Constructor and Description |
|---|
TreeSAAPTP(Utilities utilities)
Initialize TreeSAAP Panel resources
|
| Modifier and Type | Method and Description |
|---|---|
void |
getAllPropsSignifRanges()
For each and every extracted property, get its location (in SlidingWindow) and extract from the
corresponding file, all the rows that have columns 6,7 or 8 with values higher
than 3.090232
Builds an HashMap having properties absolute paths as keys and a linked list of selected rows as values. |
java.lang.String |
getMSignifValue()
Get the most significant value (P = 0.001).
|
void |
getMSNSynSubs(java.lang.String nssfile)
Obtain the most significant rows from the NSynSubs file.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getPBSTable()
Get NSynSubs Properties by Site table.
|
java.lang.String |
getPLocation(java.lang.String propname)
Get location of property given its name.
|
java.lang.String[] |
getPropertiesByRange()
From a range list obtained from a property file, find all
ranges that match to the most significant row (range) for each property. |
void |
getPropertiesBySite(boolean incbranches,
boolean inccodaa)
Find and retrieve all properties for each site.
|
java.lang.String[] |
getPropertiesFound()
Get listing of properties found in directory Sliding Window.
|
int |
getPropertiesFoundCnt()
Get count of properties found in directory Sliding Window.
|
java.lang.String[] |
getPropertyMostSignif(java.lang.String propname)
Get list of most significant ranges (rows) for given property name.
|
java.lang.String |
getPropertyMostSignifToFile(java.lang.String propname)
Retrieve and write property containing most significant rows to file.
|
void |
getSWProperties()
Retrieve all properties found in Sliding Window directory.
Initialize related names and locations. |
java.lang.String |
getTSLocation(java.lang.String key)
Get TreeSAAP location given key.
|
java.lang.String[] |
getZSPPropertiesNames()
Get names of significant properties whose rows have been extracted from Z-SigProp.
|
java.lang.String |
getZSPSignifRows()
Extract lines from the file Z-SigProp which are most singificant.
|
java.lang.String |
prepareToFile(java.lang.String[] proprange,
java.lang.String filepath)
From a list of ranges with properties associated, produce
a similar list but with indexes translated to names. |
java.lang.String |
preprocessTreeSAAPFile(java.lang.String filepath,
java.lang.String tag)
This procedure was created to standardize or correct, the csv format found in TreeSAAP files.
|
java.lang.String |
printBranchStatisticsToFile(java.lang.String filename)
Make two tables having separate information of branches information selected by user.
|
java.lang.String |
printMSNSSMap2File(java.lang.String filename)
Print most significant sorted information from NSynSubs to file.
|
java.lang.String |
printPBSMap2File(java.lang.String filename)
Print properties by site information to file.
|
java.lang.String |
printStatisticsToFile(java.lang.String filename)
Print statistical information to file.
|
void |
setRadical(boolean onoff,
boolean onlytwo,
boolean pos,
boolean neg)
Set if to process data for conservative (1,2,3) columns or radical (6,7,8) columns.
|
void |
setTSLocation(java.lang.String key,
java.lang.String loc)
Set TreeSAAP location for given key.
|
void |
tryGetSubLocationsE(java.lang.String evpthwydir)
Set top directory for TreeSAAP results.
|
void |
tryGetSubLocationsS(java.lang.String substsdir)
Set top directory for TreeSAAP results.
|
public static final java.lang.String EvpthwyDN
public static final java.lang.String ZSigPropFN
public static final java.lang.String SlidingWindowDN
public static final java.lang.String EvpthwyLocKey
public static final java.lang.String ZSigPropLocKey
public static final java.lang.String SlidingWLocKey
public static final java.lang.String SubstsDN
public static final java.lang.String NSynSubsFN
public static final java.lang.String SynSubsFN
public static final java.lang.String SubstsLocKey
public static final java.lang.String NSynSubsLocKey
public static final java.lang.String SynSubsLocKey
public TreeSAAPTP(Utilities utilities)
utilities - object from the class Utilities.public void setRadical(boolean onoff,
boolean onlytwo,
boolean pos,
boolean neg)
onoff - true for radical, false otherwise.onlytwo - if true uses only two categories (1,2 or 7,8, according to previous parameter); three otherwise,pos - get or not positive values.neg - get or not negative values.public java.lang.String getTSLocation(java.lang.String key)
key - the key for the location.public void setTSLocation(java.lang.String key,
java.lang.String loc)
key - the key for the location.loc - the location associated to this key.public java.lang.String getMSignifValue()
msignificantpublic void tryGetSubLocationsE(java.lang.String evpthwydir)
evpthwydir - the Evpthwy (Evolutionary Pathway) directory absolute path.public void tryGetSubLocationsS(java.lang.String substsdir)
substsdir - the Substs (Substitutions) directory absolute path.public void getSWProperties()
public java.lang.String[] getPropertiesFound()
public int getPropertiesFoundCnt()
public java.lang.String getPLocation(java.lang.String propname)
propname - property name without extension (txt)public java.lang.String getZSPSignifRows()
public java.lang.String[] getZSPPropertiesNames()
getZSPSignifRows()public void getAllPropsSignifRanges()
getZSPSignifRows(),
getZSPPropertiesNames()public java.lang.String[] getPropertyMostSignif(java.lang.String propname)
propname - property name.public java.lang.String getPropertyMostSignifToFile(java.lang.String propname)
propname - property name to search for.public java.lang.String[] getPropertiesByRange()
getZSPPropertiesNames(),
getPropertyMostSignif(java.lang.String),
getRangeList()public java.lang.String prepareToFile(java.lang.String[] proprange,
java.lang.String filepath)
proprange - list of ranges with properties associated.filepath - the path of the file where to save content.getPropertiesByRange()public java.lang.String preprocessTreeSAAPFile(java.lang.String filepath,
java.lang.String tag)
filepath - the absolute path of the file to be treated.tag - the tag used to distinguish each case. View the See Also section.ZSigPropFN,
SlidingWindowDNpublic void getMSNSynSubs(java.lang.String nssfile)
nssfile - absolute path for the NSynSubs file.public java.lang.String printMSNSSMap2File(java.lang.String filename)
filename - where to write information.getMSNSynSubs(java.lang.String),
sortValues(java.lang.String[], boolean)public void getPropertiesBySite(boolean incbranches,
boolean inccodaa)
incbranches - whether or not to include branches information in the results.inccodaa - whether or not to include codons and amino-acids information in the results.getMSNSynSubs(java.lang.String)public java.lang.String printBranchStatisticsToFile(java.lang.String filename)
filename - base file path.public java.lang.String printStatisticsToFile(java.lang.String filename)
filename - properties by site absolute file path.getPropertiesBySite(boolean, boolean),
buildStatistics(int)public java.lang.String printPBSMap2File(java.lang.String filename)
filename - file where to write PBS information.public java.util.HashMap<java.lang.String,java.lang.String> getPBSTable()