@Component public class WikiPathwaysService extends Object
| Constructor and Description |
|---|
WikiPathwaysService(WikiPathwaysPortType wikiPathwaysProxy)
Creates a new WikiPathwaysService.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Pathway> |
getAllPathways(String species)
Retrieves all pathways for a species.
|
String |
getColoredPathwayImage(String pathwayId,
Map<String,Impact> impactPerGraphId)
Retrieves a colored pathway image
|
Collection<Pathway> |
getFilteredPathways(String searchTerm,
String species)
Searches pathways.
|
String |
getPathwayGPML(String pathwayId)
Retrieves the GPML of the current version of a pathway
|
Collection<Pathway> |
getPathwaysForGene(String gene,
String species)
Retrieves pathways according to gene, filtered for a certain species.
|
String |
getUncoloredPathwayImage(String pathwayId)
Retrieves an uncolored pathway image
|
@Autowired public WikiPathwaysService(WikiPathwaysPortType wikiPathwaysProxy)
wikiPathwaysProxy - WikiPathwaysPortType proxy for the REST api that the caches use to load their data frompublic Collection<Pathway> getFilteredPathways(String searchTerm, String species) throws RemoteException
searchTerm - string to search forRemoteExceptionpublic String getPathwayGPML(String pathwayId) throws RemoteException
pathwayId - ID of the pathway in WikiPathwaysConverterExceptionRemoteExceptionpublic String getColoredPathwayImage(String pathwayId, Map<String,Impact> impactPerGraphId) throws ExecutionException
pathwayId - ID of the pathway from WikiPathwayshighestImpactPerGraphId - graphIds - List containing graphIds to colorcolors - List of colors in the same order of the graphIdsExecutionException - if loading of the cache failspublic String getUncoloredPathwayImage(String pathwayId) throws ExecutionException
pathwayId - Id of the pathway from WikiPathwaysExecutionException - if loading of the cache failspublic Collection<Pathway> getPathwaysForGene(String gene, String species) throws ExecutionException
gene - HGNC gene namespecies - String with species name, e.g. Homo sapiensPathwaysExecutionException - if loading of the cache failspublic Collection<Pathway> getAllPathways(String species) throws ExecutionException
species - String with species name, e.g. Homo sapiensExecutionException - if loading of the cache failsCopyright © 2016. All Rights Reserved.