-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_sequence_annotation.cpp
39 lines (26 loc) · 1.14 KB
/
test_sequence_annotation.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
#define BASE_URI "http://sys-bio.org"
#define RAPTOR_STATIC
#include "sbol.h"
#include <iostream>
#include <vector>
using namespace std;
using namespace sbol;
int main()
{
Document& doc = *new Document();
Document& doc2 = *new Document();
setHomespace(BASE_URI);
ComponentDefinition& biobrick_prefix = *new ComponentDefinition("biobrick_prefix", BIOPAX_DNA);
SequenceAnnotation& ecori = biobrick_prefix.sequenceAnnotations.create("EcoRI");
ecori.roles.set(SO "0001975"); // five prime sticky end restriction enzyme cleavage site
Range& range = ecori.locations.create<Range>("range");
range.orientation.set(SBOL_ORIENTATION_INLINE);
range.start.set(1);
range.end.set(7);
Cut& cut = ecori.locations.create<Cut>("cut");
cut.at.set(4);
SequenceAnnotation& noti = biobrick_prefix.sequenceAnnotations.create("NotI");
noti.roles.set(SO "0001975"); // five prime sticky end restriction enzyme cleavage site
SequenceAnnotation& xbai = biobrick_prefix.sequenceAnnotations.create("XbaI");
xbai.roles.set(SO "0001975"); // five prime sticky end restriction enzyme cleavage site
}