Hi, Okay if i so it like in the examples, it works but: How do i access "intervals" later in case i want to add an interval to the tree? then i would have to resize the "intervals" String? How does addInterval work? thanks! best, mat 2nd version >>> for(unsigned int n=0;n<numberOfContigs;++n){ std::cout << "NAME: " << fragStore.contigNameStore[n] << std::endl; std::cout << "LENGTH: " << length(fragStore.contigStore[n].seq) << std::endl; String<TInterval> intervals; resize(intervals,1); TInterval in; intervals[0].i1 = 0; intervals[0].i2 = length(fragStore.contigStore[n].seq); gip::MappedFragment f; intervals[0].cargo = f; TIntervalTree *tree = new TIntervalTree(intervals); contigMap[fragStore.contigNameStore[n]] = tree; } <<< Am 11/26/10 1:52 PM, schrieb Mat: Hey guys! |