Browse code

Fix for lowercase sequences; version number bumped to 1.29.3

UBod authored on 28/09/2022 11:24:00
Showing 4 changed files

... ...
@@ -1,8 +1,8 @@
1 1
 Package: msa
2 2
 Type: Package
3 3
 Title: Multiple Sequence Alignment
4
-Version: 1.29.2
5
-Date: 2022-06-24
4
+Version: 1.29.3
5
+Date: 2022-09-28
6 6
 Author: Enrico Bonatesta, Christoph Horejs-Kainrath, Ulrich Bodenhofer
7 7
 Maintainer: Ulrich Bodenhofer <bodenhofer@bioinf.jku.at>
8 8
 Description: The 'msa' package provides a unified R/Bioconductor interface to
... ...
@@ -53,7 +53,7 @@ transformInputSeq <- function(inputSeq) {
53 53
         }
54 54
     }
55 55
 
56
-    return(inputSeq)
56
+    return(toupper(inputSeq))
57 57
 }
58 58
 
59 59
 ###############################################################################
... ...
@@ -1,6 +1,11 @@
1 1
 Change history of package msa:
2 2
 ==============================
3 3
 
4
+Version 1.29.3:
5
+- fix for possibly malformed inputs: all sequences are forced to
6
+  uppercase characters (previously, ClustalW and ClustalOmega produced
7
+  wrong results when called with lowercase sequences)
8
+
4 9
 Version 1.29.2:
5 10
 - fix in texshade.sty as suggested on TeXshade homepage at CTAN
6 11
 
... ...
@@ -27,7 +32,7 @@ Version 1.27.1:
27 32
 Version 1.27.0:
28 33
 - new branch for Bioconductor 3.15 devel
29 34
 
30
-Version 1.26.0:
35
+Version 1.26.0: 
31 36
 - release as part of Bioconductor 3.14
32 37
 
33 38
 Version 1.25.3:
34 39
new file mode 100755
... ...
@@ -0,0 +1,57 @@
1
+## Variant 1: deactivate OpenMP on Mac Platforms
2
+CONFIGURE_FLAGS=`${R_HOME}/bin${R_ARCH_BIN}/Rscript -e "if (Sys.info()['sysname'] == 'Darwin') cat('--without-openmp')"`
3
+## Variant 2: deactivate OpenMP generally
4
+#CONFIGURE_FLAGS=--without-openmp 
5
+## Variant 3: let the configure script determine whether OpenMP is available
6
+#CONFIGURE_FLAGS=
7
+
8
+## Additional flag for compatibility on Mac OS
9
+MAC_FLAGS=`${R_HOME}/bin${R_ARCH_BIN}/Rscript -e "if (Sys.info()['sysname'] == 'Darwin') cat('-DMATH_H_CLIB')"`
10
+
11
+CPPNames=\
12
+exceptions4c/e4c_lite.c \
13
+argtable2/argtable2.c argtable2/arg_end.c argtable2/arg_rem.c argtable2/arg_lit.c argtable2/arg_int.c \
14
+argtable2/arg_dbl.c argtable2/arg_str.c argtable2/arg_file.c \
15
+kmpp/KMeans.cpp kmpp/KmTree.cpp kmpp/KmUtils.cpp \
16
+clustal/hhalign_wrapper.c clustal/ktuple_pair.c clustal/list.c clustal/log.c clustal/muscle_upgma.c \
17
+clustal/muscle_tree.c clustal/mbed.c clustal/pair_dist.c clustal/progress.c clustal/seq.c clustal/symmatrix.c \
18
+clustal/tree.c clustal/util.c clustal/weights.c \
19
+squid/a2m.c squid/aligneval.c squid/alignio.c squid/clustal.c squid/cluster.c squid/dayhoff.c squid/eps.c \
20
+squid/file.c squid/getopt.c squid/gki.c squid/gsi.c squid/gsi64.c squid/hsregex.c squid/iupac.c squid/msa.c \
21
+squid/msf.c squid/phylip.c squid/revcomp.c squid/rk.c squid/selex.c squid/seqencode.c squid/shuffle.c \
22
+squid/sqerror.c squid/sqio.c squid/squidcore.c squid/sre_ctype.c squid/sre_math.c squid/sre_random.c \
23
+squid/sre_string.c squid/ssi.c squid/stack.c squid/stockholm.c squid/stopwatch.c squid/translate.c \
24
+squid/types.c squid/vectorops.c squid/weight.c \
25
+hhalign/hhalign.cpp \
26
+RClustalOmega.cpp mymain.c clustal-omega.c
27
+
28
+OBJNames=\
29
+exceptions4c/e4c_lite.o \
30
+argtable2/argtable2.o argtable2/arg_end.o argtable2/arg_rem.o argtable2/arg_lit.o argtable2/arg_int.o \
31
+argtable2/arg_dbl.o argtable2/arg_str.o argtable2/arg_file.o \
32
+kmpp/KMeans.o kmpp/KmTree.o kmpp/KmUtils.o \
33
+clustal/hhalign_wrapper.o clustal/ktuple_pair.o clustal/list.o clustal/log.o clustal/muscle_upgma.o \
34
+clustal/muscle_tree.o clustal/mbed.o clustal/pair_dist.o clustal/progress.o clustal/seq.o clustal/symmatrix.o \
35
+clustal/tree.o clustal/util.o clustal/weights.o \
36
+squid/a2m.o squid/aligneval.o squid/alignio.o squid/clustal.o squid/cluster.o squid/dayhoff.o squid/eps.o \
37
+squid/file.o squid/getopt.o squid/gki.o squid/gsi.o squid/gsi64.o squid/hsregex.o squid/iupac.o squid/msa.o \
38
+squid/msf.o squid/phylip.o squid/revcomp.o squid/rk.o squid/selex.o squid/seqencode.o squid/shuffle.o \
39
+squid/sqerror.o squid/sqio.o squid/squidcore.o squid/sre_ctype.o squid/sre_math.o squid/sre_random.o \
40
+squid/sre_string.o squid/ssi.o squid/stack.o squid/stockholm.o squid/stopwatch.o squid/translate.o \
41
+squid/types.o squid/vectorops.o squid/weight.o \
42
+hhalign/hhalign.o \
43
+RClustalOmega.o mymain.o clustal-omega.o
44
+
45
+all: clustalomega
46
+
47
+removeopts=-pedantic -Wall -Wextra -Wpedantic -Weverything
48
+
49
+clustalomega:
50
+	./configure $(CONFIGURE_FLAGS); \
51
+	export PKG_LIBS="$(PKG_LIBS) $(SHLIB_OPENMP_CFLAGS)"; \
52
+	export PKG_CXXFLAGS="$(filter-out $(removeopts),$(PKG_CXXFLAGS)) $(SHLIB_OPENMP_CXXFLAGS) $(MAC_FLAGS) -std=c++98 -fPIC -DHAVE_CONFIG_H -I. -DCLUSTALO -DCLUSTALO_NOFILE -DDEFAULT_FILTER=90 -I../../gc-7.6.12/include -Wno-array-bounds -Wno-stringop-truncation"; \
53
+	export PKG_CFLAGS="$(PKG_CFLAGS) $(SHLIB_OPENMP_CFLAGS) -fPIC -DHAVE_CONFIG_H -I. -DCLUSTALO -DCLUSTALO_NOFILE -DDEFAULT_FILTER=90 -I../../gc-7.6.12/include -Wno-array-bounds -Wno-stringop-truncation"; \
54
+	cd src; \
55
+	${R_HOME}/bin${R_ARCH_BIN}/R CMD SHLIB -o libClustalOmega.so $(CPPNames) && \
56
+	ar rcs libClustalOmega.a $(OBJNames) && \
57
+	cp libClustalOmega.a ../../