public static final class SVFastqUtils.Mapping
extends java.lang.Object
implements htsjdk.samtools.util.Locatable
Constructor and Description |
---|
Mapping(GATKRead read) |
Mapping(java.lang.String str) |
Modifier and Type | Method and Description |
---|---|
java.util.List<AlignmentInterval> |
getAllIntervals() |
htsjdk.samtools.Cigar |
getCigar()
Returns the cigar of the primary interval, or the empty cigar if
unmapped . |
java.lang.String |
getContig()
Returns the contig as per the primary interval, or
null if unmapped. |
int |
getEnd()
Returns the primary interval end position, or
SAMRecord.NO_ALIGNMENT_START if unmapped. |
AlignmentInterval |
getPrimaryInterval() |
int |
getStart()
Returns the primary interval start position, or
SAMRecord.NO_ALIGNMENT_START if unmapped. |
java.util.List<AlignmentInterval> |
getSupplementaryIntervals() |
boolean |
isForwardStrand() |
boolean |
isMapped() |
java.lang.String |
toString()
Generates the mapping string as it would be included in the Fastq read header.
|
static java.lang.String |
toString(GATKRead read)
Generates the mapping string for a read.
|
public Mapping(java.lang.String str)
public Mapping(GATKRead read)
public boolean isMapped()
public java.lang.String getContig()
null
if unmapped.getContig
in interface htsjdk.samtools.util.Locatable
null
.public int getStart()
SAMRecord.NO_ALIGNMENT_START
if unmapped.getStart
in interface htsjdk.samtools.util.Locatable
SAMRecord.NO_ALIGNMENT_START
or a strictly positive value.public int getEnd()
SAMRecord.NO_ALIGNMENT_START
if unmapped.getEnd
in interface htsjdk.samtools.util.Locatable
SAMRecord.NO_ALIGNMENT_START
or a strictly positive value.public htsjdk.samtools.Cigar getCigar()
unmapped
.public boolean isForwardStrand()
public AlignmentInterval getPrimaryInterval()
public java.util.List<AlignmentInterval> getSupplementaryIntervals()
public java.util.List<AlignmentInterval> getAllIntervals()
public static java.lang.String toString(GATKRead read)
read
- the source read.SVFastqUtils.UNMAPPED_DESCRIPTION_STR
if the read is unmapped.public java.lang.String toString()
toString
in class java.lang.Object
SVFastqUtils.UNMAPPED_DESCRIPTION_STR
if the read is unmapped.