Package picard.sam.markduplicates.util
Class LibraryIdGenerator
java.lang.Object
picard.sam.markduplicates.util.LibraryIdGenerator
A class to generate library Ids and keep duplication metrics by library IDs.
-
Constructor Summary
ConstructorsConstructorDescriptionLibraryIdGenerator(htsjdk.samtools.SAMFileHeader header) LibraryIdGenerator(htsjdk.samtools.SAMFileHeader header, boolean flowMetrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetricsByLibrary(String library, DuplicationMetrics metrics) htsjdk.samtools.util.Histogram<Double> shortgetLibraryId(htsjdk.samtools.SAMRecord rec) Get the library ID for the given SAM record.static StringgetLibraryName(htsjdk.samtools.SAMFileHeader header, htsjdk.samtools.SAMRecord rec) Gets the library name from the header for the record.getMetricsByLibrary(String library) htsjdk.samtools.util.Histogram<Double> longhtsjdk.samtools.util.Histogram<Double> htsjdk.samtools.util.Histogram<Short> static StringgetReadGroupLibraryName(htsjdk.samtools.SAMReadGroupRecord readGroup)
-
Constructor Details
-
LibraryIdGenerator
public LibraryIdGenerator(htsjdk.samtools.SAMFileHeader header) -
LibraryIdGenerator
public LibraryIdGenerator(htsjdk.samtools.SAMFileHeader header, boolean flowMetrics)
-
-
Method Details
-
getLibraryIdsMap
-
getMetricsByLibraryMap
-
getOpticalDuplicatesByLibraryIdMap
-
getDuplicateCountHist
-
getNonOpticalDuplicateCountHist
-
getOpticalDuplicateCountHist
-
getReadGroupLibraryName
-
getLibraryName
public static String getLibraryName(htsjdk.samtools.SAMFileHeader header, htsjdk.samtools.SAMRecord rec) Gets the library name from the header for the record. If the RG tag is not present on the record, or the library isn't denoted on the read group, a constant string is returned. -
getLibraryId
public short getLibraryId(htsjdk.samtools.SAMRecord rec) Get the library ID for the given SAM record. -
getMetricsByLibrary
-
addMetricsByLibrary
-
getNumberOfOpticalDuplicateClusters
public long getNumberOfOpticalDuplicateClusters()
-