| 1 |
package icecream; |
| 2 |
|
| 3 |
import aligner.AlignmentResult; |
| 4 |
import shared.Shared; |
| 5 |
|
| 6 |
public abstract class IceCreamAligner { |
| 7 |
|
| 8 |
public static IceCreamAligner makeAligner(int bits){ |
| 9 |
if(Shared.USE_JNI){ |
| 10 |
return new IceCreamAlignerJNI(); |
| 11 |
}else if(bits==32){ |
| 12 |
return new IceCreamAlignerJava(); |
| 13 |
} |
| 14 |
else{ |
| 15 |
throw new RuntimeException(""+bits); |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
public abstract AlignmentResult alignForward(final byte[] query, final byte[] ref, final int rstart, final int rstop, final int minScore, |
| 30 |
final float minRatio); |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
public abstract AlignmentResult alignForwardShort(final byte[] query, final byte[] ref, final int rstart, final int rstop, final int minScore, |
| 43 |
final float minRatio); |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
abstract long iters(); |
| 51 |
abstract long itersShort(); |
| 52 |
|
| 53 |
} |