可以使用需要重新加载biojava.jar jar包代码是全的,不会可以问我。jar包在lib目录下面
输出结果:
Global alignment with Needleman-Wunsch:
Time (ms): 3
Length: 9
Score: 0
Query: query, Length: 9
Target: target, Length: 8
Query: 1 gccctagcg 9
|| | | |
Target: 1 gcgc-aatg 8
Local alignment with Smith-Waterman:
Time (ms): 0
Length: 3
Score: 3
Query: query, Length: 9
Target: target, Length: 8
Query: 7 gcg 9
|||
Target: 1 gcg 3
1