Browse code

various fixes; version number bumped to 1.27.1

UBodenhofer authored on 17/02/2022 12:58:20
Showing 17 changed files

... ...
@@ -1,8 +1,8 @@
1 1
 Package: msa
2 2
 Type: Package
3 3
 Title: Multiple Sequence Alignment
4
-Version: 1.27.0
5
-Date: 2021-10-20
4
+Version: 1.27.1
5
+Date: 2022-02-17
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
... ...
@@ -16,10 +16,10 @@ Description: The 'msa' package provides a unified R/Bioconductor interface to
16 16
 URL: http://www.bioinf.jku.at/software/msa/
17 17
 License: GPL (>= 2)
18 18
 Copyright: See file inst/COPYRIGHT
19
-Depends: R (>= 3.1.0), methods, Biostrings (>= 2.40.0)
19
+Depends: R (>= 3.3.0), methods, Biostrings (>= 2.40.0)
20 20
 Imports: Rcpp (>= 0.11.1), BiocGenerics, IRanges (>= 1.20.0),
21 21
         S4Vectors, tools
22
-Suggests: Biobase, knitr, seqinr, ape, phangorn
22
+Suggests: Biobase, knitr, seqinr, ape (>= 5.1), phangorn
23 23
 LinkingTo: Rcpp
24 24
 SystemRequirements: GNU make
25 25
 VignetteBuilder: knitr
... ...
@@ -33,9 +33,10 @@ msaConvert <- function(x, type=c("seqinr::alignment",
33 33
             stop("conversion to 'ape::AAbin' only supported for ",
34 34
                  "amino acid sequences")
35 35
 
36
-        out <- .Call("SplitCharVector2Matrix", xn, "X")
37
-        rownames(out) <- names(xn)
38
-        class(out) <- "AAbin"
36
+        if (requireNamespace("ape", quietly=TRUE))
37
+            out <- ape::as.AAbin(x)
38
+        else
39
+            stop("conversion to 'AAbin' requires package 'ape'")
39 40
     }
40 41
     else if (type == "ape::DNAbin")
41 42
     {
... ...
@@ -43,9 +44,10 @@ msaConvert <- function(x, type=c("seqinr::alignment",
43 44
             stop("conversion to 'ape::DNAbin' only supported for ",
44 45
                  "DNA sequences")
45 46
 
46
-        out <- .Call("SplitCharVector2Matrix", tolower(xn), "n")
47
-        rownames(out) <- names(xn)
48
-        class(out) <- "DNAbin"
47
+        if (requireNamespace("ape", quietly=TRUE))
48
+            out <- ape::as.DNAbin(x)
49
+        else
50
+            stop("conversion to 'DNAbin' requires package 'ape'")
49 51
     }
50 52
     else if (type == "phangorn::phyDat")
51 53
     {
... ...
@@ -1,6 +1,19 @@
1 1
 Change history of package msa:
2 2
 ==============================
3 3
 
4
+Version 1.27.1:
5
+- workaround for problems running texi2dvi() on R 4.2.0; those occurred 
6
+  during package checks when running some examples and the vignette code
7
+- updated URLs and DOIs (now requires R version >= 3.3.0)
8
+- fixed msaConvert() function to now work well with newer versions of the
9
+  'ape' package (now requires at least version 5.2)
10
+
11
+Version 1.27.0:
12
+- new branch for Bioconductor 3.15 devel
13
+
14
+Version 1.26.0:
15
+- release as part of Bioconductor 3.14
16
+
4 17
 Version 1.25.3:
5 18
 - further changes to get rid of compiler warnings
6 19
 
... ...
@@ -43,7 +43,7 @@ The following slots are defined for \code{MsaMetaData} objects:
43 43
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
44 44
   (2015). msa: an R package for multiple sequence alignment. 
45 45
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
46
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
46
+  \doi{10.1093/bioinformatics/btv494}.
47 47
 }
48 48
 \seealso{\code{\link{msa}}, \code{\link{msaClustalW}},
49 49
   \code{\link{msaClustalOmega}}, \code{\link{msaMuscle}},
... ...
@@ -118,7 +118,7 @@
118 118
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
119 119
   (2015). msa: an R package for multiple sequence alignment. 
120 120
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
121
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
121
+  \doi{10.1093/bioinformatics/btv494}.
122 122
 }
123 123
 \seealso{\code{\link{msa}}, \code{\link{msaClustalW}},
124 124
   \code{\link{msaClustalOmega}}, \code{\link{msaMuscle}},
... ...
@@ -31,36 +31,36 @@
31 31
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
32 32
   (2015). msa: an R package for multiple sequence alignment. 
33 33
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
34
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
34
+  \doi{10.1093/bioinformatics/btv494}.
35 35
 
36 36
   Thompson, J. D., Higgins, D. G., and Gibson, T. J. (1994)
37 37
   CLUSTAL W: improving the sensitivity of progressive multiple sequence
38 38
   alignment through sequence weighting, position-specific gap penalties
39 39
   and weight matrix choice.
40 40
   \emph{Nucleic Acids Res.} \bold{22}(22):4673-4680. DOI:
41
-  \href{http://dx.doi.org/10.1093/nar/22.22.4673}{10.1093/nar/22.22.4673}.
41
+  \doi{10.1093/nar/22.22.4673}.
42 42
 
43 43
   Sievers, F., Wilm, A., Dineen, D., Gibson, T. J., Karplus, K., Li, W.,
44 44
   Lopez, R., McWilliam, H., Remmert, M., Soeding, J., Thompson, J. D.,
45 45
   and Higgins, D. G. (2011) Fast, scalable generation of high-quality
46 46
   protein multiple sequence alignments using Clustal Omega.
47 47
   \emph{Mol. Syst. Biol.} \bold{7}:539. DOI:
48
-  \href{http://dx.doi.org/10.1038/msb.2011.75}{10.1038/msb.2011.75}.
48
+  \doi{10.1038/msb.2011.75}.
49 49
 
50 50
   Edgar, R. C. (2004) MUSCLE: multiple sequence alignment with high 
51 51
   accuracy and high throughput.
52 52
   \emph{Nucleic Acids Res.} \bold{32}(5):1792-1797. DOI:
53
-  \href{http://dx.doi.org/10.1093/nar/gkh340}{10.1093/nar/gkh340}.
53
+  \doi{10.1093/nar/gkh340}.
54 54
 
55 55
   Edgar, R. C. (2004) MUSCLE: a multiple sequence alignment method 
56 56
   with reduced time and space complexity.
57 57
   \emph{BMC Bioinformatics} \bold{5}:113. DOI:
58
-  \href{http://dx.doi.org/10.1186/1471-2105-5-113}{10.1186/1471-2105-5-113}.
58
+  \doi{10.1186/1471-2105-5-113}.
59 59
 
60 60
   Beitz, E. (2000) TeXshade: shading and labeling of multiple
61 61
   sequence alignments using LaTeX2e
62 62
   \emph{Bioinformatics} \bold{16}(2):135-139. DOI:
63
-  \href{http://dx.doi.org/10.1093/bioinformatics/16.2.135}{10.1093/bioinformatics/16.2.135}.
63
+  \doi{10.1093/bioinformatics/16.2.135}.
64 64
 }  
65 65
 \seealso{\code{\link{msa}},  \code{\link{msaClustalW}},
66 66
   \code{\link{msaClustalOmega}}, \code{\link{msaMuscle}},
... ...
@@ -135,7 +135,7 @@
135 135
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
136 136
   (2015). msa: an R package for multiple sequence alignment. 
137 137
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
138
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
138
+  \doi{10.1093/bioinformatics/btv494}.
139 139
  
140 140
   \url{http://www.clustal.org/download/clustalw_help.txt}
141 141
 
... ...
@@ -148,24 +148,24 @@
148 148
   alignment through sequence weighting, position-specific gap penalties
149 149
   and weight matrix choice.
150 150
   \emph{Nucleic Acids Res.} \bold{22}(22):4673-4680. DOI:
151
-  \href{http://dx.doi.org/10.1093/nar/22.22.4673}{10.1093/nar/22.22.4673}.
151
+  \doi{10.1093/nar/22.22.4673}.
152 152
 
153 153
   Sievers, F., Wilm, A., Dineen, D., Gibson, T. J., Karplus, K., Li, W.,
154 154
   Lopez, R., McWilliam, H., Remmert, M., Soeding, J., Thompson, J. D.,
155 155
   and Higgins, D. G. (2011) Fast, scalable generation of high-quality
156 156
   protein multiple sequence alignments using Clustal Omega.
157 157
   \emph{Mol. Syst. Biol.} \bold{7}:539. DOI:
158
-  \href{http://dx.doi.org/10.1038/msb.2011.75}{10.1038/msb.2011.75}.
158
+  \doi{10.1038/msb.2011.75}.
159 159
 
160 160
   Edgar, R. C. (2004) MUSCLE: multiple sequence alignment with high 
161 161
   accuracy and high throughput.
162 162
   \emph{Nucleic Acids Res.} \bold{32}(5):1792-1797. DOI:
163
-  \href{http://dx.doi.org/10.1093/nar/gkh340}{10.1093/nar/gkh340}.
163
+  \doi{10.1093/nar/gkh340}.
164 164
 
165 165
   Edgar, R. C. (2004) MUSCLE: a multiple sequence alignment method 
166 166
   with reduced time and space complexity.
167 167
   \emph{BMC Bioinformatics} \bold{5}:113. DOI:
168
-  \href{http://dx.doi.org/10.1186/1471-2105-5-113}{10.1186/1471-2105-5-113}.
168
+  \doi{10.1186/1471-2105-5-113}.
169 169
 }  
170 170
 \seealso{\code{\link{msaClustalW}},
171 171
   \code{\link{msaClustalOmega}}, \code{\link{msaMuscle}},
... ...
@@ -65,7 +65,7 @@
65 65
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
66 66
   (2015). msa: an R package for multiple sequence alignment. 
67 67
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
68
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
68
+  \doi{10.1093/bioinformatics/btv494}.
69 69
 }
70 70
 \seealso{\code{\link{msaPrettyPrint}},
71 71
   \code{\linkS4class{MsaAAMultipleAlignment}},
... ...
@@ -83,7 +83,7 @@
83 83
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
84 84
   (2015). msa: an R package for multiple sequence alignment. 
85 85
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
86
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
86
+  \doi{10.1093/bioinformatics/btv494}.
87 87
 
88 88
   \url{http://www.clustal.org/omega/README}
89 89
   
... ...
@@ -92,7 +92,7 @@
92 92
   and Higgins, D. G. (2011) Fast, scalable generation of high-quality
93 93
   protein multiple sequence alignments using Clustal Omega.
94 94
   \emph{Mol. Syst. Biol.} \bold{7}:539. DOI:
95
-  \href{http://dx.doi.org/10.1038/msb.2011.75}{10.1038/msb.2011.75}.
95
+  \doi{10.1038/msb.2011.75}.
96 96
 }
97 97
 \seealso{\code{\link{msa}}, \code{\linkS4class{MsaAAMultipleAlignment}},
98 98
   \code{\linkS4class{MsaDNAMultipleAlignment}},
... ...
@@ -87,7 +87,7 @@
87 87
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
88 88
   (2015). msa: an R package for multiple sequence alignment. 
89 89
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
90
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
90
+  \doi{10.1093/bioinformatics/btv494}.
91 91
  
92 92
   \url{http://www.clustal.org/download/clustalw_help.txt}
93 93
 
... ...
@@ -96,7 +96,7 @@
96 96
   alignment through sequence weighting, position-specific gap penalties
97 97
   and weight matrix choice.
98 98
   \emph{Nucleic Acids Res.} \bold{22}(22):4673-4680. DOI:
99
-  \href{http://dx.doi.org/10.1093/nar/22.22.4673}{10.1093/nar/22.22.4673}.
99
+  \doi{10.1093/nar/22.22.4673}.
100 100
 }
101 101
 \seealso{\code{\link{msa}}, \code{\linkS4class{MsaAAMultipleAlignment}},
102 102
   \code{\linkS4class{MsaDNAMultipleAlignment}},
... ...
@@ -85,7 +85,7 @@
85 85
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
86 86
   (2015). msa: an R package for multiple sequence alignment. 
87 87
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
88
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
88
+  \doi{10.1093/bioinformatics/btv494}.
89 89
 }
90 90
 \seealso{\code{\link{msa}}, \code{\linkS4class{MsaAAMultipleAlignment}},
91 91
   \code{\linkS4class{MsaDNAMultipleAlignment}},
... ...
@@ -90,7 +90,7 @@
90 90
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
91 91
   (2015). msa: an R package for multiple sequence alignment. 
92 92
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
93
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
93
+  \doi{10.1093/bioinformatics/btv494}.
94 94
 }
95 95
 \seealso{\code{\link{msa}}, \code{\linkS4class{MsaAAMultipleAlignment}},
96 96
   \code{\linkS4class{MsaDNAMultipleAlignment}},
... ...
@@ -67,7 +67,7 @@
67 67
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
68 68
   (2015). msa: an R package for multiple sequence alignment. 
69 69
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
70
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
70
+  \doi{10.1093/bioinformatics/btv494}.
71 71
 }
72 72
 \seealso{\code{\link{msa}}, \code{\linkS4class{MsaAAMultipleAlignment}},
73 73
   \code{\linkS4class{MsaDNAMultipleAlignment}},
... ...
@@ -92,19 +92,19 @@
92 92
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
93 93
   (2015). msa: an R package for multiple sequence alignment. 
94 94
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
95
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
95
+  \doi{10.1093/bioinformatics/btv494}.
96 96
 
97 97
   \url{http://www.drive5.com/muscle/muscle.html}
98 98
   
99 99
   Edgar, R. C. (2004) MUSCLE: multiple sequence alignment with high 
100 100
   accuracy and high throughput.
101 101
   \emph{Nucleic Acids Res.} \bold{32}(5):1792-1797. DOI:
102
-  \href{http://dx.doi.org/10.1093/nar/gkh340}{10.1093/nar/gkh340}.
102
+  \doi{10.1093/nar/gkh340}.
103 103
 
104 104
   Edgar, R. C. (2004) MUSCLE: a multiple sequence alignment method 
105 105
   with reduced time and space complexity.
106 106
   \emph{BMC Bioinformatics} \bold{5}:113. DOI:
107
-  \href{http://dx.doi.org/10.1186/1471-2105-5-113}{10.1186/1471-2105-5-113}.
107
+  \doi{10.1186/1471-2105-5-113}.
108 108
 }
109 109
 \seealso{\code{\link{msa}}, \code{\linkS4class{MsaAAMultipleAlignment}},
110 110
   \code{\linkS4class{MsaDNAMultipleAlignment}},
... ...
@@ -199,14 +199,14 @@
199 199
   U. Bodenhofer, E. Bonatesta, C. Horejs-Kainrath, and S. Hochreiter
200 200
   (2015). msa: an R package for multiple sequence alignment. 
201 201
   \emph{Bioinformatics} \bold{31}(24):3997-3999. DOI:
202
-  \href{http://dx.doi.org/10.1093/bioinformatics/btv494}{10.1093/bioinformatics/btv494}.
202
+  \doi{10.1093/bioinformatics/btv494}.
203 203
 
204 204
   \url{https://www.ctan.org/pkg/texshade}
205 205
 
206 206
   Beitz, E. (2000) TeXshade: shading and labeling of multiple
207 207
   sequence alignments using LaTeX2e
208 208
   \emph{Bioinformatics} \bold{16}(2):135-139. DOI:
209
-  \href{http://dx.doi.org/10.1093/bioinformatics/16.2.135}{10.1093/bioinformatics/16.2.135}.
209
+  \doi{10.1093/bioinformatics/16.2.135}.
210 210
 }
211 211
 \seealso{\code{\link{msaCheckNames}}
212 212
 }
... ...
@@ -223,6 +223,7 @@ myAlignment <- msa(mySeqs)
223 223
 msaPrettyPrint(myAlignment, output="asis", askForOverwrite=FALSE)
224 224
 
225 225
 ## create PDF file according to some custom settings
226
+\dontrun{
226 227
 tmpFile <- tempfile(pattern="msa", tmpdir=".", fileext=".pdf")
227 228
 tmpFile
228 229
 msaPrettyPrint(myAlignment, file=tmpFile, output="pdf",
... ...
@@ -230,7 +231,6 @@ msaPrettyPrint(myAlignment, file=tmpFile, output="pdf",
230 231
                showConsensus="bottom", logoColors="rasmol",
231 232
                verbose=FALSE, askForOverwrite=FALSE)
232 233
 
233
-\dontrun{
234 234
 library(Biobase)
235 235
 openPDF(tmpFile)}
236 236
 }
... ...
@@ -171,7 +171,7 @@ which allows for pretty-printing multiple alignments using the \LaTeX\ package
171 171
 \shade. As an example, the following \R\ code creates a PDF file
172 172
 \verb+myfirstAlignment.pdf+ which is shown in
173 173
 Figure~\ref{fig:myFirstAlignment}:
174
-<<IntegratePDF2>>=
174
+<<IntegratePDF2,eval=FALSE>>=
175 175
 msaPrettyPrint(myFirstAlignment, output="pdf", showNames="none",
176 176
                showLogo="none", askForOverwrite=FALSE, verbose=FALSE)
177 177
 @
178 178
new file mode 100644
179 179
Binary files /dev/null and b/vignettes/myFirstAlignment.pdf differ