Esempio n. 1
0
        // gets total depth of a kMer that *may* be in the table
        public int GetDepthSum(ulong mer)
        {
            ulong rcMer = kMers.ReverseComplement(mer, merSize);

            if (rcMer < mer)
            {
                mer = rcMer;
            }

            ulong countPair = 0;

            kMersTable.TryGetValue(mer, out countPair);
            int plusCount = (int)(countPair >> 32);
            int rcCount   = (int)(countPair & 0xFFFFFFFF);

            return(plusCount + rcCount);
        }
Esempio n. 2
0
        public int GetPairDepth(ulong pair)
        {
            ulong rcPair = kMers.ReverseComplement(pair, kMerPairs.pairSize);

            if (rcPair < pair)
            {
                pair = rcPair;
            }

            int pairDepth = 0;

            pairsTable.TryGetValue(pair, out pairDepth);

            return(pairDepth);
        }