|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.application.dataConversion.FileGenerator
This class is the main application class for generating a flat file format from the contents of a database. Currently the file format is PSI, and the DBs are postgres or oracle, though the DB details are hidden behind the IntactHelper/persistence layer as usual.
| Field Summary | |
static int |
LARGESCALESIZE
|
static int |
SMALLSCALELIMIT
|
| Constructor Summary | |
FileGenerator(IntactHelper helper,
DataBuilder builder)
|
|
| Method Summary | |
void |
buildFileData(java.util.Collection searchResults)
Creates the necessary file data from the DB information, using the specified DataBuilder. |
static java.util.HashMap |
classifyExperiments(java.lang.String searchPattern)
Classify experiments matching searchPattern into a data structure according to species and experiment size. |
void |
generateFile(java.lang.String fileName)
Generates the file from the previously created data. |
static void |
generatePsiData(java.lang.String searchPattern,
java.lang.String fileName)
Generates a PSI MI formatted file for a searchPattern. |
java.util.Collection |
getDbData(java.lang.String searchPattern)
Obtains the data from the dataSource, in preparation for the flat file generation. |
static void |
main(java.lang.String[] args)
Main method for the PSI application. |
static void |
processLargeExperiment(Experiment exp,
java.lang.String fileName)
|
static void |
writeExperimentsClassification(java.util.HashMap allExp)
Output the experiment classification, suitable for scripting |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SMALLSCALELIMIT
public static final int LARGESCALESIZE
| Constructor Detail |
public FileGenerator(IntactHelper helper,
DataBuilder builder)
| Method Detail |
public java.util.Collection getDbData(java.lang.String searchPattern)
throws IntactException
searchPattern - for search by shortLabel. May be a comma-separated list.
IntactException - thrown if there was a search problem
public void buildFileData(java.util.Collection searchResults)
throws ElementNotParseableException
DataBuilder.
ElementNotParseableException
public void generateFile(java.lang.String fileName)
throws DataConversionException
fileName - the name to use for the generated file.
DataConversionException - thrown if there were problems with writing
the data.public static void writeExperimentsClassification(java.util.HashMap allExp)
allExp - HashMap of HashMap of ArrayLists of Experiments: {species}{scale}[n]
public static java.util.HashMap classifyExperiments(java.lang.String searchPattern)
throws IntactException
searchPattern -
IntactException
public static void generatePsiData(java.lang.String searchPattern,
java.lang.String fileName)
throws java.lang.Exception
searchPattern - fileName -
java.lang.Exception
public static void processLargeExperiment(Experiment exp,
java.lang.String fileName)
throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||