private void setBasecalls ( ) { baseCalls = new int [ seqLength ] ; byte [ ] qq = new byte [ seqLength * 2 ] ; getSubArray ( qq , PLOC ) ; DataInputStream dis = new DataInputStream ( new ByteArrayInputStream ( qq ) ) ; for ( int i = 0 ; i <= seqLength - 1 ; ++ i ) { try { baseCalls [ i ] = ( int ) dis . readShort ( ) ; } catch ( IOException e ) //This shouldn't happen. If it does something must be seriously wrong. { throw new IllegalStateException ( "Unexpected IOException encountered while manipulating internal streams." ) ; } } }
Fetch the basecalls from the trace data .