-
Notifications
You must be signed in to change notification settings - Fork 0
/
fasta_splitter.h
58 lines (49 loc) · 1.33 KB
/
fasta_splitter.h
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
#pragma once
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <filesystem>
#include <list>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
class fasta_splitter
{
/**
* Splits a merged FASTA file into its individual sequences.
* It can also be used to extract a specific sequence by its sequence ID.
**/
private:
/**
* @param fasta_File defines the merged FASTA file with the multiple sequences.
**/
string fasta_File;
/**
* @param output_Folder defines the output folder to which all sequences will be written to in the FASTA format.
**/
string output_Folder;
/**
* @param fasta_Name the sequence ID of the sequence to be extracted.
* If it is given as "all" then all sequences will be extracted.
**/
string fasta_Name;
public:
/**
* Constructor Function assigns passed variables to the classes' private variable.
**/
fasta_splitter(string fasta_File, string output_Path, string fasta_Name);
/**
* This function is used to extract all the sequences from the merged file.
**/
void split_all();
/**
* This function is used to extract a specific sequence from the merged file.
**/
void split_select();
/**
* Execution function.
**/
void ingress();
};