| 1 |
package clump; |
| 2 |
|
| 3 |
public class KmerComparatorX extends KmerComparator2 { |
| 4 |
|
| 5 |
private KmerComparatorX(){} |
| 6 |
|
| 7 |
@Override |
| 8 |
public int compare(ReadKey a, ReadKey b){ |
| 9 |
|
| 10 |
if(a.kmer!=b.kmer){return a.kmer>b.kmer ? -1 : 1;} |
| 11 |
if(a.kmerMinusStrand!=b.kmerMinusStrand){return a.kmerMinusStrand ? 1 : -1;} |
| 12 |
if(a.position!=b.position){return a.position<b.position ? 1 : -1;} |
| 13 |
if(Clump.opticalOnly){ |
| 14 |
if(a.lane!=b.lane){return a.lane-b.lane;} |
| 15 |
if(!ReadKey.spanTilesX){ |
| 16 |
if(a.tile!=b.tile){return a.tile-b.tile;} |
| 17 |
} |
| 18 |
if(a.x!=b.x){return a.x-b.x;} |
| 19 |
} |
| 20 |
return 0; |
| 21 |
} |
| 22 |
|
| 23 |
static final KmerComparatorX comparator=new KmerComparatorX(); |
| 24 |
|
| 25 |
} |