Пример #1
0
        //Method that sets the var codon and the ref codon of the mutation by using _chrom, _position and offset.
        private void setVarRefCodons(int offset)
        {
            if (offset != -1)
            {
                _refCodon = UcscWebServices.getCodonAt(_chrom, _position, offset);

                char[] temp = _refCodon.ToCharArray();
                temp[offset] = _var;
                _varCodon    = new string(temp);

                if (_gene.Strand.Equals('-'))
                {
                    _refCodon = GeneralMethods.reverseString(OppositeCodon(_refCodon));
                    _varCodon = GeneralMethods.reverseString(OppositeCodon(_varCodon));
                }
            }
            else
            {
                _refCodon = "No Coding";
                _varCodon = "No Coding";
            }
        }