17 int main(
int argc,
char *argv[]) {
20 printf(
"Missing arguments\n Usage %s <probequality> <probelength> <output filename> [print]\n", argv[0]);
24 unsigned short quality = atoi(argv[1]);
25 unsigned short probelength = atoi(argv[2]);
26 const char *output_DB_name = argv[3];
28 printf(
"creating probe-set-database '%s'..", output_DB_name);
33 printf(
"making sample tree...");
36 for (
int id = 10;
id < 15; ++
id) {
40 for (
int pnr = 0; pnr < 5; ++pnr) {
42 new_probe->length = probelength;
43 new_probe->quality = quality;
44 new_probe->GC_content = (
unsigned short) (random() % probelength);
54 for (
int id = child->second->getNum()*100;
id < (child->second->getNum()*100)+10; ++
id) {
58 if (random() % 3 != 0) {
59 for (
int pnr = 0; pnr < 50; ++pnr) {
61 new_probe->length = probelength;
62 new_probe->quality = quality;
63 new_probe->GC_content = (
unsigned short) (random() % probelength);
68 child->second->addChild(new_child);
71 printf(
"done (enter to continue)\n");
76 printf(
"\n(enter to continue)\n");
86 printf(
"root should be destroyed now (enter to continue)\n");
PS_NodeMapIterator getChildrenBegin()
bool save(PS_FileBuffer *_fb)
void setNull()
set SmartPtr to NULp
int main(int argc, char *argv[])
PS_NodeMapIterator getChildrenEnd()
bool addProbe(const PS_ProbePtr &probe)
bool addChild(PS_NodePtr &_child)
PS_NodeMap::iterator PS_NodeMapIterator