Skip to content

Commit 714460d

Browse files
author
Mengyao Zhao
committed
fixed conflict in pyssw.py
1 parent b940937 commit 714460d

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ EXAMPLE = example_c
1111
EXAMPLE_CPP = example_cpp
1212
JAVA_JAR = ssw.jar
1313
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
1515
JAVA_OBJ = ssw/Aligner.class ssw/Alignment.class ssw/Example.class
1616

1717
.PHONY: all default java clean
1818

1919
default: $(PROG) $(EXAMPLE) $(EXAMPLE_CPP) $(LIB)
2020
core: $(PROG)
21-
java: $(JAVA_JAR) $(JAVA_LIB)
21+
java: java_home $(JAVA_JAR) $(JAVA_LIB)
2222
all: default java
2323

2424
$(LIB): ssw.c ssw.h
@@ -47,7 +47,13 @@ $(JAVA_JAR): $(JAVA_OBJ)
4747

4848
%.class: %.java
4949
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+
5157
ssw.o: ssw.c ssw.h
5258
$(CC) -c -o $@ $< $(CFLAGS)
5359

src/pyssw.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Simple python wrapper for SSW library
44
Please put the path of libssw.so into LD_LIBRARY_PATH or pass it explicitly as a parameter
55
By Yongan Zhao (March 2016)
6-
Revised by Mengyao Zhao on 2022-May-20
6+
Revised by Mengyao Zhao on 2022-May-23
77
"""
88

99
import sys
@@ -224,13 +224,8 @@ def main(args):
224224
# assume the format of the input score matrix is the same as that of http://www.ncbi.nlm.nih.gov/Class/FieldGuide/BLOSUM62.txt
225225
lEle, dEle2Int, dInt2Ele, lScore = ssw_lib.read_matrix(args.sMatrix)
226226

227-
<<<<<<< pyssw_fixes
228-
if args.bBest and args.bProtein:
229-
print >> sys.stderr, 'Reverse complement alignment is not available for protein sequences.'
230-
=======
231227
if args.bBest and args.bProtien:
232228
sys.stderr.write('Reverse complement alignment is not available for protein sequences.\n')
233-
>>>>>>> master
234229

235230
# translate score matrix to ctypes
236231
mat = (len(lScore) * ct.c_int8) ()

0 commit comments

Comments
 (0)