-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRefSequences.h
More file actions
54 lines (44 loc) · 1.42 KB
/
RefSequences.h
File metadata and controls
54 lines (44 loc) · 1.42 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// RefSequences.hpp
// CasperOffTarget
//
// Created by Brian Mendoza on 3/16/18.
// Copyright © 2018 University of Tennessee. All rights reserved.
//
#ifndef RefSequences_h
#define RefSequences_h
#include <stdio.h>
#include <vector>
#include <string>
#include <thread>
#include <stdlib.h>
#include <stdio.h>
#include "csprRef.h"
#include "FileOp.h"
#include "gRNA.h"
#include "OffScoring.h"
#include "CSeqTranslate.h"
using namespace std;
class OnTargets {
public:
//OnTargets();
int se_l = 0;
int seq_l = 0;
void loadData(string, string); //pass filename of .cspr file for reference
void LoadTargetQuery(string); // pass OFF_QUERY file to the class
void set_base_seqs(vector<gRNA*> x) { base_seqs = x; }
// calls the scoring algorithm iterating through putative_off_seqs (passed object is settings file)
void ScoreSettings(string, string, int, double, bool, bool, string, string, string);
//generic algorithm that loops through all targets calling findSimilars. Initiates threads. Iterates through base_seqs and scores them with the scoring algorithm
void run_off_algorithm(int);
private:
void findSimilars(gRNA*); //runs algorithm on individual target
vector<string> Msplit(const string &text, char sep);
vector<gRNA*> base_seqs; //stores all queries loaded by the public function set_base_seqs
private:
csprRef ref;
OffScoring scoreGenerator;
SeqTranslate S;
FileOp fileop;
};
#endif /* RefSequences_hpp */