|
isoSeqQC
Quality assessment and re-mapping of poorly mapped isoSeq read segments
|
Summary of a BAM record set. More...
#include <isoseqAlgn.hpp>
Public Member Functions | |
| BAMrecord ()=default | |
| Default constructor. | |
| BAMrecord (const bam1_t *alignmentRecord, const sam_hdr_t *samHeader) | |
| Constructor with data. | |
| BAMrecord (const BAMrecord &toCopy)=default | |
| Copy constructor. | |
| BAMrecord & | operator= (const BAMrecord &toCopy)=default |
| Copy assignment operator. | |
| BAMrecord (BAMrecord &&toMove) noexcept=default | |
| Move constructor. | |
| BAMrecord & | operator= (BAMrecord &&toMove) noexcept=default |
| Move assignment operator. | |
| ~BAMrecord ()=default | |
| Destructor. | |
| void | addSecondaryAlignment (const bam1_t *alignmentRecord, const sam_hdr_t *samHeader, const hts_pos_t localWindow=500 '000) |
| Add a secondary alignment record. | |
| std::string | getReadName () const |
| Output read name. | |
| hts_pos_t | getMapStart () const noexcept |
| Map start position. | |
| hts_pos_t | getMapEnd () const noexcept |
| Map end position. | |
| hts_pos_t | getmRNAstart () const noexcept |
| mRNA start position | |
| bool | isRevComp () const noexcept |
| Is the read reverse-complemented? | |
| bool | isMapped () const noexcept |
| Is the read mapped? | |
| bool | hasSecondaryAlignments () const noexcept |
| Are there any secondary alignments? | |
| bool | hasLocalSecondaryAlignments () const noexcept |
| Are there any local secondary alignments? | |
| uint16_t | secondaryAlignmentCount () const noexcept |
| Count of all secondary alignments regardless of position. | |
| uint16_t | localSecondaryAlignmentCount () const noexcept |
| Count of secondary alignments overlapping the primary. | |
| uint16_t | localReversedSecondaryAlignmentCount () const noexcept |
| Count of reversed secondary alignments overlapping the primary. | |
| hts_pos_t | getReadLength () const noexcept |
| Read length. | |
| std::vector< uint32_t > | getCIGARvector () const |
| CIGAR vector. | |
| std::string | getCIGARstring () const |
| CIGAR string. | |
| uint32_t | getFirstCIGAR () const noexcept |
| Get the first cigar element with strand reversal. | |
| std::string | getReferenceName () const |
| Get reference name. | |
| MappedReadMatchStatus | getBestReferenceMatchStatus () const |
| Best reference-centric match status. | |
| std::vector< std::pair< float, hts_pos_t > > | getReadCentricMatchStatus () const |
| Reference match status along the read. | |
| std::vector< MappedReadInterval > | getPoorlyMappedRegions (const BinomialWindowParameters &windowParameters) const |
| Identify unmapped portions of the read. | |
| std::string | getSequenceAndQuality (const MappedReadInterval &segmentBoundaries) const |
| Get a segment of the sequence and the ASCII quality score. | |
Summary of a BAM record set.
Stores relevant information from BAM format alignment records.
| isaSpace::BAMrecord::BAMrecord | ( | const bam1_t * | alignmentRecord, |
| const sam_hdr_t * | samHeader ) |
Constructor with data.
Constructs an object from an HTSLIB alignment record and the corresponding header.
| [in] | alignmentRecord | pointer to a read alignment record |
| [in] | samHeader | pointer to the corresponding BAM/SAM header |
|
default |
Copy constructor.
| [in] | toCopy | object to copy |
|
defaultnoexcept |
Move constructor.
| [in] | toMove | object to move |
| void isaSpace::BAMrecord::addSecondaryAlignment | ( | const bam1_t * | alignmentRecord, |
| const sam_hdr_t * | samHeader, | ||
| const hts_pos_t | localWindow = 500 '000 ) |
Add a secondary alignment record.
Adds information from a secondary alignment record if it is a local secondary alignment. Otherwise, only increments the total number of secondary alignments.
| [in] | alignmentRecord | pointer to a read alignment record |
| [in] | samHeader | pointer to the corresponding BAM/SAM header |
| [in] | localWindow | window size for a secondary alignment to be considered local |
|
nodiscard |
Best reference-centric match status.
For each position, best match among all primary and secondary alignments.
|
nodiscard |
CIGAR string.
Reversed if the read is reverse-complemented.
|
inlinenodiscard |
CIGAR vector.
Orientation independent of strand
|
nodiscardnoexcept |
Get the first cigar element with strand reversal.
|
inlinenodiscardnoexcept |
Map end position.
Position of the first past the mapped region of the reference.
|
inlinenodiscardnoexcept |
Map start position.
Position of the first mapped nucleotide.
|
inlinenodiscardnoexcept |
mRNA start position
Position of the first mRNA read nucleotide, taking into account possible reverse-complement.
|
nodiscard |
Identify unmapped portions of the read.
Returns a vector of poorly mapped portions of the read. Vector is empty if the read is mapped.
| [in] | windowParameters | window parameters: size and the mapped/unmapped region binomial probabilities |
|
nodiscard |
Reference match status along the read.
Parses CIGAR to track reference match/mismatch (1.0 for match, 0.0 for mismatch) status along the read, relating each read position to the corresponding reference base-1 nucleotide position. The vector start begins at the position closest to the first exon start regardless of strand.
|
inlinenodiscardnoexcept |
Read length.
|
inlinenodiscard |
Output read name.
|
inlinenodiscard |
Get reference name.
Reference sequence (e.g., chromosome) name. If absent, returns * like samtools.
|
nodiscard |
Get a segment of the sequence and the ASCII quality score.
Returns sequence and printable ASCII quality scores separated by a newline, with a newline at the end. Negative strand alignments are reverse-complemented to export the original strand.
| [in] | segmentBoundaries | read interval to retrieve |
|
inlinenodiscardnoexcept |
Are there any local secondary alignments?
|
inlinenodiscardnoexcept |
Are there any secondary alignments?
|
inlinenodiscardnoexcept |
Is the read mapped?
|
inlinenodiscardnoexcept |
Is the read reverse-complemented?
|
nodiscardnoexcept |
Count of reversed secondary alignments overlapping the primary.
|
inlinenodiscardnoexcept |
Count of secondary alignments overlapping the primary.
|
inlinenodiscardnoexcept |
Count of all secondary alignments regardless of position.