Class SIFInteraction
java.lang.Object
org.biopax.paxtools.pattern.miner.SIFInteraction
- All Implemented Interfaces:
Comparable
- Author:
- Ozgun Babur
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionSIFInteraction(String sourceID, String targetID, BioPAXElement sourceER, BioPAXElement targetER, SIFType type, Set<BioPAXElement> mediators, Set<BioPAXElement> sourcePEs, Set<BioPAXElement> targetPEs) -
Method Summary
Modifier and TypeMethodDescriptionintstatic boolean[][]convertToAdjacencyMatrix(Collection<SIFInteraction> sifInts, SIFType... type) Converts the given collection of interactions into an adjacency matrix.booleanCollects cellular location terms of source objects.Collects cellular location terms of target objects.Collects data source names (Provenance display names) of mediators.Collects comments strings of mediator objects.Collects IDs of mediators.Gets the mediator IDs in a String with a space between each ID.Collects the names of the related pathways.Collects Pathway objects that the Interactions among the mediators are members.Collects the related pathway URIs.getPublicationIDs(boolean pubmed) Collects Pubmed or PMC idsgetSortedGeneNames(Collection<SIFInteraction> sifInts, SIFType... type) Collects and sorts sourceID and targetID of the given collection of sif interactions.inthashCode()booleanhasIDs()voidmergeWith(SIFInteraction equivalent) Merges publications of the parameter equivalent sif with this one.toString()
-
Field Details
-
sourceERs
-
targetERs
-
sourcePEs
-
targetPEs
-
sourceID
-
targetID
-
type
-
mediators
-
-
Constructor Details
-
SIFInteraction
public SIFInteraction(String sourceID, String targetID, BioPAXElement sourceER, BioPAXElement targetER, SIFType type, Set<BioPAXElement> mediators, Set<BioPAXElement> sourcePEs, Set<BioPAXElement> targetPEs)
-
-
Method Details
-
hasIDs
public boolean hasIDs() -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable
-
mergeWith
Merges publications of the parameter equivalent sif with this one.- Parameters:
equivalent- the equivalent sif interaction to get its publications.
-
toString
-
getMediatorIDs
Collects IDs of mediators.- Returns:
- mediator IDs
-
getMediatorsInString
Gets the mediator IDs in a String with a space between each ID.- Returns:
- mediator IDs joined with spaces.
-
getPublicationIDs
Collects Pubmed or PMC ids- Returns:
- publication IDs
-
getPathways
Collects Pathway objects that the Interactions among the mediators are members.- Returns:
- related pathways
-
getPathwayNames
Collects the names of the related pathways.- Returns:
- pathway names
-
getPathwayUris
Collects the related pathway URIs.- Returns:
- URIs
-
getDataSources
Collects data source names (Provenance display names) of mediators.- Returns:
- related data sources
-
getCellularLocationsOfTarget
Collects cellular location terms of target objects.- Returns:
- cellular locations
-
getCellularLocationsOfSource
Collects cellular location terms of source objects.- Returns:
- cellular locations
-
getMediatorComments
Collects comments strings of mediator objects.- Returns:
- comments
-
getSortedGeneNames
Collects and sorts sourceID and targetID of the given collection of sif interactions.- Parameters:
sifInts- interactions to considertype- types of interest, all types accepted if empty- Returns:
- sorted source and target IDS
-
convertToAdjacencyMatrix
public static boolean[][] convertToAdjacencyMatrix(Collection<SIFInteraction> sifInts, SIFType... type) Converts the given collection of interactions into an adjacency matrix.- Parameters:
sifInts- interactions to considertype- types of interest, all types accepted if empty- Returns:
- the sif network as adjacency matrix
-