public class PIAModeller extends Object
Constructor and Description |
---|
PIAModeller()
Creates a modeller for the new creation of a intermediate structure using
as many threads as processors are available.
|
PIAModeller(int nrThreads,
boolean oboLookup)
Creates a modeller for the new creation of a intermediate structure using
only the specified number of threads
|
PIAModeller(String pathname)
Creates a modeller which loads the intermediate structure from a file
using as many threads as processors are available.
|
PIAModeller(String pathname,
int nrThreads,
boolean oboLookup)
Creates a modeller which loads the intermediate structure from a file
using only the specified number of threads
|
Modifier and Type | Method and Description |
---|---|
Integer |
addFile(String pathname)
Adds a file to the input files.
|
Integer |
addFileAndImportSpectra(String pathname,
List<AbstractFilter> filters)
Adds a file to the input files and adds the filtered PSMs to the
structure creator.
|
Integer |
addFileAndImportSpectra(String pathname,
List<AbstractFilter> filters,
String cacheScoreAccession)
Adds a file to the input files and adds the filtered PSMs to the
structure creator.
|
Integer |
addPrideControllerAsInput(uk.ac.ebi.pride.utilities.data.controller.DataAccessController controller)
Adds a
DataAccessController as source for import. |
IntermediateStructure |
buildIntermediateStructure()
This method builds the intermediate structure with the data of the input
files.
|
void |
close()
As some controllers should be closed, do this here.
|
DataImportController |
getImportController(Integer fileID)
Returns the
DataImportController of the given file. |
Set<Integer> |
getImportControllerIds()
Returns the IDs of the input controllers
|
IntermediateStructure |
getIntermediateStructure()
Returns the
IntermediateStructure created or loaded by this
modeller. |
ProteinModeller |
getProteinModeller()
Returns the associated ProteinModeller
|
PSMModeller |
getPSMModeller()
Returns the associated PSMModeller
|
void |
importAllDataFromFile(Integer fileID)
Imports all spectrum identifications from the file to the structure
creator.
|
void |
importAllDataFromFile(Integer fileID,
String cacheScoreAccession)
Imports all spectrum identifications from the file to the structure
creator.
|
void |
importDataFromFile(Integer fileID,
List<AbstractFilter> filters)
Imports the filtered PSMs and adds them to the structure creator.
|
void |
importDataFromFile(Integer fileID,
List<AbstractFilter> filters,
String cacheScoreAccession)
Imports the filtered PSMs and adds them to the structure creator.
|
public PIAModeller()
public PIAModeller(int nrThreads, boolean oboLookup)
public PIAModeller(String pathname)
public PIAModeller(String pathname, int nrThreads, boolean oboLookup)
public void close()
public Integer addFile(String pathname)
This must be called before the intermediate structure is created.
pathname
- public Integer addPrideControllerAsInput(uk.ac.ebi.pride.utilities.data.controller.DataAccessController controller)
DataAccessController
as source for import. Does the same
as addFile(String)
for other files.controller
- public Integer addFileAndImportSpectra(String pathname, List<AbstractFilter> filters)
This must be called before the intermediate structure is created.
pathname
- public Integer addFileAndImportSpectra(String pathname, List<AbstractFilter> filters, String cacheScoreAccession)
Additionally, for the given score accession the scores will be cached for fast access, if the controller supports it.
This must be called before the intermediate structure is created.
pathname
- public void importAllDataFromFile(Integer fileID)
fileID
- public void importAllDataFromFile(Integer fileID, String cacheScoreAccession)
fileID
- public void importDataFromFile(Integer fileID, List<AbstractFilter> filters)
fileID
- public void importDataFromFile(Integer fileID, List<AbstractFilter> filters, String cacheScoreAccession)
fileID
- public IntermediateStructure buildIntermediateStructure()
PIAModeller()
,
after all files are added.public DataImportController getImportController(Integer fileID)
DataImportController
of the given file.fileID
- public Set<Integer> getImportControllerIds()
public IntermediateStructure getIntermediateStructure()
IntermediateStructure
created or loaded by this
modeller.public PSMModeller getPSMModeller()
Is initialized after the intermediate structure is created or loaded
public ProteinModeller getProteinModeller()
Is initialized after the intermediate structure is created or loaded
Copyright © 2015. All Rights Reserved.