Cleaning up reduced read code accessors
This commit is contained in:
parent
7928b287fc
commit
1b38aa1a7e
|
|
@ -55,6 +55,7 @@ public class ReadUtils {
|
|||
public static final String REDUCED_READ_CONSENSUS_COUNTS_TAG = "CC";
|
||||
|
||||
public final static byte[] getReducedReadQualityTagValue(final SAMRecord read) {
|
||||
// TODO -- warning of performance problem. Should be cached in GATKSamRecord
|
||||
return read.getByteArrayAttribute(ReadUtils.REDUCED_READ_QUALITY_TAG);
|
||||
}
|
||||
|
||||
|
|
@ -70,21 +71,6 @@ public class ReadUtils {
|
|||
return getReducedReadQualityTagValue(read)[i];
|
||||
}
|
||||
|
||||
public final static SAMRecord reducedReadWithReducedQuals(final SAMRecord read) {
|
||||
if ( ! isReducedRead(read) ) throw new IllegalArgumentException("read must be a reduced read");
|
||||
return read;
|
||||
// try {
|
||||
// SAMRecord newRead = (SAMRecord)read.clone();
|
||||
// byte reducedQual = (byte)(int)getReducedReadQualityTagValue(read);
|
||||
// byte[] newQuals = new byte[read.getBaseQualities().length];
|
||||
// Arrays.fill(newQuals, reducedQual);
|
||||
// newRead.setBaseQualities(newQuals);
|
||||
// return newRead;
|
||||
// } catch ( CloneNotSupportedException e ) {
|
||||
// throw new ReviewedStingException("SAMRecord no longer supports clone", e);
|
||||
// }
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------
|
||||
//
|
||||
// General utilities
|
||||
|
|
|
|||
Loading…
Reference in New Issue