halo.userinterface.gui
Class Session

java.lang.Object
  extended by halo.userinterface.gui.Session

public class Session
extends java.lang.Object

This file is part of the HALO graphical user interface Contains all information of a current session, as well as methods for saving and loading

Author:
Stefanie Kaufmann

Constructor Summary
Session()
          Constructs a new session with a default file name
Session(java.io.File file)
          Constructs a new session
 
Method Summary
 java.lang.String[] getAttrDescr()
          Returns the names of the attributes for the data
 java.util.ArrayList<Mapping<java.lang.String,java.lang.String>> getAttributes()
          Returns the list of all attributes
 java.util.List<java.lang.String> getColumnsNew()
          Returns the list of column labels for newly transcribed RNA, only the extracted ones
 java.util.List<java.lang.String> getColumnsNewAll()
          Returns the list of column labels for newly transcribed RNA, all that are in the data file
 java.util.List<java.lang.String> getColumnsPre()
          Returns the list of column labels for pre-existing RNA, only the extracted ones
 java.util.List<java.lang.String> getColumnsPreAll()
          Returns the list of column labels for pre-existing RNA, all that are in the data file
 java.util.List<java.lang.String> getColumnsTotal()
          Returns the list of column labels for total RNA, only the extracted ones
 java.util.List<java.lang.String> getColumnsTotalAll()
          Returns the list of column labels for total RNA, all that are in the data file
 Data getData()
          Returns the data object
 java.io.File getDataFile()
          Returns the file from which the data was extracted
 java.util.List<java.lang.String> getDataMethods()
          Returns the list of filtering methods
 java.lang.StringBuffer getDisplay()
          Returns the description of half-life calculation methods and time points
 GuiFilterData getGuiData()
          Returns the interface connecting GUI and filtering of the data
 GuiHalfLife getGuiHL()
          Returns the interface connecting GUI and half-life calculation
 GuiNormal getGuiNorm()
          Returns the interface connecting GUI and linear regression
 java.util.List<java.lang.String> getHlMethods()
          Returns the list of methods used for half-life calculation
 java.util.ArrayList<java.lang.String> getLabels()
          Returns all the labels available in the data file
 java.lang.String getNormMethod()
          Returns the name of the normalization method
 int getPosX()
          Returns x position of the window
 int getPosY()
          Returns y position of the window
 int getRatioMethod()
          Returns the ratio calculation method
 java.util.List<java.lang.Integer> getReplicate()
          Returns the replicate number used for calculation
 java.util.List<java.lang.Double> getTimes()
          Returns the list of time points used for half-life calculation
 boolean isCheckAbs()
          Returns information on the checked status of the checkbox for the filtering method 'absence'
 boolean isCheckFilt()
          Returns information on the checked status of the checkbox for filtering
 boolean isCheckHL()
          Returns information on the checked status of the checkbox for half-life calculation
 boolean isCheckNorm()
          Returns information on the checked status of the checkbox for normalization
 boolean isCheckPQS()
          Returns information on the checked status of the checkbox for the filtering method 'pqs'
 boolean isCheckPQSMin()
          Returns information on the checked status of the checkbox for the filtering method 'pqs min'
 boolean isCheckThresh()
          Returns information on the checked status of the checkbox for the filtering method 'threshold'
 boolean isMaxim()
          Returns maximized status
 void load(java.io.File sessFile)
          Loads a session from a given file
 void setAttrDescr(java.lang.String[] attrDescr)
          Sets the descriptor for the attributes
 void setAttributes(java.util.ArrayList<Mapping<java.lang.String,java.lang.String>> attributes)
          Sets the list containing all the attributes of the data, each mapped to the spots
 void setCheckAbs(boolean checkAbs)
          Sets the value holding information on the checked status of the filtering method 'absence'
 void setCheckFilt(boolean checkFilt)
          Sets the value holding information on the checked status of the checkbox that expands the filtering menu
 void setCheckHL(boolean checkHL)
          Sets the value holding information on the checked status of the checkbox that expands the half-life calculation
 void setCheckNorm(boolean checkNorm)
          Sets the value holding information on the checked status of the checkbox that expands the linear regression
 void setCheckPQS(boolean checkPQS)
          Sets the value holding information on the checked status of the filtering method 'pqs'
 void setCheckPQSMin(boolean checkPQSMin)
          Sets the value holding information on the checked status of the filtering method 'pqs min'
 void setCheckThresh(boolean checkThresh)
          Sets the value holding information on the checked status of the filtering method 'threshold'
 void setColumn(int column)
          Sets the column of the multiple fasta file header which holds the gene name
 void setColumnsNew(java.util.List<java.lang.String> columnsNew)
          Sets the list of column labels for newly transcribed RNA, only those that are extracted
 void setColumnsNewAll(java.util.List<java.lang.String> columnsNewAll)
          Sets the list of column labels for newly transcribed RNA, all those labels that are available in the data file
 void setColumnsPre(java.util.List<java.lang.String> columnsPre)
          Sets the list of column labels for pre-existing RNA, only those that are extracted
 void setColumnsPreAll(java.util.List<java.lang.String> columnsPreAll)
          Sets the list of column labels for pre-existing RNA, all those labels that are available in the data file
 void setColumnsTotal(java.util.List<java.lang.String> columnsTotal)
          Sets the list of column labels for total RNA, only those that are extracted
 void setColumnsTotalAll(java.util.List<java.lang.String> columnsTotalAll)
          Sets the list of column labels for total RNA, all those labels that are available in the data file
 void setData(Data data)
          Sets the data object needed for normalization
 void setDataFile(java.io.File dataFile)
          Sets the file containing the data
 void setDataMethods(java.util.List<java.lang.String> dataMethods)
          Sets the list of filtering methods
 void setDisplay(java.lang.StringBuffer display)
          Sets the description of all used half-life calculation methods
 void setFasta(java.io.File file)
          Sets the file which contains the sequences for the data
 void setFile(java.io.File file)
          Sets the file into which the session will be saved
 void setGuiData(GuiFilterData guiData)
          Sets the interface between GUI and data handling
 void setGuiHL(GuiHalfLife guiHL)
          Sets the interface between GUI and half-life calculation
 void setGuiNorm(GuiNormal guiNorm)
          Sets the interface between GUI and normalization
 void setHlMethods(java.util.List<java.lang.String> hlMethods)
          Sets the list of descriptions of half-life calculation methods
 void setLabels(java.util.ArrayList<java.lang.String> labels)
          Sets the list of all labels from the data file
 void setMaxim(int m)
          Sets the attribute containing information if the window is maximized or not
 void setNormMethod(java.lang.String normMethod)
          Sets the list of methods for normalization
 void setPosX(int x)
          Sets the x position of the window
 void setPosY(int y)
          Sets the y position of the window
 void setRatioMethod(int ratioMethod)
          Sets the ratio calculation method
 void setReplicate(java.util.List<java.lang.Integer> replicate)
          Sets the (column) number of the used replicate
 void setTimes(java.util.List<java.lang.Double> times)
          Sets the list of time points for half-life calculation
 void store()
          Stores the session in the previously defined file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Session

public Session(java.io.File file)
Constructs a new session

Parameters:
file - The file into which the session will be saved

Session

public Session()
Constructs a new session with a default file name

Method Detail

store

public void store()
Stores the session in the previously defined file


load

public void load(java.io.File sessFile)
Loads a session from a given file

Parameters:
sessFile - File containing session information

setAttrDescr

public void setAttrDescr(java.lang.String[] attrDescr)
Sets the descriptor for the attributes

Parameters:
attrDescr - The list of names of the attributes of the data

setReplicate

public void setReplicate(java.util.List<java.lang.Integer> replicate)
Sets the (column) number of the used replicate

Parameters:
replicate - Number of the replicate used for calculation

setAttributes

public void setAttributes(java.util.ArrayList<Mapping<java.lang.String,java.lang.String>> attributes)
Sets the list containing all the attributes of the data, each mapped to the spots

Parameters:
attributes - The list of attributes

setCheckAbs

public void setCheckAbs(boolean checkAbs)
Sets the value holding information on the checked status of the filtering method 'absence'

Parameters:
checkAbs - True, if filtering method 'absence' is checked

setCheckFilt

public void setCheckFilt(boolean checkFilt)
Sets the value holding information on the checked status of the checkbox that expands the filtering menu

Parameters:
checkFilt - True, if filtering is checked

setCheckHL

public void setCheckHL(boolean checkHL)
Sets the value holding information on the checked status of the checkbox that expands the half-life calculation

Parameters:
checkHL - True, if half-life is checked

setCheckNorm

public void setCheckNorm(boolean checkNorm)
Sets the value holding information on the checked status of the checkbox that expands the linear regression

Parameters:
checkNorm - True, if normalization is checked

setCheckPQS

public void setCheckPQS(boolean checkPQS)
Sets the value holding information on the checked status of the filtering method 'pqs'

Parameters:
checkPQS - True, if filtering method 'pqs' is checked

setCheckPQSMin

public void setCheckPQSMin(boolean checkPQSMin)
Sets the value holding information on the checked status of the filtering method 'pqs min'

Parameters:
checkPQSMin - True, if filtering method 'pqs min' is checked

setCheckThresh

public void setCheckThresh(boolean checkThresh)
Sets the value holding information on the checked status of the filtering method 'threshold'

Parameters:
checkThresh - True, if filtering method 'threshold' is checked

setPosX

public void setPosX(int x)
Sets the x position of the window

Parameters:
x - The x position of the window

setPosY

public void setPosY(int y)
Sets the y position of the window

Parameters:
y - The y position of the window

setRatioMethod

public void setRatioMethod(int ratioMethod)
Sets the ratio calculation method

Parameters:
ratioMethod - The ratio calculation method

setMaxim

public void setMaxim(int m)
Sets the attribute containing information if the window is maximized or not

Parameters:
m - True if the window is maximized

setColumnsNew

public void setColumnsNew(java.util.List<java.lang.String> columnsNew)
Sets the list of column labels for newly transcribed RNA, only those that are extracted

Parameters:
columnsNew - The list of column labels for newly transcribed RNA

setColumnsNewAll

public void setColumnsNewAll(java.util.List<java.lang.String> columnsNewAll)
Sets the list of column labels for newly transcribed RNA, all those labels that are available in the data file

Parameters:
columnsNewAll - The list of all column labels for newly transcribed RNA

setColumnsPre

public void setColumnsPre(java.util.List<java.lang.String> columnsPre)
Sets the list of column labels for pre-existing RNA, only those that are extracted

Parameters:
columnsPre - The list of column labels for pre-existing RNA

setColumnsPreAll

public void setColumnsPreAll(java.util.List<java.lang.String> columnsPreAll)
Sets the list of column labels for pre-existing RNA, all those labels that are available in the data file

Parameters:
columnsPreAll - The list of all column labels for pre-existing RNA

setColumnsTotal

public void setColumnsTotal(java.util.List<java.lang.String> columnsTotal)
Sets the list of column labels for total RNA, only those that are extracted

Parameters:
columnsTotal - The list of column labels for total RNA

setColumnsTotalAll

public void setColumnsTotalAll(java.util.List<java.lang.String> columnsTotalAll)
Sets the list of column labels for total RNA, all those labels that are available in the data file

Parameters:
columnsTotalAll - The list of all column labels for total RNA

setNormMethod

public void setNormMethod(java.lang.String normMethod)
Sets the list of methods for normalization

Parameters:
normMethod - The list of methods for normalization

setData

public void setData(Data data)
Sets the data object needed for normalization

Parameters:
data - The data object needed for normalization

setDataFile

public void setDataFile(java.io.File dataFile)
Sets the file containing the data

Parameters:
dataFile - The file containing the data

setDisplay

public void setDisplay(java.lang.StringBuffer display)
Sets the description of all used half-life calculation methods

Parameters:
display - The description of all half-life calculation methods and time points

setGuiData

public void setGuiData(GuiFilterData guiData)
Sets the interface between GUI and data handling

Parameters:
guiData - The GuiFilterData object connecting GUI and data handling

setGuiHL

public void setGuiHL(GuiHalfLife guiHL)
Sets the interface between GUI and half-life calculation

Parameters:
guiHL - The GuiHalfLife object connecting GUI and half-life calculation

setGuiNorm

public void setGuiNorm(GuiNormal guiNorm)
Sets the interface between GUI and normalization

Parameters:
guiNorm - The GuiLinReg object connecting GUI and normalization

setLabels

public void setLabels(java.util.ArrayList<java.lang.String> labels)
Sets the list of all labels from the data file

Parameters:
labels - The list of labels from the data file

setHlMethods

public void setHlMethods(java.util.List<java.lang.String> hlMethods)
Sets the list of descriptions of half-life calculation methods

Parameters:
hlMethods - The list of description of half-life methods

setTimes

public void setTimes(java.util.List<java.lang.Double> times)
Sets the list of time points for half-life calculation

Parameters:
times - The list of time points for half-life calculation

setFile

public void setFile(java.io.File file)
Sets the file into which the session will be saved

Parameters:
file - The file into which the session will be saved

setFasta

public void setFasta(java.io.File file)
Sets the file which contains the sequences for the data

Parameters:
file - The multiple fasta file for the data

setColumn

public void setColumn(int column)
Sets the column of the multiple fasta file header which holds the gene name

Parameters:
column - The column which holds the gene name

setDataMethods

public void setDataMethods(java.util.List<java.lang.String> dataMethods)
Sets the list of filtering methods

Parameters:
dataMethods - The list of filtering methods

getReplicate

public java.util.List<java.lang.Integer> getReplicate()
Returns the replicate number used for calculation

Returns:
The replicate number used

getColumnsNew

public java.util.List<java.lang.String> getColumnsNew()
Returns the list of column labels for newly transcribed RNA, only the extracted ones

Returns:
The list of column labels for newly transcribed RNA

getColumnsNewAll

public java.util.List<java.lang.String> getColumnsNewAll()
Returns the list of column labels for newly transcribed RNA, all that are in the data file

Returns:
The list of all column labels for newly transcribed RNA

getColumnsPre

public java.util.List<java.lang.String> getColumnsPre()
Returns the list of column labels for pre-existing RNA, only the extracted ones

Returns:
The list of column labels for pre-existing RNA

getColumnsPreAll

public java.util.List<java.lang.String> getColumnsPreAll()
Returns the list of column labels for pre-existing RNA, all that are in the data file

Returns:
The list of all column labels for pre-existing RNA

getColumnsTotal

public java.util.List<java.lang.String> getColumnsTotal()
Returns the list of column labels for total RNA, only the extracted ones

Returns:
The list of column labels for total RNA

getColumnsTotalAll

public java.util.List<java.lang.String> getColumnsTotalAll()
Returns the list of column labels for total RNA, all that are in the data file

Returns:
The list of all column labels for total RNA

getData

public Data getData()
Returns the data object

Returns:
The data object

getDataFile

public java.io.File getDataFile()
Returns the file from which the data was extracted

Returns:
The file containing the expression data

getDataMethods

public java.util.List<java.lang.String> getDataMethods()
Returns the list of filtering methods

Returns:
The list of filtering methods

getDisplay

public java.lang.StringBuffer getDisplay()
Returns the description of half-life calculation methods and time points

Returns:
The description of half-life calculation

getGuiData

public GuiFilterData getGuiData()
Returns the interface connecting GUI and filtering of the data

Returns:
The GuiFilterData object

getGuiHL

public GuiHalfLife getGuiHL()
Returns the interface connecting GUI and half-life calculation

Returns:
The GuiHalfLife object

getGuiNorm

public GuiNormal getGuiNorm()
Returns the interface connecting GUI and linear regression

Returns:
The GuiNormal object

getHlMethods

public java.util.List<java.lang.String> getHlMethods()
Returns the list of methods used for half-life calculation

Returns:
The list of half-life calculation methods

getLabels

public java.util.ArrayList<java.lang.String> getLabels()
Returns all the labels available in the data file

Returns:
All labels from the data file

getNormMethod

public java.lang.String getNormMethod()
Returns the name of the normalization method

Returns:
The name of the normalization method

getRatioMethod

public int getRatioMethod()
Returns the ratio calculation method

Returns:
The ratio calculation method

getTimes

public java.util.List<java.lang.Double> getTimes()
Returns the list of time points used for half-life calculation

Returns:
The list of time points for half-life calculation

getAttrDescr

public java.lang.String[] getAttrDescr()
Returns the names of the attributes for the data

Returns:
The names of the data attributes

getAttributes

public java.util.ArrayList<Mapping<java.lang.String,java.lang.String>> getAttributes()
Returns the list of all attributes

Returns:
The list of all attributes

isCheckAbs

public boolean isCheckAbs()
Returns information on the checked status of the checkbox for the filtering method 'absence'

Returns:
True, if 'absence' was checked

isCheckHL

public boolean isCheckHL()
Returns information on the checked status of the checkbox for half-life calculation

Returns:
True, if half-life menu was expanded

isCheckFilt

public boolean isCheckFilt()
Returns information on the checked status of the checkbox for filtering

Returns:
True, if filtering menu was expanded

isCheckNorm

public boolean isCheckNorm()
Returns information on the checked status of the checkbox for normalization

Returns:
True, if normalization menu was expanded

isCheckPQS

public boolean isCheckPQS()
Returns information on the checked status of the checkbox for the filtering method 'pqs'

Returns:
True, if 'pqs' was checked

isCheckPQSMin

public boolean isCheckPQSMin()
Returns information on the checked status of the checkbox for the filtering method 'pqs min'

Returns:
True, if 'pqs min' was checked

isCheckThresh

public boolean isCheckThresh()
Returns information on the checked status of the checkbox for the filtering method 'threshold'

Returns:
True, if 'threshold' was checked

getPosX

public int getPosX()
Returns x position of the window

Returns:
X position of the window

getPosY

public int getPosY()
Returns y position of the window

Returns:
Y position of the window

isMaxim

public boolean isMaxim()
Returns maximized status

Returns:
True, if window was maximized