-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRNA.h
More file actions
61 lines (58 loc) · 1.89 KB
/
RNA.h
File metadata and controls
61 lines (58 loc) · 1.89 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
#ifndef RNA_H
#define RNA_H
#include<iostream>
#include "Sequence.h"
#include"Protien.h"
#include <iostream>
#include"DNA.h"
#include <fstream>
#include <bits/stdc++.h>
class DNA;
enum RNA_Type {mRNA, pre_mRNA, mRNA_exon, mRNA_intron};
using namespace std;
class Protien;
class CodonsTable;
class RNA: public Sequence
{
private:
RNA_Type type;
public:
// constructors and destructor
RNA();
RNA(char * _seq, RNA_Type atype);
RNA(RNA& rhs);
~RNA();
//boolean variable to check validation.
bool Seqvalid = true ;
//boolean variable to check type validation.
bool Typevalid = true;
// function to be overridden to print all the RNA information
void Print();
// function to convert the RNA sequence into protein sequence
// using the codonsTable object
Protien ConvertToProtein();
// function to convert the RNA sequence back to DNA.
DNA ConvertToDNA();
//istream function to take RNA from user.
friend istream& operator>> (istream&, RNA& rna2);
//ostream function to cout RNA for user.
friend ostream& operator<< (ostream&, RNA& rna);
//function to add two RN sequences to each other.
RNA operator+(RNA& inseq);
//function to check if two RNA sequences are equal.
bool operator==(RNA& inseq);
//function to check if two RNA sequences are not equal.
bool operator!=(RNA& inseq);
//function to load sequence from file.
void loadSequenceFromFile();
//function to create new file for user and save it.
void saveSequenceToFile();
//function to check RNA sequence validation.
void checkRNAValidation();
//function to check RNA Type validation.
void check_RNAType_Validation(RNA_Type atype);
//function to copy object value to an otehr object.
void operator =(RNA &rna2);
char getElementInSeq(int index);
};
#endif // RNA_H