File: ClipMate_initialize.cpp

package info (click to toggle)
rna-star 2.7.8a%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,076 kB
  • sloc: cpp: 20,429; awk: 483; ansic: 470; makefile: 181; sh: 31
file content (32 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "ClipMate.h"
#include "Parameters.h"
#include "SequenceFuns.h"

void ClipMate::initialize(uint32 Nin, const string &adSeqIn, uint32 NafterAdin, double adMMpIn)
{
    N=Nin;

    adSeq=adSeqIn;
    if (adSeq=="-") {
        adSeq="";
    } else {
        if ( adSeq=="polyA") {
            adSeqNum.clear(); //it should be empty, but just in case...
            adSeqNum.resize(DEF_readSeqLengthMax, 0); //fill with A=0
        } else {
            adSeqNum.resize(adSeq.size(),0);
            convertNucleotidesToNumbers(adSeq.data(), adSeqNum.data(), adSeqNum.size());
        };
    };

    if (N==0 && adSeq=="")
        type=-1;
    
    if (type==10)
        cr4 = new ClipCR4;

    NafterAd=NafterAdin;
    adMMp=adMMpIn;
};