// constructor public MapperUnit(ushort referenceIndex, int start, int end, MapperUnitType id) : base(referenceIndex, start, end) { ID = id; _hashCode = End.GetHashCode() ^ ID.GetHashCode() ^ ReferenceIndex.GetHashCode() ^ Start.GetHashCode(); }
private static MutableTranscriptRegion GetCdnaMap(int fromStart, int fromEnd, MapperUnitType fromType, int toStart, int toEnd) { return(fromType == MapperUnitType.Genomic ? new MutableTranscriptRegion(TranscriptRegionType.Exon, 0, fromStart, fromEnd, toStart, toEnd) : new MutableTranscriptRegion(TranscriptRegionType.Exon, 0, toStart, toEnd, fromStart, fromEnd)); }