Interface PhenotypeAssociationManagerService
-
- All Known Implementing Classes:
PhenotypeAssociationManagerServiceImpl
@Deprecated public interface PhenotypeAssociationManagerService
Deprecated.High Level Service used to add Candidate Gene Management System capabilities. (Most of these methods are not secured, but the underlying calls are)- Author:
- paul
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BibliographicReferenceValueObject
findBibliographicReference(String pubMedId)
Deprecated.Find all phenotypes associated to a pubmedIDCollection<GeneEvidenceValueObject>
findCandidateGenes(Collection<String> phenotypesValuesUris, Taxon taxon)
Deprecated.Given an set of phenotypes returns the genes that have all those phenotypes or children phenotypesSet<GeneEvidenceValueObject>
findCandidateGenes(EvidenceFilter evidenceFilter, Set<String> phenotypesValuesUri)
Deprecated.Given set of phenotypes returns the genes that have all those phenotypes or children phenotypesMap<String,Collection<? extends GeneValueObject>>
findCandidateGenesForEach(Set<String> phenotypeUris, Taxon taxon)
Deprecated.Collection<EvidenceValueObject<? extends PhenotypeAssociation>>
findEvidenceByFilters(Long taxonId, int limit, String userName)
Deprecated.Return evidence satisfying the specified filters.Collection<EvidenceValueObject<? extends PhenotypeAssociation>>
findEvidenceByGeneId(Long geneId)
Deprecated.Return all evidence for a specific gene idCollection<EvidenceValueObject<? extends PhenotypeAssociation>>
findEvidenceByGeneId(Long geneId, Set<String> phenotypesValuesUri, EvidenceFilter evidenceFilter)
Deprecated.Return all evidence for a specific gene id with evidence flagged, indicating more informationCollection<EvidenceValueObject<? extends PhenotypeAssociation>>
findEvidenceByGeneNCBI(Integer geneNCBI)
Deprecated.Return all evidence for a specific gene NCBICollection<String>
findEvidenceOwners()
Deprecated.Collection<CharacteristicValueObject>
findExperimentCategory()
Deprecated.Find category term that were used in the database, used to annotated ExperimentsCollection<CharacteristicValueObject>
findExperimentOntologyValue(String givenQueryString)
Deprecated.for a given search string look in the database and Ontology for matchesCollection<ExternalDatabaseValueObject>
findExternalDatabasesWithEvidence()
Deprecated.Gets all External Databases that are used with evidenceMap<GeneValueObject,OntologyTerm>
findGenesForPhenotype(String phenotype, Long taxonId, boolean includeIEA)
Deprecated.List<GeneEvidenceValueObject>
findGenesWithEvidence(String query, Long taxonId)
Deprecated.Does a Gene search (by name or symbol) for a query and return only Genes with evidenceSet<DumpsValueObject>
helpFindAllDumps()
Deprecated.Get information about external data sources from Phenocarta, including URLs and timestamps of the most recent update dates/times.EvidenceValueObject<? extends PhenotypeAssociation>
load(Long id)
Deprecated.Load an evidenceCollection<PhenotypeValueObject>
loadAllNeurocartaPhenotypes()
Deprecated.load all the valueUri and value of phenotype present in NeurocartaCollection<TreeCharacteristicValueObject>
loadAllPhenotypesAsTree(EvidenceFilter evidenceFilter)
Deprecated.Same as loadAllPhenotypesByTree(EvidenceFilter), but does not flatten out the tree.Collection<SimpleTreeValueObject>
loadAllPhenotypesByTree(EvidenceFilter evidenceFilter)
Deprecated.Loads all phenotypes in the database and counts their occurrence using the database It builds the tree using parents of terms, and will return 3 trees representing Disease, HP and MPSet<EvidenceValueObject<? extends PhenotypeAssociation>>
loadEvidenceWithExternalDatabaseName(String externalDatabaseName, int limit, int start)
Deprecated.use if we want to reimport data from a specific external DatabaseDiffExpressionEvidenceValueObject
loadEvidenceWithGeneDifferentialExpressionMetaAnalysis(Long geneDifferentialExpressionMetaAnalysisId)
Deprecated.returns an DifferentialExpressionEvidence for a geneDifferentialExpressionMetaAnalysisId if one exists (used to find the threshold and phenotypes for a GeneDifferentialExpressionMetaAnalysis)Collection<EvidenceValueObject<? extends PhenotypeAssociation>>
loadEvidenceWithoutExternalDatabaseName()
Deprecated.Collection<ExternalDatabaseStatisticsValueObject>
loadNeurocartaStatistics()
Deprecated.find statistics on evidence used in neurocartaValidateEvidenceValueObject
makeDifferentialExpressionEvidencesFromDiffExpressionMetaAnalysis(Long geneDifferentialExpressionMetaAnalysisId, SortedSet<CharacteristicValueObject> phenotypes, Double thresholdChosen)
Deprecated.creates the DifferentialExpressionEvidences using an DiffExpressionMetaAnalysisValidateEvidenceValueObject
makeEvidence(EvidenceValueObject<? extends PhenotypeAssociation> evidence)
Deprecated.Links an Evidence to a GeneValidateEvidenceValueObject
remove(Long id)
Deprecated.Removes an evidenceValidateEvidenceValueObject
removeAllEvidenceFromMetaAnalysis(Long geneDifferentialExpressionMetaAnalysisId)
Deprecated.Removes all the evidence that came from a specific metaAnalysisCollection<CharacteristicValueObject>
searchInDatabaseForPhenotype(String searchQuery, int maxResults)
Deprecated.For a given search string find all Ontology terms related, and then count their gene occurrence by taxon, including ontology children termsCollection<CharacteristicValueObject>
searchOntologyForPhenotypes(String searchQuery, Long geneId)
Deprecated.Giving a phenotype searchQuery, returns a selection choice to the userValidateEvidenceValueObject
update(EvidenceValueObject<? extends PhenotypeAssociation> evidenceValueObject)
Deprecated.Modify an existing evidenceValidateEvidenceValueObject
validateEvidence(EvidenceValueObject<PhenotypeAssociation> evidence)
Deprecated.Validate an Evidence before we create itvoid
writeAllEvidenceToFile()
Deprecated.Creates a dump of all evidence in the database that can be downloaded on the client, this is run once per month by Quartz
-
-
-
Method Detail
-
findBibliographicReference
BibliographicReferenceValueObject findBibliographicReference(String pubMedId)
Deprecated.Find all phenotypes associated to a pubmedID- Parameters:
pubMedId
- pubmed id- Returns:
- BibliographicReferenceValueObject
-
findCandidateGenes
Collection<GeneEvidenceValueObject> findCandidateGenes(Collection<String> phenotypesValuesUris, Taxon taxon)
Deprecated.Given an set of phenotypes returns the genes that have all those phenotypes or children phenotypes- Parameters:
phenotypesValuesUris
- the roots phenotype of the querytaxon
- the name of the taxon (optional)- Returns:
- A map or uris to collections of the genes found
-
findCandidateGenes
Set<GeneEvidenceValueObject> findCandidateGenes(EvidenceFilter evidenceFilter, Set<String> phenotypesValuesUri)
Deprecated.Given set of phenotypes returns the genes that have all those phenotypes or children phenotypes- Parameters:
evidenceFilter
- can specify a taxon and to show modifiable evidence (optional)phenotypesValuesUri
- the roots phenotype of the query- Returns:
- A collection of the genes found
-
findCandidateGenesForEach
Map<String,Collection<? extends GeneValueObject>> findCandidateGenesForEach(Set<String> phenotypeUris, Taxon taxon)
Deprecated.- Parameters:
taxon
- taxonphenotypeUris
- URIs- Returns:
- For each phenotypeUri, find the genes that are associated with it. Different from findCandidateGenes which finds genes associated with all the phenotypes together.
-
findEvidenceByFilters
Collection<EvidenceValueObject<? extends PhenotypeAssociation>> findEvidenceByFilters(Long taxonId, int limit, String userName)
Deprecated.Return evidence satisfying the specified filters. If the current user has not logged in, empty container is returned.- Parameters:
taxonId
- taxon idlimit
- number of evidence value objects to returnuserName
- user name- Returns:
- evidence satisfying the specified filters
-
findEvidenceByGeneId
Collection<EvidenceValueObject<? extends PhenotypeAssociation>> findEvidenceByGeneId(Long geneId)
Deprecated.Return all evidence for a specific gene id- Parameters:
geneId
- The Evidence id- Returns:
- The Gene we are interested in
-
findEvidenceByGeneId
Collection<EvidenceValueObject<? extends PhenotypeAssociation>> findEvidenceByGeneId(Long geneId, Set<String> phenotypesValuesUri, EvidenceFilter evidenceFilter)
Deprecated.Return all evidence for a specific gene id with evidence flagged, indicating more information- Parameters:
geneId
- The Evidence idphenotypesValuesUri
- the chosen phenotypesevidenceFilter
- can specify a taxon and to show modifiable evidence (optional)- Returns:
- The Gene we are interested in
-
findEvidenceByGeneNCBI
Collection<EvidenceValueObject<? extends PhenotypeAssociation>> findEvidenceByGeneNCBI(Integer geneNCBI)
Deprecated.Return all evidence for a specific gene NCBI- Parameters:
geneNCBI
- The Evidence id- Returns:
- The Gene we are interested in
-
findEvidenceOwners
Collection<String> findEvidenceOwners()
Deprecated.- Returns:
- the list of the owners that have evidence in the system
-
findExperimentCategory
Collection<CharacteristicValueObject> findExperimentCategory()
Deprecated.Find category term that were used in the database, used to annotated Experiments- Returns:
- the terms found
-
findExperimentOntologyValue
Collection<CharacteristicValueObject> findExperimentOntologyValue(String givenQueryString) throws SearchException
Deprecated.for a given search string look in the database and Ontology for matches- Parameters:
givenQueryString
- the search query- Returns:
- the terms found
- Throws:
SearchException
-
findExternalDatabasesWithEvidence
Collection<ExternalDatabaseValueObject> findExternalDatabasesWithEvidence()
Deprecated.Gets all External Databases that are used with evidence- Returns:
- the externalDatabases
-
findGenesForPhenotype
Map<GeneValueObject,OntologyTerm> findGenesForPhenotype(String phenotype, Long taxonId, boolean includeIEA)
Deprecated.
-
findGenesWithEvidence
List<GeneEvidenceValueObject> findGenesWithEvidence(String query, Long taxonId) throws SearchException
Deprecated.Does a Gene search (by name or symbol) for a query and return only Genes with evidence- Parameters:
query
- querytaxonId
- can be null to not constrain by taxon- Returns:
- list of Genes
- Throws:
SearchException
-
load
EvidenceValueObject<? extends PhenotypeAssociation> load(Long id)
Deprecated.Load an evidence- Parameters:
id
- The Evidence database id- Returns:
- phenotype associations
-
loadAllNeurocartaPhenotypes
Collection<PhenotypeValueObject> loadAllNeurocartaPhenotypes()
Deprecated.load all the valueUri and value of phenotype present in Neurocarta- Returns:
- the valueUri of the phenotypes
-
loadAllPhenotypesByTree
Collection<SimpleTreeValueObject> loadAllPhenotypesByTree(EvidenceFilter evidenceFilter)
Deprecated.Loads all phenotypes in the database and counts their occurrence using the database It builds the tree using parents of terms, and will return 3 trees representing Disease, HP and MP- Parameters:
evidenceFilter
- filter- Returns:
- A collection of the phenotypes with the gene occurrence
-
loadAllPhenotypesAsTree
Collection<TreeCharacteristicValueObject> loadAllPhenotypesAsTree(EvidenceFilter evidenceFilter)
Deprecated.Same as loadAllPhenotypesByTree(EvidenceFilter), but does not flatten out the tree.- Parameters:
evidenceFilter
- evidence filter- Returns:
- a tree set of phenotypes
-
helpFindAllDumps
Set<DumpsValueObject> helpFindAllDumps()
Deprecated.Get information about external data sources from Phenocarta, including URLs and timestamps of the most recent update dates/times.- Returns:
- A collection of objects with information about external data sources in Phenocarta
-
loadEvidenceWithExternalDatabaseName
Set<EvidenceValueObject<? extends PhenotypeAssociation>> loadEvidenceWithExternalDatabaseName(String externalDatabaseName, int limit, int start)
Deprecated.use if we want to reimport data from a specific external Database- Parameters:
limit
- limitstart
- offsetexternalDatabaseName
- database name- Returns:
- evidence VOs
-
loadEvidenceWithGeneDifferentialExpressionMetaAnalysis
DiffExpressionEvidenceValueObject loadEvidenceWithGeneDifferentialExpressionMetaAnalysis(Long geneDifferentialExpressionMetaAnalysisId)
Deprecated.returns an DifferentialExpressionEvidence for a geneDifferentialExpressionMetaAnalysisId if one exists (used to find the threshold and phenotypes for a GeneDifferentialExpressionMetaAnalysis)- Parameters:
geneDifferentialExpressionMetaAnalysisId
- id of the GeneDifferentialExpressionMetaAnalysis- Returns:
- DifferentialExpressionEvidence if an differentialExpressionEvidence exists for that id returns it
-
loadEvidenceWithoutExternalDatabaseName
Collection<EvidenceValueObject<? extends PhenotypeAssociation>> loadEvidenceWithoutExternalDatabaseName()
Deprecated.- Returns:
- find all evidence that doesn't come from an external source
-
loadNeurocartaStatistics
Collection<ExternalDatabaseStatisticsValueObject> loadNeurocartaStatistics()
Deprecated.find statistics on evidence used in neurocarta- Returns:
- statistics for each external database
-
makeDifferentialExpressionEvidencesFromDiffExpressionMetaAnalysis
ValidateEvidenceValueObject makeDifferentialExpressionEvidencesFromDiffExpressionMetaAnalysis(Long geneDifferentialExpressionMetaAnalysisId, SortedSet<CharacteristicValueObject> phenotypes, Double thresholdChosen)
Deprecated.creates the DifferentialExpressionEvidences using an DiffExpressionMetaAnalysis- Parameters:
geneDifferentialExpressionMetaAnalysisId
- id of the DiffExpressionMetaAnalysisphenotypes
- phenotypes chosenthresholdChosen
- threshold chosen to keep certain results- Returns:
- ValidateEvidenceValueObject flags of information to show user messages
-
makeEvidence
ValidateEvidenceValueObject makeEvidence(EvidenceValueObject<? extends PhenotypeAssociation> evidence)
Deprecated.Links an Evidence to a Gene- Parameters:
evidence
- The evidence- Returns:
- Status of the operation
-
remove
ValidateEvidenceValueObject remove(Long id)
Deprecated.Removes an evidence- Parameters:
id
- The Evidence database id- Returns:
- validate evidence VO
-
removeAllEvidenceFromMetaAnalysis
ValidateEvidenceValueObject removeAllEvidenceFromMetaAnalysis(Long geneDifferentialExpressionMetaAnalysisId)
Deprecated.Removes all the evidence that came from a specific metaAnalysis- Parameters:
geneDifferentialExpressionMetaAnalysisId
- the geneDifferentialExpressionMetaAnalysis Id- Returns:
- ValidateEvidenceValueObject flags of information to show user messages
-
searchInDatabaseForPhenotype
Collection<CharacteristicValueObject> searchInDatabaseForPhenotype(String searchQuery, int maxResults) throws SearchException
Deprecated.For a given search string find all Ontology terms related, and then count their gene occurrence by taxon, including ontology children terms- Parameters:
searchQuery
- the query search that was type by the usermaxResults
- maximum number of results to return or -1 to return all- Returns:
- the terms found in the database with taxon and gene occurrence
- Throws:
SearchException
-
searchOntologyForPhenotypes
Collection<CharacteristicValueObject> searchOntologyForPhenotypes(String searchQuery, Long geneId) throws SearchException
Deprecated.Giving a phenotype searchQuery, returns a selection choice to the user- Parameters:
searchQuery
- query typed by the usergeneId
- the id of the chosen gene- Returns:
- list of choices returned
- Throws:
SearchException
-
update
ValidateEvidenceValueObject update(EvidenceValueObject<? extends PhenotypeAssociation> evidenceValueObject)
Deprecated.Modify an existing evidence- Parameters:
evidenceValueObject
- the evidence with modified fields- Returns:
- Status of the operation
-
validateEvidence
ValidateEvidenceValueObject validateEvidence(EvidenceValueObject<PhenotypeAssociation> evidence)
Deprecated.Validate an Evidence before we create it- Parameters:
evidence
- The evidence- Returns:
- ValidateEvidenceValueObject flags of information to show user messages
-
writeAllEvidenceToFile
@Secured("GROUP_AGENT") void writeAllEvidenceToFile() throws IOException
Deprecated.Creates a dump of all evidence in the database that can be downloaded on the client, this is run once per month by Quartz- Throws:
IOException
- when there are IO problems
-
-