Class UniprotProteinFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.uniprot.UniprotProteinFetcher
-
- All Implemented Interfaces:
InteractorFetcher<Protein>
,ProteinFetcher
public class UniprotProteinFetcher extends Object implements ProteinFetcher
Created with IntelliJ IDEA.- Since:
- 14/05/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UniprotProteinFetcher()
Constructor for UniprotProteinFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Protein>
fetchByIdentifier(String identifier)
Takes a string identifier and returns the interactors which match.Collection<Protein>
fetchByIdentifiers(Collection<String> identifiers)
Takes a collection of string identifiers and returns the interactors which match.Map<uk.ac.ebi.kraken.interfaces.uniprot.DatabaseType,CvTerm>
getSelectedDatabases()
Getter for the fieldselectedDatabases
.void
setSelectedDatabases(Map<uk.ac.ebi.kraken.interfaces.uniprot.DatabaseType,CvTerm> selectedDatabases)
Setter for the fieldselectedDatabases
.
-
-
-
Method Detail
-
getSelectedDatabases
public Map<uk.ac.ebi.kraken.interfaces.uniprot.DatabaseType,CvTerm> getSelectedDatabases()
Getter for the field
selectedDatabases
.- Returns:
- a
Map
object.
-
setSelectedDatabases
public void setSelectedDatabases(Map<uk.ac.ebi.kraken.interfaces.uniprot.DatabaseType,CvTerm> selectedDatabases)
Setter for the field
selectedDatabases
.- Parameters:
selectedDatabases
- aMap
object.
-
fetchByIdentifier
public Collection<Protein> fetchByIdentifier(String identifier) throws BridgeFailedException
Takes a string identifier and returns the interactors which match. Returns an empty collection of no entries are returnedTakes the various type of uniprot protein identifier and uses the uniprotJAPI to retrieve the matching proteins.
- Specified by:
fetchByIdentifier
in interfaceInteractorFetcher<Protein>
- Parameters:
identifier
- The identifier to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException
- A problem has been encountered when contacting the service
-
fetchByIdentifiers
public Collection<Protein> fetchByIdentifiers(Collection<String> identifiers) throws BridgeFailedException
Takes a collection of string identifiers and returns the interactors which match. Returns an empty collection of no entries are returned.Takes the various type of uniprot protein identifier and uses the uniprotJAPI to retrieve the matching proteins.
- Specified by:
fetchByIdentifiers
in interfaceInteractorFetcher<Protein>
- Parameters:
identifiers
- The identifiers to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException
- if any.
-
-