Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Faulty estimates of Read Length #77

@karl-az

Description

@karl-az

I have noticed that RNA-seQC at times underestimates the Read Length

This is the section measuring read length:

rnaseqc/src/RNASeQC.cpp

Lines 274 to 277 in c426536

unsigned int alignmentSize = alignment.PositionEnd() - alignment.Position();
if (LegacyMode.Get() && alignmentSize > LEGACY_MAX_READ_LENGTH) continue;
if (!readLength) current_chrom = chromosomeMap(sequences[alignment.ChrID()].Name);
if (alignmentSize > readLength) readLength = alignment.Length();

The comparison is on alignmentSize, but the assignment is with alignment.Length(). Could this lead to unfortunate errors? Especially if alignment.Length() sometimes is less than alignmentSize

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions