PeteHaitch / cometh

An R package with tools for analysing, managing and visualising co-methylation data. Loosely speaking, co-methylation is the correlation structure of DNA methylation.
0 stars 1 forks source link

Possible to create 2-tuples with identical pos1 and pos2 #8

Closed PeteHaitch closed 10 years ago

PeteHaitch commented 10 years ago

The MTuples constructor allows for the creation of 2-tuples with identical pos1 and pos2 - it in fact silently converts these to 1-tuples. The desired behaviour is to report an error if pos1 equals pos2 for any 2-tuple.

PeteHaitch commented 10 years ago

Fix by requiring strict inequalities in allRowsSortedCpp, which is part of Rcpp-utilities.cpp and is called by the MTuples validator.