File: sjAlignSplit.cpp

package info (click to toggle)
rna-star 2.7.11b%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,492 kB
  • sloc: cpp: 21,951; awk: 827; ansic: 457; makefile: 192; sh: 31
file content (15 lines) | stat: -rwxr-xr-x 575 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "sjAlignSplit.h"

bool sjAlignSplit(uint a1,uint aLength, const Genome &mapGen, uint &a1D, uint &aLengthD, uint &a1A, uint &aLengthA, uint &isj) {
    uint sj1=(a1-mapGen.sjGstart)%mapGen.sjdbLength;
    if (sj1<mapGen.sjdbOverhang && sj1+aLength>mapGen.sjdbOverhang) {//align crosses the junctions
        isj=(a1-mapGen.sjGstart)/mapGen.sjdbLength;
        aLengthD=mapGen.sjdbOverhang-sj1;
        aLengthA=aLength-aLengthD;
        a1D=mapGen.sjDstart[isj]+sj1;
        a1A=mapGen.sjAstart[isj];
        return true;
    } else {
        return false;
    };
};