/// <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); }
/// <summary> /// Calculates the sequencer specific quality scores for each component /// </summary> public override void calculateMapQualities() { Fq_FILE_MAP = HashFastq.calculateHashQualities(sequencerType, Fq_FILE_MAP); }