-use the getReadGroup() function that was added to picard for us
-clean up some include lines git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1808 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
d844d1c496
commit
cf7a26759d
|
|
@ -36,9 +36,6 @@ import net.sf.samtools.SAMRecord;
|
|||
|
||||
public class MissingReadGroupFilter implements SamRecordFilter {
|
||||
public boolean filterOut(SAMRecord rec) {
|
||||
String RG = (String)(rec.getAttribute("RG"));
|
||||
return RG == null ||
|
||||
rec.getHeader() == null ||
|
||||
rec.getHeader().getReadGroup(RG) == null;
|
||||
return rec.getReadGroup() == null;
|
||||
}
|
||||
}
|
||||
|
|
@ -56,8 +56,7 @@ public class EmpiricalSubstitutionGenotypeLikelihoods extends GenotypeLikelihood
|
|||
public static SequencerPlatform getReadSequencerPlatform( SAMRecord read ) {
|
||||
if ( lastReadForPL != read ) {
|
||||
lastReadForPL = read;
|
||||
final String readGroupString = ((String)read.getAttribute("RG"));
|
||||
SAMReadGroupRecord readGroup = readGroupString == null ? null : read.getHeader().getReadGroup(readGroupString);
|
||||
SAMReadGroupRecord readGroup = read.getReadGroup();
|
||||
final String platformName = readGroup == null ? null : (String)readGroup.getAttribute(SAM_PLATFORM_TAG);
|
||||
plOfLastRead = standardizeSequencerPlatform(platformName);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,7 @@ package org.broadinstitute.sting.gatk.walkers.genotyper;
|
|||
import org.broadinstitute.sting.utils.BaseUtils;
|
||||
import org.broadinstitute.sting.utils.QualityUtils;
|
||||
|
||||
import static java.lang.Math.log10;
|
||||
import java.util.TreeMap;
|
||||
import java.util.EnumMap;
|
||||
|
||||
import net.sf.samtools.SAMRecord;
|
||||
import net.sf.samtools.SAMReadGroupRecord;
|
||||
|
||||
/**
|
||||
* This implements the old style CRD calculation of the chance that a base being a true chromBase given
|
||||
|
|
|
|||
|
|
@ -4,11 +4,8 @@ import org.broadinstitute.sting.utils.BaseUtils;
|
|||
import org.broadinstitute.sting.utils.QualityUtils;
|
||||
|
||||
import static java.lang.Math.log10;
|
||||
import java.util.TreeMap;
|
||||
import java.util.EnumMap;
|
||||
|
||||
import net.sf.samtools.SAMRecord;
|
||||
import net.sf.samtools.SAMReadGroupRecord;
|
||||
|
||||
public class ThreeStateErrorGenotypeLikelihoods extends GenotypeLikelihoods {
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue