001package org.biopax.paxtools.pattern.miner;
002
003import org.biopax.paxtools.pattern.Pattern;
004import org.biopax.paxtools.pattern.PatternBox;
005
006/**
007 * Miner for the chemical-affects-protein pattern.
008 * @author Ozgun Babur
009 */
010public class ChemicalAffectsThroughControlMiner extends AbstractSIFMiner
011{
012        /**
013         * Constructor that sets name and description.
014         */
015        public ChemicalAffectsThroughControlMiner()
016        {
017                super(SIFEnum.CHEMICAL_AFFECTS, "-through-control", "In this case, chemical is " +
018                        "controlling a reaction of which the protein is a participant.");
019        }
020
021        /**
022         * Constructs the pattern.
023         * @return pattern
024         */
025        @Override
026        public Pattern constructPattern()
027        {
028                return PatternBox.chemicalAffectsProteinThroughControl();
029        }
030
031        @Override
032        public String getSourceLabel()
033        {
034                return "controller SMR";
035        }
036
037        @Override
038        public String getTargetLabel()
039        {
040                return "affected ER";
041        }
042
043        @Override
044        public String[] getMediatorLabels()
045        {
046                return new String[]{"Control", "Interaction"};
047        }
048
049        @Override
050        public String[] getSourcePELabels()
051        {
052                return new String[]{"controller simple PE", "controller PE"};
053        }
054
055        @Override
056        public String[] getTargetPELabels()
057        {
058                return new String[]{"affected PE", "affected simple PE"};
059        }
060}