-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProFormaParser.cpp
39 lines (32 loc) · 1.58 KB
/
ProFormaParser.cpp
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
#include "ProFormaParser.h"
#include <sstream>
#include <algorithm>
namespace TopDownProteomics::ProForma {
ProFormaTerm ProFormaParser::ParseString(const std::string& proFormaString) {
// Implementation of the ParseString function
// You need to provide the implementation here
}
void ProFormaParser::HandleGlobalModification(
std::unordered_map<std::string, ProFormaTagGroup>*& tagGroups,
std::vector<ProFormaGlobalModification>*& globalModifications,
std::string& sequence, int startRange, int endRange,
const std::string& tagText) {
// Implementation of the HandleGlobalModification function
// You need to provide the implementation here
}
void ProFormaParser::ProcessTag(std::string tag, int startIndex, int index, bool inSequenceAmbiguity,
std::vector<ProFormaTag>*& tags, std::unordered_map<std::string, ProFormaTagGroup>*& tagGroups) {
// Implementation of the ProcessTag function
// You need to provide the implementation here
}
std::vector<ProFormaDescriptor>* ProFormaParser::ProcessTag(std::string tag, int startIndex, int index,
std::unordered_map<std::string, ProFormaTagGroup>*& tagGroups) {
// Implementation of the ProcessTag function
// You need to provide the implementation here
}
std::tuple<ProFormaKey, ProFormaEvidenceType, std::string, std::string, double>
ProFormaParser::ParseDescriptor(const std::string& text) {
// Implementation of the ParseDescriptor function
// You need to provide the implementation here
}
}