-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextract_seq.cuh
More file actions
69 lines (51 loc) · 1.32 KB
/
extract_seq.cuh
File metadata and controls
69 lines (51 loc) · 1.32 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#pragma once
#include <iostream>
#include "functions_library.cuh"
#include <cstdlib>
#include <curand.h>
#include <curand_kernel.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <thrust/system_error.h>
#include <thrust/system/cuda/error.h>
#include <sstream>
#include <algorithm>
#include <random>
#include <chrono>
#include <iomanip>
#include <string>
#include <map>
#include <string>
#include <vector>
#include <queue>
#include <thread>
#include <mutex>
#include <shared_mutex>
using namespace std;
class extract_seq
{
private:
mt19937 gen;
shared_mutex g_mutex;
mutex gi_mutex;
int CUDA_device_number;
int gpu_Limit;
int tot_Blocks;
int tot_ThreadsperBlock;
int CPU_cores;
string output_Folder;
string output_Folder_Sequences;
string intermediate_Folders;
string intermediate_sequence_Store;
string multi_READ = "NO";
vector<string> N_sequences_Store;
vector<pair<string, string>> unique_Sequences;
vector<int> sequence_Count;
public:
extract_seq(int CUDA_device_number, int CPU_cores, int gpu_Limit,
string intermediate_Folders,
string output_Folder,
string multi_READ);
void ingress();
void read_N_fasta(int start, int stop, int start_Index, int generation, string folder);
};