public class EntryFlagHelper extends Object
| Constructor and Description |
|---|
EntryFlagHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
firstInPair() |
static boolean |
isFirstInPair(Alignments.AlignmentEntry entry)
Returns true if the entry corresponds to the first/primary read in a pair.
|
static boolean |
isMateReverseStrand(Alignments.AlignmentEntry entry)
Returns whether the pair mate was matching the reverse strand.
|
static boolean |
isMateReverseStrand(int pairFlags)
Returns whether the pair mate was matching the reverse strand.
|
static boolean |
isMateUnmapped(Alignments.AlignmentEntry entry)
If the mate was not mapped.
|
static boolean |
isNormalSplice(Alignments.AlignmentEntry entry)
If this alignment is a "normal" splice
|
static boolean |
isNotPrimaryAlignment(Alignments.AlignmentEntry entry)
Returns true if another entry had a better alignment score across the reference.
|
static boolean |
isNovelSplice(Alignments.AlignmentEntry entry)
If this alignment is a "novel" splice
|
static boolean |
isPaired(Alignments.AlignmentEntry entry)
If this alignment entry is part of a pair.
|
static boolean |
isProperlyPaired(Alignments.AlignmentEntry entry)
If this alignment entry is properly paired.
|
static boolean |
isReadReverseStrand(Alignments.AlignmentEntry entry)
Returns whether the pair read was matching the reverse strand.
|
static boolean |
isReadUnmapped(Alignments.AlignmentEntry entry)
If the read was not mapped.
|
static boolean |
isSecondInPair(Alignments.AlignmentEntry entry)
Returns true if the entry corresponds to the mate/second read in a pair.
|
static int |
mateReverseStrand() |
static int |
mateUnmapped() |
static int |
notPrimaryAlignment() |
static int |
paired() |
static String |
pairToString(Alignments.AlignmentEntry entry) |
static String |
pairToString(htsjdk.samtools.SAMRecord entry)
Provide a textual representation of pair flags.
|
static int |
properlyPaired() |
static int |
readReverseStrand() |
static int |
readUnmapped() |
static int |
secondInPair() |
static String |
spliceToString(Alignments.AlignmentEntry entry)
Provide a textual representation of splice flags.
|
public static String pairToString(htsjdk.samtools.SAMRecord entry)
entry - The entry that contains pair flags.public static String pairToString(Alignments.AlignmentEntry entry)
public static String spliceToString(Alignments.AlignmentEntry entry)
entry - The entry that contains splice flags.public static boolean isPaired(Alignments.AlignmentEntry entry)
entry - The entry.public static int paired()
public static int properlyPaired()
public static int readUnmapped()
public static int mateUnmapped()
public static int readReverseStrand()
public static int mateReverseStrand()
public static int firstInPair()
public static int secondInPair()
public static int notPrimaryAlignment()
public static boolean isProperlyPaired(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isReadUnmapped(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isMateUnmapped(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isReadReverseStrand(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isMateReverseStrand(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isMateReverseStrand(int pairFlags)
pairFlags - The entry pairFlags.public static boolean isFirstInPair(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isSecondInPair(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isNotPrimaryAlignment(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isNormalSplice(Alignments.AlignmentEntry entry)
entry - The entry.public static boolean isNovelSplice(Alignments.AlignmentEntry entry)
entry - The entry.Copyright © 2018 Campagne Laboratory. All rights reserved.