Beispiel #1
0
        public override bool Equals(object other)
        {
            if (!(other is GnomadItem otherItem))
            {
                return(false);
            }

            // Return true if the fields match:
            return(Equals(Chromosome, otherItem.Chromosome) &&
                   Start == otherItem.Start &&
                   AlternateAllele.Equals(otherItem.AlternateAllele));
        }
Beispiel #2
0
 public override bool Equals(object obj)
 {
     if (!(obj is ClinVarItem item))
     {
         return(false);
     }
     return(Chromosome == item.Chromosome &&
            Start == item.Start &&
            Id.Equals(item.Id) &&
            ReferenceAllele.Equals(item.ReferenceAllele) &&
            AlternateAllele.Equals(item.AlternateAllele));
 }
Beispiel #3
0
        public override bool Equals(object other)
        {
            if (!(other is CustomItem otherItem))
            {
                return(false);
            }

            return(Chromosome.Equals(otherItem.Chromosome) &&
                   Start.Equals(otherItem.Start) &&
                   ReferenceAllele.Equals(otherItem.ReferenceAllele) &&
                   AlternateAllele.Equals(otherItem.AlternateAllele) &&
                   AnnotationType.Equals(otherItem.AnnotationType));
        }
Beispiel #4
0
        public override bool Equals(object other)
        {
            // If parameter is null return false.

            // if other cannot be cast into OneKGenItem, return false
            if (!(other is EvsItem otherItem))
            {
                return(false);
            }

            // Return true if the fields match:
            return(Equals(Chromosome, otherItem.Chromosome) &&
                   Start == otherItem.Start &&
                   AlternateAllele.Equals(otherItem.AlternateAllele)
                   );
        }
Beispiel #5
0
        public override bool Equals(object other)
        {
            // If parameter is null return false.

            if (!(other is DbSnpItem otherItem))
            {
                return(false);
            }

            // Return true if the fields match:
            return(Equals(Chromosome, otherItem.Chromosome) &&
                   Start == otherItem.Start &&
                   RsId == otherItem.RsId &&
                   string.Equals(ReferenceAllele, otherItem.ReferenceAllele) &&
                   AlternateAllele.Equals(otherItem.AlternateAllele));
        }