Class DirectedRelationMiner
java.lang.Object
org.biopax.paxtools.pattern.miner.MinerAdapter
org.biopax.paxtools.pattern.miner.DirectedRelationMiner
- All Implemented Interfaces:
Miner
Miner for the directed relations between proteins.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.miner.MinerAdapter
blacklist, description, idFetcher, idMap, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs the pattern.Sets header of the output.String[]If a SIF miner wants to tell which essential BioPAX elements mediated this relation, then they need to override this method and pass the labels of elements.voidwriteResult(Map<BioPAXElement, List<Match>> matches, OutputStream out) Writes the result as "A B", where A and B are gene symbols, and whitespace is tab.Methods inherited from class org.biopax.paxtools.pattern.miner.MinerAdapter
concat, createSIFInteraction, fetchIDs, getCellularLocations, getChain, getCompoundName, getDeltaCompartments, getDeltaModifications, getDescription, getGeneSymbol, getGeneSymbol, getIdentifiers, getIdMap, getModifications, getModifications, getModificationTerm, getName, getPattern, getPositionInString, getPositionStart, getRelationType, getSourcePELabels, getTargetPELabels, getUniprotNameForHuman, getUniprotNameForHuman, getValue, isInhibition, labeledInactive, removeCommon, setBlacklist, setDescription, setIDFetcher, setIdMap, setName, sign, sign, toString, toStringSet, writeResultAsSIF, writeResultDetailed, writeSIFsUsingSIFFramework
-
Constructor Details
-
DirectedRelationMiner
public DirectedRelationMiner()Constructor that sets name and description.
-
-
Method Details
-
constructPattern
Constructs the pattern.- Specified by:
constructPatternin classMinerAdapter- Returns:
- pattern
-
writeResult
public void writeResult(Map<BioPAXElement, List<Match>> matches, OutputStream out) throws IOExceptionWrites the result as "A B", where A and B are gene symbols, and whitespace is tab.- Parameters:
matches- pattern search resultout- output stream- Throws:
IOException- when there's a problem writing to the output stream
-
getHeader
Sets header of the output.- Overrides:
getHeaderin classMinerAdapter- Returns:
- header
-
getSourceLabel
-
getTargetLabel
-
getMediatorLabels
Description copied from class:MinerAdapterIf a SIF miner wants to tell which essential BioPAX elements mediated this relation, then they need to override this method and pass the labels of elements.- Overrides:
getMediatorLabelsin classMinerAdapter- Returns:
- labels of elements to collect publication refs
-