Ejemplo n.º 1
0
 /// <summary>
 /// For longer sequence variations, where a range of sequence is replaced. Point mutations should be specified with the same begin and end positions.
 /// </summary>
 /// <param name="oneBasedBeginPosition"></param>
 /// <param name="oneBasedEndPosition"></param>
 /// <param name="originalSequence"></param>
 /// <param name="variantSequence"></param>
 /// <param name="oneBasedModifications"></param>
 public SequenceVariation(int oneBasedBeginPosition, int oneBasedEndPosition, string originalSequence, string variantSequence, string description, Dictionary <int, List <Modification> > oneBasedModifications = null)
 {
     OneBasedBeginPosition = oneBasedBeginPosition;
     OneBasedEndPosition   = oneBasedEndPosition;
     OriginalSequence      = originalSequence ?? "";
     VariantSequence       = variantSequence ?? "";
     Description           = new SequenceVariantDescription(description);
     OneBasedModifications = oneBasedModifications ?? new Dictionary <int, List <Modification> >();
 }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            SequenceVariantDescription s = obj as SequenceVariantDescription;

            return(s != null && s.Description == Description);
        }