- System.out.println( "going to remove: " + getDvalueUnmapped( otu1, _mappings[ j ] ) + ", " + otu1 + ", "
- + _mappings[ j ] );
- _s.removePairing( getDvalueUnmapped( otu1, _mappings[ j ] ), otu1, _mappings[ j ] );
- System.out.println( "going to remove: " + getDvalue( j, otu2 ) + ", " + _mappings[ otu2 ] + ", "
- + _mappings[ j ] );
- _s.removePairing( getDvalue( j, otu2 ), _mappings[ otu2 ], _mappings[ j ] );
+ // System.out.println( "going to remove: " + getDvalueUnmapped( otu1, _mappings[ j ] ) + ", " + otu1 + ", "
+ // + _mappings[ j ] );
+
+ if ( otu1< _mappings[ j ] ) {
+ _s.removePairing( getDvalueUnmapped( otu1, _mappings[ j ] ), otu1, _mappings[ j ] );
+ }
+ else {
+ _s.removePairing( getDvalueUnmapped( otu1, _mappings[ j ] ), _mappings[ j ] , otu1 );
+ }
+
+
+ // System.out.println( "going to remove: " + getDvalue( j, otu2 ) + ", " +_mappings[ otu2 ] + ", "
+ // + _mappings[ j ] );
+
+ if ( _mappings[ otu2 ] < _mappings[ j ] ) {
+ _s.removePairing( getDvalue( j, otu2 ), _mappings[ otu2 ] , _mappings[ j ] );
+ }
+ else {
+ _s.removePairing( getDvalue( j, otu2 ) , _mappings[ j ], _mappings[ otu2 ] );
+
+ }
+