public class PrideImportController extends Object implements DataImportController
Modifier and Type | Class and Description |
---|---|
static class |
PrideImportController.InputFileType
Defines the input file type
|
Constructor and Description |
---|
PrideImportController(uk.ac.ebi.pride.utilities.data.controller.DataAccessController controller,
IntermediateStructureCreator structCreator)
Creates an import controller for the given
DataAccessController |
PrideImportController(File inputFile,
IntermediateStructureCreator structCreator)
Creates an import controller guessing the file type
|
PrideImportController(File inputFile,
PrideImportController.InputFileType fileType,
IntermediateStructureCreator structCreator)
Creates an import controller for the given file type.
|
Modifier and Type | Method and Description |
---|---|
String |
addProteinsSpectrumIdentificationsToStructCreator(Comparable proteinId,
List<AbstractFilter> filters,
String cacheScoreAccession)
Adds the spectrum identifications of a single protein to the structure
creator.
|
void |
addSpectrumIdentificationsToStructCreator(List<AbstractFilter> filters)
Adds the filtered PSMs to the
IntermediateStructureCreator . |
void |
addSpectrumIdentificationsToStructCreator(List<AbstractFilter> filters,
String cacheScoreAccession)
Adds the filtered PSMs to the
IntermediateStructureCreator . |
void |
close()
Some controllers should be closed after usage.
|
uk.ac.ebi.pride.utilities.data.controller.DataAccessController |
getController()
Returns the actual controller.
|
String |
getID()
Returns the ID of the controller.
|
String |
getInputFileName()
Returns the file name which is handled by this controller
|
public PrideImportController(File inputFile, PrideImportController.InputFileType fileType, IntermediateStructureCreator structCreator)
inputFile
- fileType
- public PrideImportController(File inputFile, IntermediateStructureCreator structCreator)
inputFile
- fileType
- public PrideImportController(uk.ac.ebi.pride.utilities.data.controller.DataAccessController controller, IntermediateStructureCreator structCreator)
DataAccessController
inputFile
- fileType
- public String getID()
DataImportController
getID
in interface DataImportController
public String getInputFileName()
DataImportController
getInputFileName
in interface DataImportController
public uk.ac.ebi.pride.utilities.data.controller.DataAccessController getController()
public void close()
DataImportController
close
in interface DataImportController
public void addSpectrumIdentificationsToStructCreator(List<AbstractFilter> filters)
DataImportController
IntermediateStructureCreator
.
Filtering is ok, if the used inference methods are not interfered by it.addSpectrumIdentificationsToStructCreator
in interface DataImportController
public void addSpectrumIdentificationsToStructCreator(List<AbstractFilter> filters, String cacheScoreAccession)
DataImportController
IntermediateStructureCreator
.
Filtering is ok, if the used inference methods are not interfered by it.
If the controller supports caching of scores, the score with the given accession will be cached for fast access, which might require slightly more memory.
addSpectrumIdentificationsToStructCreator
in interface DataImportController
public String addProteinsSpectrumIdentificationsToStructCreator(Comparable proteinId, List<AbstractFilter> filters, String cacheScoreAccession)
proteinId
- structCreator
- Copyright © 2015. All Rights Reserved.