Package picard.analysis
Class ChimeraUtil
java.lang.Object
picard.analysis.ChimeraUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Set<htsjdk.samtools.SamPairUtil.PairOrientation> static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisChimeric(htsjdk.samtools.SAMRecord rec, int maxInsertSize, Set<htsjdk.samtools.SamPairUtil.PairOrientation> expectedOrientations) Checks whether the given read is part of a chimeric pair.static booleanisChimeric(htsjdk.samtools.SAMRecord r1, htsjdk.samtools.SAMRecord r2, int maxInsertSize, Set<htsjdk.samtools.SamPairUtil.PairOrientation> expectedOrientations) Checks whether the given read is part of a chimeric pair.
-
Field Details
-
DEFAULT_INSERT_SIZE_LIMIT
public static int DEFAULT_INSERT_SIZE_LIMIT -
DEFAULT_EXPECTED_ORIENTATIONS
-
-
Constructor Details
-
ChimeraUtil
public ChimeraUtil()
-
-
Method Details
-
isChimeric
public static boolean isChimeric(htsjdk.samtools.SAMRecord rec, int maxInsertSize, Set<htsjdk.samtools.SamPairUtil.PairOrientation> expectedOrientations) Checks whether the given read is part of a chimeric pair. Note that this method returns false if the read is unpaired or if either end of the pair is unmapped.- Parameters:
rec- the readmaxInsertSize- max insert size to be considered non-chimericexpectedOrientations- set of orientations that are not chimeric; must not ne null- Returns:
- true if this record is part of a chimeric read pair, false otherwise
-
isChimeric
public static boolean isChimeric(htsjdk.samtools.SAMRecord r1, htsjdk.samtools.SAMRecord r2, int maxInsertSize, Set<htsjdk.samtools.SamPairUtil.PairOrientation> expectedOrientations) Checks whether the given read is part of a chimeric pair. Note that this method returns false if either end of the pair is unmapped.- Parameters:
r1- first read of the pairr2- second read of the pairmaxInsertSize- max insert size to be considered non-chimericexpectedOrientations- set of orientations that are not chimeric- Returns:
- true if this pair is chimeric, false otherwise
-