- All Superinterfaces:
Fragment
- All Known Subinterfaces:
AlignmentIterator
public interface Alignment
extends Fragment
Represents an alignment between a Fragment and Reference sub-sequence
provides a path to Read and mate Alignment
-
Field Summary
Fields
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
int
Alignments are categorized as primary or secondary (alternate).
Retrieve an identifying String that can be used for later access.
long
Retrieve the projected length of an Alignment projected upon Reference.
long
Retrieve the Alignment's starting position on the Reference
getClippedFragmentQualities
boolean
Test if orientation is reversed with respect to the Reference sequence.
int
boolean
getMateIsReversedOrientation
char
int
long
boolean
-
Field Details
-
passFailed
static final int passFailed
- See Also:
-
-
passDuplicates
static final int passDuplicates
- See Also:
-
-
minMapQuality
static final int minMapQuality
- See Also:
-
-
maxMapQuality
static final int maxMapQuality
- See Also:
-
-
noWraparound
static final int noWraparound
- See Also:
-
-
startWithinSlice
static final int startWithinSlice
- See Also:
-
-
primaryAlignment
static final int primaryAlignment
- See Also:
-
-
secondaryAlignment
static final int secondaryAlignment
- See Also:
-
-
all
static final int all
- See Also:
-
-
clipLeft
static final int clipLeft
- See Also:
-
-
clipRight
static final int clipRight
- See Also:
-
-
Method Details
-
getAlignmentId
Retrieve an identifying String that can be used for later access.
The id will be unique within ReadCollection.
- Returns:
- alignment id
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getReferenceSpec
getReferenceSpec
- Returns:
- the name of the reference
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getMappingQuality
getMappingQuality
- Returns:
- mapping quality
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getReferenceBases
getReferenceBases
- Returns:
- reference bases
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getReadGroup
getReadGroup
- Returns:
- the name of the read-group
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getReadId
getReadId
- Returns:
- the unique name of the read
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getClippedFragmentBases
getClippedFragmentBases
- Returns:
- clipped fragment bases
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getClippedFragmentQualities
getClippedFragmentQualities
- Returns:
- clipped fragment phred quality values using ASCII offset of 33
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getAlignedFragmentBases
getAlignedFragmentBases
- Returns:
- fragment bases in their aligned orientation
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getAlignmentCategory
int getAlignmentCategory()
throws
ErrorMsg
Alignments are categorized as primary or secondary (alternate).
- Returns:
- either Alignment.primaryAlignment or Alignment.secondaryAlignment
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getAlignmentPosition
long getAlignmentPosition()
throws
ErrorMsg
Retrieve the Alignment's starting position on the Reference
- Returns:
- unsigned 0-based offset from start of Reference
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getAlignmentLength
long getAlignmentLength()
throws
ErrorMsg
Retrieve the projected length of an Alignment projected upon Reference.
- Returns:
- unsigned length of projection
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getIsReversedOrientation
boolean getIsReversedOrientation()
throws
ErrorMsg
Test if orientation is reversed with respect to the Reference sequence.
- Returns:
- true if reversed
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getSoftClip
int getSoftClip(int edge)
throws ErrorMsg
getSoftClip
- Parameters:
edge
- which edge
- Returns:
- the position of the clipping
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getTemplateLength
long getTemplateLength()
throws
ErrorMsg
getTemplateLength
- Returns:
- the lenght of the template
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getShortCigar
getShortCigar
- Parameters:
clipped
- selects if clipping has to be applied
- Returns:
- a text string describing alignment details
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getLongCigar
getLongCigar
- Parameters:
clipped
- selects if clipping has to be applied
- Returns:
- a text string describing alignment details
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getRNAOrientation
char getRNAOrientation()
throws
ErrorMsg
getRNAOrientation
- Returns:
- '+' if positive strand is transcribed;
'-' if negative strand is transcribed;
'?' if unknown
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
hasMate
boolean hasMate()
hasMate
- Returns:
- if the alignment has a mate
-
getMateAlignmentId
getMateAlignmentId
- Returns:
- unique ID of th alignment
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getMateAlignment
getMateAlignment
- Returns:
- the mate as alignment
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getMateReferenceSpec
getMateReferenceSpec
- Returns:
- the name of the reference the mate is aligned at
- Throws:
ErrorMsg
- if the property cannot be retrieved
-
getMateIsReversedOrientation
boolean getMateIsReversedOrientation()
throws
ErrorMsg
getMateIsReversedOrientation
- Returns:
- the orientation of the mate
- Throws:
ErrorMsg
- if the property cannot be retrieved