Пример #1
0
        public char GetResidueBefore(int index, IProteinSet proteinSet)
        {
            int pos = proteinOffsets[index] - 1;

            if (pos < 0)
            {
                return(' ');
            }
            return(proteinSet.Get(proteinIndices[index]).Sequence[pos]);
        }
Пример #2
0
        public char GetResidueAfter(int index, IProteinSet proteinSet)
        {
            int    pos = proteinOffsets[index] + length;
            string seq = proteinSet.Get(proteinIndices[index]).Sequence;

            if (pos >= seq.Length)
            {
                return(' ');
            }
            return(seq[pos]);
        }
Пример #3
0
        public string GetSequence(IProteinSet proteinSet)
        {
            string seq = proteinSet.Get(proteinIndices[0]).Sequence;

            return(seq.Substring(proteinOffsets[0], length));
        }