// mimic a PE read in which PE1 would cntain a majority of k_mers that are not already in the CMS and PE2 would contain a majority of k_mers that are already in the CMS.
// mimic a PE read in which PE1 contains k-mer that appear rarely in the CMS and PE2 contains k_mers that already appear kappa times in the CMS.
for(i=1;i<=200;i++){
read_values.single_or_PE_val.push_back(i*1000-1);
}
read_values.idx_start_PE2=199;
read_values.idx_start_PE2=200;
for(i=1;i<=239;i++){
read_values.single_or_PE_val.push_back(num);
}
read_values.single_or_PE_val.push_back(50);
read_values.single_or_PE_val.push_back(55);
ret=cms->addRead(read_values);// read should be accepted since none of the values that it contains is equal to those I inserted previously.
ret=cms->addRead(read_values);// read should be accepted since PE1 is nor over covered.
assert(ret>0);
ret=cms->isBeneathMinKappa(read_values);// read should not be considered under covered since only PE1 is under covered.
assert(ret==0);
// Now, change PE1 a little and insert it kappa times in the CMS
for(intj=1;j<kappa;j++){
read_values.single_or_PE_val[2]=j;
ret=cms->addRead(read_values);
if(j<kappa-1)assert(ret>0);// read should be accepted as long as we haven't inserted PE1 kappa times.
elseassert(ret>0);//otherwise it is rejected.
}
ret=cms->isBeneathMinKappa(read_values);// read should not be considered under covered since PE1 was inserted kappa times.