File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ EXAMPLE = example_c
11
11
EXAMPLE_CPP = example_cpp
12
12
JAVA_JAR = ssw.jar
13
13
JAVA_LIB = libsswjni.so
14
- JAVA_INLCUDES = -I" $(JAVA_HOME ) /include" -I" $(JAVA_HOME ) /include/linux"
14
+ JAVA_INLCUDES = -I$(JAVA_HOME ) /include -I$(JAVA_HOME ) /include/linux
15
15
JAVA_OBJ = ssw/Aligner.class ssw/Alignment.class ssw/Example.class
16
16
17
17
.PHONY : all default java clean
18
18
19
19
default : $(PROG ) $(EXAMPLE ) $(EXAMPLE_CPP ) $(LIB )
20
20
core : $(PROG )
21
- java : $(JAVA_JAR ) $(JAVA_LIB )
21
+ java : java_home $(JAVA_JAR ) $(JAVA_LIB )
22
22
all : default java
23
23
24
24
$(LIB ) : ssw.c ssw.h
@@ -47,7 +47,13 @@ $(JAVA_JAR): $(JAVA_OBJ)
47
47
48
48
% .class : % .java
49
49
javac -cp ./ $<
50
-
50
+
51
+ java_home :
52
+ ifndef JAVA_HOME
53
+ @$(ECHO) "ERROR: Your JAVA_HOME environment variable is not set."
54
+ exit 1
55
+ endif
56
+
51
57
ssw.o : ssw.c ssw.h
52
58
$(CC ) -c -o $@ $< $(CFLAGS )
53
59
Original file line number Diff line number Diff line change 3
3
Simple python wrapper for SSW library
4
4
Please put the path of libssw.so into LD_LIBRARY_PATH or pass it explicitly as a parameter
5
5
By Yongan Zhao (March 2016)
6
- Revised by Mengyao Zhao on 2022-May-20
6
+ Revised by Mengyao Zhao on 2022-May-23
7
7
"""
8
8
9
9
import sys
@@ -224,13 +224,8 @@ def main(args):
224
224
# assume the format of the input score matrix is the same as that of http://www.ncbi.nlm.nih.gov/Class/FieldGuide/BLOSUM62.txt
225
225
lEle , dEle2Int , dInt2Ele , lScore = ssw_lib .read_matrix (args .sMatrix )
226
226
227
- < << << << pyssw_fixes
228
- if args .bBest and args .bProtein :
229
- print >> sys .stderr , 'Reverse complement alignment is not available for protein sequences.'
230
- == == == =
231
227
if args .bBest and args .bProtien :
232
228
sys .stderr .write ('Reverse complement alignment is not available for protein sequences.\n ' )
233
- > >> >> >> master
234
229
235
230
# translate score matrix to ctypes
236
231
mat = (len (lScore ) * ct .c_int8 ) ()
You can’t perform that action at this time.
0 commit comments