Example #1
0
        public QuantEntry(string fileLocation, string uniqueHeader, string uniqueHeader2, Dictionary <string, string> uniqueGroupNameToGroupString)
        {
            SampleValues                       = new Dictionary <string, double>();
            NormalizedSampleValues             = new Dictionary <string, double>();
            MeanNormalizedSampleValues         = new Dictionary <string, double>();
            Log2NormalizedSampleValues         = new Dictionary <string, double>();
            HeadersToPrintDict                 = new Dictionary <string, string>();
            CombinedMeanNormalizedSampleValues = new Dictionary <string, double>();
            CombinedLog2NormalizedSampleValues = new Dictionary <string, double>();
            CombinedHeadersToPrintSampleValues = new Dictionary <string, List <string> >();
            AnnotationEntries                  = new Dictionary <AnnotationType, List <AnnotationEntry> >();
            UniprotIDList                      = new List <string>();
            UniprotStringList                  = new List <string>();
            GeneNameList                       = new List <string>();
            MeanNormValuesByGroup              = new Dictionary <string, List <double> >();
            Log2IntValuesByGroup               = new Dictionary <string, List <double> >();
            ComparisonToSignificanceDict       = new Dictionary <string, bool>();
            ComparisonToPValue                 = new Dictionary <string, double>();
            ComparisonToQValue                 = new Dictionary <string, double>();
            ComparisonToPrintAverage           = new Dictionary <string, double>();

            UniqueHeaderToGroupString = uniqueGroupNameToGroupString;
            UniqueID     = uniqueHeader + uniqueHeader2;
            UniqueIDHash = UniqueID.GetHashCode();

            FileLocation = fileLocation;
        }
Example #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (UniqueID != 0UL)
        {
            hash ^= UniqueID.GetHashCode();
        }
        if (From != 0)
        {
            hash ^= From.GetHashCode();
        }
        if (Index != 0)
        {
            hash ^= Index.GetHashCode();
        }
        if (Total != 0)
        {
            hash ^= Total.GetHashCode();
        }
        if (Buffer.Length != 0)
        {
            hash ^= Buffer.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Example #3
0
 /// <summary>
 /// Returns the hash code for this Card.
 /// </summary>
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + Value.GetHashCode();
         hash = hash * 23 + UniqueID.GetHashCode();
         return(hash);
     }
 }
Example #4
0
 public override int GetHashCode()
 {
     return(UniqueID.GetHashCode());
 }
Example #5
0
 public override int GetHashCode()
 {
     return(UniqueID != null?UniqueID.GetHashCode() : 0);
 }
 public override int GetHashCode() => DocumentGUID.GetHashCode() ^ UniqueID.GetHashCode();
Example #7
0
 public override int GetHashCode() => UniqueID.GetHashCode();