Beispiel #1
0
 /**
  * Returns the platform unit associated with the provided read's read group.
  *
  * @param read read whose platform unit to retrieve
  * @param header SAM header containing read groups
  * @return the platform unit for the provided read's read group as a String, or null if the read
  *     has no read group.
  */
 public static String getPlatformUnit(final GATKRead read, final SAMFileHeader header) {
   final SAMReadGroupRecord readGroup = getSAMReadGroupRecord(read, header);
   return readGroup != null ? readGroup.getPlatformUnit() : null;
 }