Exemple #1
0
        void addInteraction(int id1, int id2, string interType)
        {
            ProteinInteraction edge = new ProteinInteraction();

            edge.End1   = id1;
            edge.End2   = id2;
            edge.Length = 1.0f;
            edge.Type   = new string(interType[0], 1);
            float strength = 0;

            if (interType.Length == 0)
            {
                return;
            }
            if (interType[0] == '+')
            {
                strength = decoupleStrength;
            }
            else if (interType[0] == '-')
            {
                strength = decoupleStrength;
            }
            else if (interType[0] == 'b')
            {
                strength = decoupleStrength;
            }
            else
            {
                strength = 0;
            }
            edge.Value = strength;

            AddEdge(edge);
        }
Exemple #2
0
        void addInteraction(int id1, int id2, string interType)
        {
            ProteinInteraction edge = new ProteinInteraction();
            edge.End1 = id1;
            edge.End2 = id2;
            edge.Length = 1.0f;
            edge.Type = new string(interType[0], 1);
            float strength = 0;
            if (interType.Length == 0)
            {
                return;
            }
            if (interType[0] == '+')
            {
                strength = decoupleStrength;
            }
            else if (interType[0] == '-')
            {
                strength = decoupleStrength;
            }
            else if (interType[0] == 'b')
            {
                strength = decoupleStrength;
            }
            else
            {
                strength = 0;
            }
            edge.Value = strength;

            AddEdge(edge);
        }