private ByteBuffer removeChar(Sequence sequenceObj)
	{

		byte[] sequenceByte = sequenceObj.getSequenceByte();
		int beginPosition = 0;
		int endPosition = (int) sequenceObj.getLength();
		if (sequenceByte[0] == 'n')
		{
			for (byte base : sequenceByte)
			{
				if ('n' == (char) base)
				{
					beginPosition++;
					beginDelSequenceStr+=(char)base;
				}
				else
				{
					break;
				}
			}
			
			if (beginPosition == endPosition)
			{
				return ByteBuffer.wrap(new byte[0]);
			}
		}
		if (sequenceByte[endPosition - 1] == 'n')
		{

			for (int i = endPosition - 1; i > 0; i--)
			{
				if ('n' == sequenceByte[i])
				{
					endPosition--;
				}
				else
				{
					break;
				}
			}
		}

		int length = (int) (endPosition - beginPosition);
		int offset = beginPosition;
		byte[] strippedSequence = new byte[length];
		System.arraycopy(sequenceObj.getSequenceByte(), offset, strippedSequence, 0, length);
		return ByteBuffer.wrap(strippedSequence, 0, strippedSequence.length);

	}
private ByteBuffer removeChar ( Sequence sequenceObj ) { byte [ ] sequenceByte = sequenceObj . getSequenceByte ( ) ; int beginPosition = 0 ; int endPosition = ( int ) sequenceObj . getLength ( ) ; if ( sequenceByte [ 0 ] == 'n' ) { for ( byte base : sequenceByte ) { if ( 'n' == ( char ) base ) { beginPosition ++ ; beginDelSequenceStr += ( char ) base ; } else { break ; } } if ( beginPosition == endPosition ) { return ByteBuffer . wrap ( new byte [ 0 ] ) ; } } if ( sequenceByte [ endPosition - 1 ] == 'n' ) { for ( int i = endPosition - 1 ; i > 0 ; i -- ) { if ( 'n' == sequenceByte [ i ] ) { endPosition -- ; } else { break ; } } } int length = ( int ) ( endPosition - beginPosition ) ; int offset = beginPosition ; byte [ ] strippedSequence = new byte [ length ] ; System . arraycopy ( sequenceObj . getSequenceByte ( ) , offset , strippedSequence , 0 , length ) ; return ByteBuffer . wrap ( strippedSequence , 0 , strippedSequence . length ) ; }
/*
Method to delete the base n's at the beginning and end of the sequence