ARB
Main Page
Namespaces
Classes
Files
File List
File Members
PRIMER_DESIGN
PRD_main.cxx
Go to the documentation of this file.
1
// =============================================================== //
2
// //
3
// File : PRD_main.cxx //
4
// Purpose : //
5
// //
6
// Coded by Wolfram Foerster in February 2001 //
7
// Institute of Microbiology (Technical University Munich) //
8
// http://www.arb-home.de/ //
9
// //
10
// =============================================================== //
11
12
#include "
PRD_Design.hxx
"
13
14
using namespace
std
;
15
16
const
char
*
test_seq1
=
"...AUU---CUGG--U-UGAU-C-C-U-G........................"
;
17
18
const
char
*
test_seq2
=
""
;
19
const
char
*
test_seq3
=
""
;
20
const
char
*
test_seq4
=
""
;
21
22
PrimerDesign
*
PD
;
23
24
int
main
() {
25
printf(
"before new PD enter to continue\n"
);
26
getchar();
27
28
PD =
new
PrimerDesign
(test_seq4);
29
if
(!PD->
setPositionalParameters
(
Range
(1000, 1300),
Range
(4800, 5000),
Range
(10, 20),
Range
(-1, -1))) {
30
printf(
"invalid positional parameters\n"
);
31
return
1;
32
}
33
PD->
setConditionalParameters
(
Range
(20, 40),
Range
(10, 80), -1,
true
, 20, 0.5, 0.5);
34
PD->
run
(
PrimerDesign::PRINT_PRIMER_PAIRS
);
35
36
delete
PD
;
37
}
38
PrimerDesign
Definition:
PRD_Design.hxx:29
test_seq2
const char * test_seq2
Definition:
PRD_main.cxx:18
test_seq1
const char * test_seq1
Definition:
PRD_main.cxx:16
main
int main()
Definition:
PRD_main.cxx:24
Range
Definition:
PRD_Range.hxx:8
std
STL namespace.
test_seq3
const char * test_seq3
Definition:
PRD_main.cxx:19
PrimerDesign::setPositionalParameters
void setPositionalParameters(Range pos1_, Range pos2_, Range length_, Range distance_)
Definition:
PRD_Design.cxx:83
test_seq4
const char * test_seq4
Definition:
PRD_main.cxx:20
PrimerDesign::run
void run()
Definition:
PRD_Design.cxx:151
PRD_Design.hxx
PrimerDesign::setConditionalParameters
void setConditionalParameters(Range ratio_, Range temperature_, int min_dist_to_next_, bool expand_IUPAC_Codes_, int max_count_primerpairs_, double GC_factor_, double temp_factor_)
Definition:
PRD_Design.cxx:126
PD
PrimerDesign * PD
Definition:
PRD_main.cxx:22
PrimerDesign::PRINT_PRIMER_PAIRS
static const int PRINT_PRIMER_PAIRS
Definition:
PRD_Design.hxx:155
Generated by
1.8.8