Пример #1
0
 public void InitializeReadMap()
 {
     if (FqReadMap == null)
     {
         FqReadMap = HashFastq.deserializeHashmap();
     }
 }
Пример #2
0
        /// <summary>
        /// Constructs the sequencer specific read map by calling the HashFastq class to deserialize it from memory.
        /// After it is constructed the same class is used to calculate relavent quality scores for each of the nucleotide/quality
        /// pairings.
        /// </summary>
        /// <param name="sequencerType"></param>
        /// <returns></returns>
        public Dictionary <int, FqNucleotideRead> ConstructSequencerSpecificReadMap(String sequencerType)
        {
            if (FqReadMap == null)
            {
                FqReadMap = HashFastq.deserializeHashmap();
            }

            if (isMapConstructed == false)
            {
                this.SequencerType = sequencerType;
                FqReadMap          = HashFastq.calculateHashQualities(SequencerType, FqReadMap);
                isMapConstructed   = true;
            }
            return(FqReadMap);
        }