-
Notifications
You must be signed in to change notification settings - Fork 0
/
CRISPRRepressionExample.cpp
496 lines (394 loc) · 23.9 KB
/
CRISPRRepressionExample.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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
#include "sbol.h"
using namespace sbol;
using namespace std;
int main()
{
setHomespace("http://sys-bio.org");
Document &doc = *new Document();
std::string version = "1.0.0";
// Create ComponentDefinition for cas9_generic protein
ComponentDefinition& cas9_generic = *new ComponentDefinition("cas9_generic", BIOPAX_PROTEIN, version);
doc.add<ComponentDefinition>(cas9_generic);
// Create ComponentDefinition for gRNA_generic RNA
ComponentDefinition& gRNA_generic = *new ComponentDefinition("gRNA_generic", BIOPAX_RNA, version);
//gRNA_generic.roles.set(SBO_SGRNA);
doc.add<ComponentDefinition>(gRNA_generic);
// Create ComponentDefinition for cas9_gRNA_complex
ComponentDefinition& cas9_gRNA_complex = *new ComponentDefinition("cas9_gRNA_complex", BIOPAX_COMPLEX, version);
doc.add<ComponentDefinition>(cas9_gRNA_complex);
// Create ComponentDefinition for target gene
ComponentDefinition& target_gene = *new ComponentDefinition("target_gene", BIOPAX_DNA, version);
doc.add<ComponentDefinition>(target_gene);
// Create ComponentDefinition for target protein
ComponentDefinition& target = *new ComponentDefinition("target", BIOPAX_PROTEIN, version);
doc.add<ComponentDefinition>(target);
// Create ModuleDefinition for CRISPR_Repression_Template
ModuleDefinition &CRISPR_Template = *new ModuleDefinition("CRISPR_Template", version);
doc.add<ModuleDefinition>(CRISPR_Template);
//Complex Formation Interaction for Cas9m_BFP and gRNA
Interaction &Cas9Complex_Formation = CRISPR_Template.interactions.create("Cas9Complex_Formation");
Cas9Complex_Formation.types.add(SBO_NONCOVALENT_BINDING);
Participation &cas9_generic_participation = Cas9Complex_Formation.participations.create("cas9_generic");
cas9_generic_participation.roles.set(SBO_REACTANT);
cas9_generic.participate(cas9_generic_participation);
Participation &gRNA_generic_participation = Cas9Complex_Formation.participations.create("gRNA_generic");
gRNA_generic_participation.roles.set(SBO_REACTANT);
gRNA_generic.participate(gRNA_generic_participation);
Participation &cas9_gRNA_complex_participation1 = Cas9Complex_Formation.participations.create("cas9_gRNA_complex");
cas9_gRNA_complex_participation1.roles.set(SBO_PRODUCT);
cas9_gRNA_complex.participate(cas9_gRNA_complex_participation1);
// Production of target from target gene
Interaction &EYFP_production = CRISPR_Template.interactions.create("EYFP_production");
EYFP_production.types.add(SBO_GENETIC_PRODUCTION);
Participation &target_gene_participation = EYFP_production.participations.create("target_gene");
target_gene_participation.roles.set(SBO_PROMOTER);
target_gene.participate(target_gene_participation);
Participation &target_participation = EYFP_production.participations.create("target");
target_participation.roles.set(SBO_PRODUCT);
target.participate(target_participation);
// Inhibition of target by cas9m_BFP_gRNA
Interaction &target_generic_gene_inhibition = CRISPR_Template.interactions.create("target_generic_gene_inhibition");
target_generic_gene_inhibition.types.add(SBO_INHIBITION);
Participation &cas9_gRNA_complex_participation = target_generic_gene_inhibition.participations.create("cas9_gRNA_complex");
cas9_gRNA_complex_participation.roles.set(SBO_INHIBITOR);
cas9_gRNA_complex.participate(cas9_gRNA_complex_participation);
Participation &cas9_target_gene_participation = target_generic_gene_inhibition.participations.create("target_gene");
cas9_target_gene_participation.roles.set(SBO_PROMOTER);
cas9_target_gene_participation.participant.set("target_gene");
target_gene.participate(cas9_target_gene_participation);
// Create Sequence for CRa_U6 promoter
std::string CRa_U6_seq_elements ="GGTTTACCGAGCTCTTATTGGTTTTCAAACTTCATTGACTGTGCC"
"AAGGTCGGGCAGGAAGAGGGCCTATTTCCCATGATTCCTTCATAT"
"TTGCATATACGATACAAGGCTGTTAGAGAGATAATTAGAATTAAT"
"TTGACTGTAAACACAAAGATATTAGTACAAAATACGTGACGTAGA"
"AAGTAATAATTTCTTGGGTAGTTTGCAGTTTTAAAATTATGTTTT"
"AAAATGGACTATCATATGCTTACCGTAACTTGAAATATAGAACCG"
"ATCCTCCCATTGGTATATATTATAGAACCGATCCTCCCATTGGCT"
"TGTGGAAAGGACGAAACACCGTACCTCATCAGGAACATGTGTTTA"
"AGAGCTATGCTGGAAACAGCAGAAATAGCAAGTTTAAATAAGGCT"
"AGTCCGTTATCAACTTGAAAAAGTGGCACCGAGTCGGTGCTTTTT"
"TTGGTGCGTTTTTATGCTTGTAGTATTGTATAATGTTTTT";
// Create Sequence for gRNA_b coding sequence
std::string gRNA_b_elements = "AAGGTCGGGCAGGAAGAGGGCCTATTTCCCATGATTCCTTCATAT"
"TTGCATATACGATACAAGGCTGTTAGAGAGATAATTAGAATTAAT"
"TTGACTGTAAACACAAAGATATTAGTACAAAATACGTGACGTAGA"
"AAGTAATAATTTCTTGGGTAGTTTGCAGTTTTAAAATTATGTTTT"
"AAAATGGACTATCATATGCTTACCGTAACTTGAAAGTATTTCGAT"
"TTCTTGGCTTTATATATCTTGTGGAAAGGACGAAACACCGTACCT"
"CATCAGGAACATGTGTTTAAGAGCTATGCTGGAAACAGCAGAAAT"
"AGCAAGTTTAAATAAGGCTAGTCCGTTATCAACTTGAAAAAGTGG"
"CACCGAGTCGGTGCTTTTTTT";
// Create Sequence for mKate
std::string mKate_seq_elements = "TCTAAGGGCGAAGAGCTGATTAAGGAGAACATGCACATGAAGCTG"
"TACATGGAGGGCACCGTGAACAACCACCACTTCAAGTGCACATCC"
"GAGGGCGAAGGCAAGCCCTACGAGGGCACCCAGACCATGAGAATC"
"AAGGTGGTCGAGGGCGGCCCTCTCCCCTTCGCCTTCGACATCCTG"
"GCTACCAGCTTCATGTACGGCAGCAAAACCTTCATCAACCACACC"
"CAGGGCATCCCCGACTTCTTTAAGCAGTCCTTCCCTGAGGTAAGT"
"GGTCCTACCTCATCAGGAACATGTGTTTTAGAGCTAGAAATAGCA"
"AGTTAAAATAAGGCTAGTCCGTTATCAACTTGAAAAAGTGGCACC"
"GAGTCGGTGCTACTAACTCTCGAGTCTTCTTTTTTTTTTTCACAG"
"GGCTTCACATGGGAGAGAGTCACCACATACGAAGACGGGGGCGTG"
"CTGACCGCTACCCAGGACACCAGCCTCCAGGACGGCTGCCTCATC"
"TACAACGTCAAGATCAGAGGGGTGAACTTCCCATCCAACGGCCCT"
"GTGATGCAGAAGAAAACACTCGGCTGGGAGGCCTCCACCGAGATG"
"CTGTACCCCGCTGACGGCGGCCTGGAAGGCAGAAGCGACATGGCC"
"CTGAAGCTCGTGGGCGGGGGCCACCTGATCTGCAACTTGAAGACC"
"ACATACAGATCCAAGAAACCCGCTAAGAACCTCAAGATGCCCGGC"
"GTCTACTATGTGGACAGAAGACTGGAAAGAATCAAGGAGGCCGAC"
"AAAGAGACCTACGTCGAGCAGCACGAGGTGGCTGTGGCCAGATAC"
"TGCG";
// Create Sequence for CRP_b promoter
std::string CRP_b_seq_elements = "GCTCCGAATTTCTCGACAGATCTCATGTGATTACGCCAAGCTACG"
"GGCGGAGTACTGTCCTCCGAGCGGAGTACTGTCCTCCGAGCGGAG"
"TACTGTCCTCCGAGCGGAGTACTGTCCTCCGAGCGGAGTTCTGTC"
"CTCCGAGCGGAGACTCTAGATACCTCATCAGGAACATGTTGGAAT"
"TCTAGGCGTGTACGGTGGGAGGCCTATATAAGCAGAGCTCGTTTA"
"GTGAACCGTCAGATCGCCTCGAGTACCTCATCAGGAACATGTTGG"
"ATCCAATTCGACC";
// Create ComponentDefinition for a Constitutive Promoter
ComponentDefinition& pConst = *new ComponentDefinition("pConst", BIOPAX_DNA, version);
pConst.roles.set(SBO_PROMOTER);
doc.add<ComponentDefinition>(pConst);
// Create ComponentDefinition for cas9m_BFP coding sequence
ComponentDefinition& cas9m_BFP_cds = *new ComponentDefinition("cas9m_BFP_cds", BIOPAX_DNA, version);
cas9m_BFP_cds.roles.set(SO_CDS);
doc.add<ComponentDefinition>(cas9m_BFP_cds);
// Create ComponentDefinition for cas9m_BFP gene
ComponentDefinition& cas9m_BFP_gene = *new ComponentDefinition("cas9m_BFP_gene", BIOPAX_DNA, version);
cas9m_BFP_gene.roles.set(SO_PROMOTER);
doc.add<ComponentDefinition>(cas9m_BFP_gene);
SequenceConstraint &cas9m_BFP_gene_constraint = cas9m_BFP_gene.sequenceConstraints.create("cas9m_BFP_gene_constraint");
cas9m_BFP_gene_constraint.subject.set(pConst.identity.get());
cas9m_BFP_gene_constraint.object.set(cas9m_BFP_cds.identity.get());
cas9m_BFP_gene_constraint.restriction.set(SBOL_RESTRICTION_PRECEDES);
// Create ComponentDefintion for cas9m_BFP protein
ComponentDefinition &cas9m_BFP = *new ComponentDefinition("cas9m_BFP", BIOPAX_PROTEIN, version);
doc.add<ComponentDefinition>(cas9m_BFP);
// Create ComponentDefintion for CRa_U6 promoter
ComponentDefinition &CRa_U6 = *new ComponentDefinition("CRa_U6", BIOPAX_DNA, version);
doc.add<ComponentDefinition>(CRa_U6);
CRa_U6.sequence.create(CRa_U6_seq_elements);
CRa_U6.roles.set(SO_PROMOTER);
// Create ComponentDefintion for gRNA_b coding sequence
ComponentDefinition &gRNA_b_nc = *new ComponentDefinition("gRNA_b_nc", BIOPAX_DNA, version);
doc.add<ComponentDefinition>(gRNA_b_nc);
gRNA_b_nc.roles.set(SO_CDS);
gRNA_b_nc.sequence.create(CRP_b_seq_elements);
Sequence& gRNA_b_seq = doc.get < Sequence > ( gRNA_b_nc.sequence.create("gRNA_b_seq") );
gRNA_b_seq.elements.set(gRNA_b_elements);
// Create ComponentDefinition for gRNA_b terminator
ComponentDefinition &gRNA_b_terminator = *new ComponentDefinition("gRNA_b_terminator", BIOPAX_DNA, version);
doc.add<ComponentDefinition>(gRNA_b_terminator);
gRNA_b_terminator.roles.set(SO_TERMINATOR);
// Create ComponentDefinition for gRNA_b gene
ComponentDefinition &gRNA_b_gene = *new ComponentDefinition("gRNA_b_gene", BIOPAX_DNA, version);
doc.add<ComponentDefinition>(gRNA_b_gene);
gRNA_b_gene.roles.set(SO_PROMOTER);
SequenceConstraint &gRNA_gene_constraint1 = gRNA_b_gene.sequenceConstraints.create("gRNA_gene_constraint1");
gRNA_gene_constraint1.subject.set(CRa_U6.identity.get());
gRNA_gene_constraint1.object.set(gRNA_b_nc.identity.get());
gRNA_gene_constraint1.restriction.set(SBOL_RESTRICTION_PRECEDES);
SequenceConstraint &gRNA_gene_constraint2 = gRNA_b_gene.sequenceConstraints.create("gRNA_gene_constraint2");
gRNA_gene_constraint2.subject.set(gRNA_b_nc.identity.get());
gRNA_gene_constraint2.object.set(gRNA_b_terminator.identity.get());
gRNA_gene_constraint2.restriction.set(SBOL_RESTRICTION_PRECEDES);
//Create ComponentDefinition for gRNA_b RNA
ComponentDefinition &gRNA_b = *new ComponentDefinition("gRNA_b", BIOPAX_RNA, version);
gRNA_b.roles.set(SO_MISC); //SO_SGRNA);
doc.add<ComponentDefinition>(gRNA_b);
// Create ComponentDefinition for cas9m_BFP gRNA_b complex
ComponentDefinition &cas9m_BFP_gRNA_b = *new ComponentDefinition("cas9m_BFP_gRNA_b", BIOPAX_COMPLEX, version);
//SequenceOntology so = new SequenceOntology();
//URI sgrna = so.getURIbyName("sgRNA");
doc.add<ComponentDefinition>(cas9m_BFP_gRNA_b);
// Create ComponentDefinition for mKate coding sequence
ComponentDefinition& mKate_cds = *new ComponentDefinition("mKate_cds", BIOPAX_DNA, version);
mKate_cds.roles.set(SO_CDS);
mKate_cds.sequence.set(mKate_seq_elements);
doc.add<ComponentDefinition>(mKate_cds);
// Create ComponentDefinition for mKate gene
ComponentDefinition& mKate_gene = *new ComponentDefinition("mKate_gene", BIOPAX_DNA, version);
mKate_gene.roles.set(SO_PROMOTER);
doc.add<ComponentDefinition>(mKate_gene);
SequenceConstraint &mKate_gene_constraint = mKate_gene.sequenceConstraints.create("mKate_gene_constraint");
mKate_gene_constraint.subject.set(pConst.identity.get());
mKate_gene_constraint.object.set(mKate_cds.identity.get());
mKate_gene_constraint.restriction.set(SBOL_RESTRICTION_PRECEDES);
// Create ComponentDefinition for mKate protein
ComponentDefinition& mKate = *new ComponentDefinition("mKate", BIOPAX_PROTEIN, version);
doc.add<ComponentDefinition>(mKate);
// Create ComponentDefinition for Gal4VP16 coding sequence
ComponentDefinition& Gal4VP16_cds = *new ComponentDefinition("Gal4VP16_cds", BIOPAX_DNA, version);
Gal4VP16_cds.roles.set(SO_CDS);
doc.add<ComponentDefinition>(Gal4VP16_cds);
// Create ComponentDefintion for Gal4VP16 gene
ComponentDefinition& Gal4VP16_gene = *new ComponentDefinition("Gal4VP16_gene", BIOPAX_DNA, version);
Gal4VP16_gene.roles.set(SO_PROMOTER);
doc.add<ComponentDefinition>(Gal4VP16_gene);
SequenceConstraint &GAL4VP16_gene_constraint = Gal4VP16_gene.sequenceConstraints.create("GAL4VP16_gene_constraint");
GAL4VP16_gene_constraint.subject.set(pConst.identity.get());
GAL4VP16_gene_constraint.object.set(Gal4VP16_cds.identity.get());
GAL4VP16_gene_constraint.restriction.set(SBOL_RESTRICTION_PRECEDES);
// Create ComponentDefintion for Gal4VP16 protein
ComponentDefinition& Gal4VP16 = *new ComponentDefinition("Gal4VP16", BIOPAX_PROTEIN, version);
doc.add<ComponentDefinition>(Gal4VP16);
// Create ComponentDefinition for CRP_b promoter
ComponentDefinition& CRP_b = *new ComponentDefinition("CRP_b", BIOPAX_DNA, version);
doc.add<ComponentDefinition>(CRP_b);
CRP_b.roles.set(SO_PROMOTER);
Sequence& CRP_b_seq = doc.get < Sequence > ( CRP_b.sequence.create("CRP_b_seq") );
CRP_b_seq.elements.set(CRP_b_seq_elements);
// Create ComponentDefintiion for EYFP coding sequence
ComponentDefinition& EYFP_cds = *new ComponentDefinition("EYFP_cds", BIOPAX_DNA, version);
EYFP_cds.roles.set(SO_CDS);
doc.add<ComponentDefinition>(EYFP_cds);
// Create ComponentDefinition for EYFP gene
ComponentDefinition& EYFP_gene = *new ComponentDefinition("EYFP_gene", BIOPAX_DNA, version);
EYFP_gene.roles.set(SO_PROMOTER);
doc.add<ComponentDefinition>(EYFP_gene);
SequenceConstraint &EYFP_gene_constraint = EYFP_gene.sequenceConstraints.create("EYFP_gene_constraint");
EYFP_gene_constraint.subject.set(CRP_b.identity.get());
EYFP_gene_constraint.object.set(EYFP_cds.identity.get());
EYFP_gene_constraint.restriction.set(SBOL_RESTRICTION_PRECEDES);
// Create ComponentDefintiion for EYFP protein
ComponentDefinition& EYFP = *new ComponentDefinition("EYFP", BIOPAX_PROTEIN, version);
doc.add<ComponentDefinition>(EYFP);
// Create ModuleDefintion for CRISPR Repression
ModuleDefinition &CRPb_circuit = *new ModuleDefinition("CRPb_characterization_Circuit", version);
doc.add<ModuleDefinition>(CRPb_circuit);
// Create the FunctionalComponents for the ModuleDefinition CRISPR_Repression
//how to associate CD? cas9m_BFP
FunctionalComponent &cas9m_BFP_fc = CRPb_circuit.functionalComponents.create("cas9m_BFP");
cas9m_BFP_fc.definition.set(cas9m_BFP.identity.get());
cas9m_BFP_fc.access.set(SBOL_ACCESS_PRIVATE);
cas9m_BFP_fc.direction.set(SBOL_DIRECTION_NONE);
cas9m_BFP_fc.version.set(version);
//how to associate CD? cas9m_BFP_gene
FunctionalComponent &cas9m_BFP_gene_fc = CRPb_circuit.functionalComponents.create("cas9m_BFP_gene");
cas9m_BFP_gene_fc.definition.set(cas9m_BFP_gene.identity.get());
cas9m_BFP_gene_fc.access.set(SBOL_ACCESS_PRIVATE);
cas9m_BFP_gene_fc.direction.set(SBOL_DIRECTION_NONE);
cas9m_BFP_gene_fc.version.set(version);
//how to associate CD? gRNA_b
FunctionalComponent &gRNA_b_fc = CRPb_circuit.functionalComponents.create("gRNA_b");
gRNA_b_fc.definition.set(gRNA_b.identity.get());
gRNA_b_fc.access.set(SBOL_ACCESS_PRIVATE);
gRNA_b_fc.direction.set(SBOL_DIRECTION_NONE);
gRNA_b_fc.version.set(version);
//how to associate CD? gRNA_b_gene
FunctionalComponent &gRNA_b_gene_fc = CRPb_circuit.functionalComponents.create("gRNA_b_gene");
gRNA_b_gene_fc.definition.set(gRNA_b_gene.identity.get());
gRNA_b_gene_fc.access.set(SBOL_ACCESS_PRIVATE);
gRNA_b_gene_fc.direction.set(SBOL_DIRECTION_NONE);
gRNA_b_gene_fc.version.set(version);
//how to associate CD? mKate
FunctionalComponent &mKate_fc = CRPb_circuit.functionalComponents.create("mKate");
mKate_fc.definition.set(mKate.identity.get());
mKate_fc.access.set(SBOL_ACCESS_PRIVATE);
mKate_fc.direction.set(SBOL_DIRECTION_NONE);
mKate_fc.version.set(version);
//how to associate CD? mKate_gene
FunctionalComponent &mKate_gene_fc = CRPb_circuit.functionalComponents.create("mKate_gene");
mKate_gene_fc.definition.set(mKate_gene.identity.get());
mKate_gene_fc.access.set(SBOL_ACCESS_PRIVATE);
mKate_gene_fc.direction.set(SBOL_DIRECTION_NONE);
mKate_gene_fc.version.set(version);
//how to associate CD? Gal4VP16
FunctionalComponent &Gal4VP16_fc = CRPb_circuit.functionalComponents.create("Gal4VP16");
Gal4VP16_fc.definition.set(Gal4VP16.identity.get());
Gal4VP16_fc.access.set(SBOL_ACCESS_PRIVATE);
Gal4VP16_fc.direction.set(SBOL_DIRECTION_NONE);
Gal4VP16_fc.version.set(version);
//how to associate CD? Gal4VP16_gene
FunctionalComponent &Gal4VP16_gene_fc = CRPb_circuit.functionalComponents.create("Gal4VP16_gene");
Gal4VP16_gene_fc.definition.set(Gal4VP16_gene.identity.get());
Gal4VP16_gene_fc.access.set(SBOL_ACCESS_PRIVATE);
Gal4VP16_gene_fc.direction.set(SBOL_DIRECTION_NONE);
Gal4VP16_gene_fc.version.set(version);
//how to associate CD? EYFP
FunctionalComponent &EYFP_fc = CRPb_circuit.functionalComponents.create("EYFP");
EYFP_fc.definition.set(EYFP.identity.get());
EYFP_fc.access.set(SBOL_ACCESS_PRIVATE);
EYFP_fc.direction.set(SBOL_DIRECTION_NONE);
EYFP_fc.version.set(version);
//how to associate CD? EYFP_gene
FunctionalComponent &EYFP_gene_fc = CRPb_circuit.functionalComponents.create("EYFP_gene");
EYFP_gene_fc.definition.set(EYFP_gene.identity.get());
EYFP_gene_fc.access.set(SBOL_ACCESS_PRIVATE);
EYFP_gene_fc.direction.set(SBOL_DIRECTION_NONE);
EYFP_gene_fc.version.set(version);
//how to associate CD? cas9m_BFP_gRNA_b
FunctionalComponent &cas9m_BFP_gRNA_b_fc = CRPb_circuit.functionalComponents.create("cas9m_BFP_gRNA_b");
cas9m_BFP_gRNA_b_fc.definition.set(cas9m_BFP_gRNA_b.identity.get());
cas9m_BFP_gRNA_b_fc.access.set(SBOL_ACCESS_PRIVATE);
cas9m_BFP_gRNA_b_fc.direction.set(SBOL_DIRECTION_NONE);
cas9m_BFP_gRNA_b_fc.version.set(version);
/* Production of mKate from the mKate gene */
Interaction &mKate_production = CRPb_circuit.interactions.create("mKate_production");
mKate_production.types.add(SBO_GENETIC_PRODUCTION);
Participation &mKate_participation = mKate_production.participations.create("mKate");
mKate_participation.roles.set(SBO_PRODUCT);
mKate_participation.participant.set(mKate.identity.get());
Participation &mKate_gene_participation = mKate_production.participations.create("mKate_gene");
mKate_gene_participation.roles.set(SBO_PROMOTER);
mKate_gene_participation.participant.set(mKate_gene.identity.get());
// Production of GAL4VP16 from the GAL4VP16 gene
Interaction &GAL4VP16_production = CRPb_circuit.interactions.create("Gal4VP16_production");
GAL4VP16_production.types.add(SBO_GENETIC_PRODUCTION);
Participation &Gal4VP16_gene_participation = GAL4VP16_production.participations.create("Gal4VP16_gene");
Gal4VP16_gene_participation.roles.set(SBO_PROMOTER);
Gal4VP16_gene_participation.participant.set(Gal4VP16_gene.identity.get());
Participation &Gal4VP16_participation1 = GAL4VP16_production.participations.create("Gal4VP16");
Gal4VP16_participation1.roles.set(SBO_PRODUCT);
Gal4VP16_participation1.participant.set(Gal4VP16.identity.get());
// Production of cas9m_BFP from the cas9m_BFP gene
Interaction &cas9m_BFP_production = CRPb_circuit.interactions.create("cas9m_BFP_production");
cas9m_BFP_production.types.add(SBO_GENETIC_PRODUCTION);
Participation &cas9m_BFP_gene_participation = cas9m_BFP_production.participations.create("cas9m_BFP_gene");
cas9m_BFP_gene_participation.roles.set(SBO_PROMOTER);
cas9m_BFP_gene_participation.participant.set(cas9m_BFP_gene.identity.get());
Participation &cas9m_BFP_participation = cas9m_BFP_production.participations.create("cas9m_BFP");
cas9m_BFP_participation.roles.set(SBO_PRODUCT);
cas9m_BFP_participation.participant.set(cas9m_BFP.identity.get());
// Production of gRNA_b from the gRNA_b gene
Interaction &gRNA_b_production = CRPb_circuit.interactions.create("gRNA_b_production");
gRNA_b_production.types.set(SBO_GENETIC_PRODUCTION);
Participation &gRNA_b_gene_participation = gRNA_b_production.participations.create("gRNA_b_gene");
gRNA_b_gene_participation.roles.set(SBO_PROMOTER);
gRNA_b_gene_participation.participant.set(gRNA_b_gene.identity.get());
Participation &gRNA_b_participation = gRNA_b_production.participations.create("gRNA_b");
gRNA_b_participation.roles.set(SBO_PRODUCT);
gRNA_b_participation.participant.set(gRNA_b.identity.get());
// Activation of EYFP production by GAL4VP16
Interaction &EYFP_Activation = CRPb_circuit.interactions.create("EYFP_Activation");
EYFP_Activation.types.set(SBO_STIMULATION);
Participation &Gal4VP16_participation = EYFP_Activation.participations.create("Gal4VP16");
Gal4VP16_participation.roles.set(SBO_STIMULATOR);
Gal4VP16_participation.participant.set(Gal4VP16.identity.get());
Participation &EYFP_gene_participation = EYFP_Activation.participations.create("EYFP_gene");
EYFP_gene_participation.roles.set(SBO_PROMOTER);
EYFP_gene_participation.participant.set(EYFP_gene.identity.get());
// Degradation of mKate
Interaction &mKate_deg = CRPb_circuit.interactions.create("mKate_deg");
mKate_deg.types.set(SBO_GENETIC_PRODUCTION); //SBO_DEGRADATION??
Participation &mKate_participation1 = mKate_deg.participations.create("mKate");
mKate_participation1.roles.set(SBO_REACTANT);
mKate_participation1.participant.set(mKate.identity.get());
// Degradation of GAL4VP16
Interaction &GAL4VP16_deg = CRPb_circuit.interactions.create("Gal4VP16_deg"); //role: SBO_GENETIC_DEGRADATION
GAL4VP16_deg.types.set(SBO_GENETIC_PRODUCTION); //SBO_DEGRADATION
Participation &Gal4VP16_participation2 = GAL4VP16_deg.participations.create("Gal4VP16"); //role: SBO_REACTANT
Gal4VP16_participation2.roles.set(SBO_REACTANT);
Gal4VP16_participation2.participant.set(Gal4VP16.identity.get());
// Degradation of cas9m_BFP
Interaction &cas9m_BFP_deg = CRISPR_Template.interactions.create("cas9m_BFP_deg"); //role: SBO_GENETIC_DEGRADATION
cas9m_BFP_deg.types.set(SBO_GENETIC_PRODUCTION); //SBO_DEGRADATION
Participation &cas9m_BFP_participation1 = cas9m_BFP_deg.participations.create("cas9m_BFP"); //role: SBO_REACTANT
cas9m_BFP_participation1.roles.set(SBO_REACTANT);
cas9m_BFP_participation1.participant.set(cas9m_BFP.identity.get());
// Degradation of gRNA_b
Interaction &gRNA_b_deg = CRISPR_Template.interactions.create("gRNA_b_deg"); //role: SBO_GENETIC_DEGRADATION
gRNA_b_deg.types.set(SBO_GENETIC_PRODUCTION); //SBO_DEGRADATION
Participation &gRNA_b_participation1 = gRNA_b_deg.participations.create("gRNA_b"); //role: SBO_REACTANT
gRNA_b_participation1.roles.set(SBO_REACTANT);
gRNA_b_participation1.participant.set(gRNA_b.identity.get());
// Degradation of EYFP
Interaction &EYFP_deg = CRPb_circuit.interactions.create("EYFP_deg"); //role: SBO_GENETIC_DEGRADATION
GAL4VP16_deg.types.set(SBO_GENETIC_PRODUCTION); //SBO_DEGRADATION
Participation &EYFP_participation = EYFP_deg.participations.create("EYFP"); //role: SBO_REACTANT
EYFP_participation.roles.set(SBO_REACTANT);
EYFP_participation.participant.set(EYFP.identity.get());
// Degradation of cas9m_BFP_gRNA_b
Interaction &cas9m_BFP_gRNA_b_deg = CRPb_circuit.interactions.create("cas9m_BFP_gRNA_b_deg"); //role: SBO_GENETIC_DEGRADATION
cas9m_BFP_gRNA_b_deg.types.set(SBO_GENETIC_PRODUCTION); //SBO_DEGRADATION
Participation &cas9m_BFP_gRNA_b_participation = cas9m_BFP_gRNA_b_deg.participations.create("cas9m_BFP_gRNA_b"); //role: SBO_REACTANT
cas9m_BFP_gRNA_b_participation.roles.set(SBO_REACTANT);
cas9m_BFP_gRNA_b_participation.participant.set(cas9m_BFP_gRNA_b.identity.get());
// Create Template Module
Module &Template_Module = *new Module("Template_Module", version);
CRPb_circuit.modules.add(Template_Module);
//CRPb_circuit.assemble(Template_Module);
// Add MapsTos to Template Module
MapsTo &cas9m_BFP_map = Template_Module.mapsTos.create("cas9m_BFP_map");
cas9m_BFP_map.refinement.set(SBOL_REFINEMENT_USE_LOCAL);
cas9m_BFP_map.local.set(cas9m_BFP.identity.get());
cas9m_BFP_map.remote.set(cas9_generic.identity.get());
MapsTo &gRNA_b_map = Template_Module.mapsTos.create("gRNA_b_map");
gRNA_b_map.refinement.set(SBOL_REFINEMENT_USE_LOCAL);
gRNA_b_map.local.set(gRNA_b.identity.get());
gRNA_b_map.remote.set(gRNA_generic.identity.get());
MapsTo &cas9m_BFP_gRNA_map = Template_Module.mapsTos.create("cas9m_BFP_gRNA_map");
cas9m_BFP_gRNA_map.refinement.set(SBOL_REFINEMENT_USE_LOCAL);
cas9m_BFP_gRNA_map.local.set(cas9m_BFP_gRNA_b.identity.get());
cas9m_BFP_gRNA_map.remote.set(cas9_generic.identity.get());
MapsTo &EYFP_map = Template_Module.mapsTos.create("EYFP_map");
EYFP_map.refinement.set(SBOL_REFINEMENT_USE_LOCAL);
EYFP_map.local.set(EYFP.identity.get());
EYFP_map.remote.set(target.identity.get());
MapsTo &EYFP_gene_map = Template_Module.mapsTos.create("EYFP_gene_map");
EYFP_gene_map.refinement.set(SBOL_REFINEMENT_USE_LOCAL);
EYFP_gene_map.local.set(EYFP_gene.identity.get());
EYFP_gene_map.remote.set(target_gene.identity.get());
doc.write("crispr_repression_example.xml");
}