public static void checkReadsGuid(final SAMFileHeader header,final SdfId sdfId){
  final SdfId myGuid=getReadsGuid(header);
  if (!myGuid.check(sdfId)) {
    throw new NoTalkbackSlimException("SDF-ID of given SDF does not match SDF used during mapping.");
  }
 else   if (!myGuid.available()) {
    Diagnostic.warning("No READ-SDF-ID found in SAM header, unable to verify read-id correctness.");
  }
}

public static void checkReadsGuid ( final SAMFileHeader header , final SdfId sdfId ) { final SdfId myGuid = getReadsGuid ( header ) ; if ( ! myGuid . check ( sdfId ) ) { throw new NoTalkbackSlimException ( "SDF-ID of given SDF does not match SDF used during mapping." ) ; } else if ( ! myGuid . available ( ) ) { Diagnostic . warning ( "No READ-SDF-ID found in SAM header, unable to verify read-id correctness." ) ; } }
check if the given reads sdf id matches that specified in the sam header
