From d56df6aa3dd7bf6474e01ee74db70770abacab99 Mon Sep 17 00:00:00 2001
From: Niels van der Velden Materialsgeneviewer-tutorials
repository. For visualization, the
geneviewer
package is
-required. Sequence alignment is performed using either the
-pwalign
or Biostrings
package, depending on
-the Bioconductor version in use. Optionally, the parallel
+required. Sequence alignment is performed using the
+Biostrings
and pwalign
packages that can be
+downloaded from Bioconductor. Optionally, the parallel
package can be utilized to increase processing times.
-install.packages("devtools")
-install.packages("parallel") # Optional but recommended for speeding up processing
-
-devtools::install_github("nvelden/geneviewer")
-
-# For BiocManager versions > 3.19
+devtools::install_github("nvelden/geneviewer")
+BiocManager::install("Biostrings")
BiocManager::install("pwalign")
-# For BiocManager versions < 3.19
-BiocManager::install("Biostrings")
+# Optional but recommended for speeding up processing
+install.packages("parallel")
library(geneviewer)
+library(Biostrings)
+library(pwalign)
library(parallel)
BlastP_results <- geneviewer::protein_blast(
folder_path,
diff --git a/man/GC_tooltip.Rd b/man/GC_tooltip.Rd
index 7993bb3..437fbe8 100644
--- a/man/GC_tooltip.Rd
+++ b/man/GC_tooltip.Rd
@@ -16,7 +16,7 @@ GC_tooltip(
\item{GC_chart}{The gene chart object to be modified.}
\item{formatter}{A character string defining the HTML content of the tooltip. It can
-include placeholders like `{start}` and `{end}` which will be replaced by actual
+include placeholders like \code{\{start\}} and \code{\{end\}} which will be replaced by actual
data values. The default value shows start and end data.}
\item{show}{Logical, whether to display the tooltip or not.}
diff --git a/man/protein_blast.Rd b/man/protein_blast.Rd
index 8267c0d..ad2bb63 100644
--- a/man/protein_blast.Rd
+++ b/man/protein_blast.Rd
@@ -58,12 +58,9 @@ sequence identity and similarity, and filters results based on a minimum
identity threshold.
}
\note{
-This function selects the appropriate alignment package based on the
- Bioconductor version. For versions earlier than 3.19, it relies on the
- Biostrings package for sequence alignment. For versions 3.19 and higher, it
- uses the pwalign package. Ensure these packages are installed using
- BiocManager and loaded into your R session. The dplyr package is also used
- for data manipulation.
+This function relies on the Biostrings and pwalign package for sequence
+alignment and the dplyr package for data manipulation. Ensure these packages
+are installed and loaded into your R session.
}
\examples{
\dontrun{
diff --git a/vignettes/BLASTP.Rmd b/vignettes/BLASTP.Rmd
index b50bf23..936c716 100644
--- a/vignettes/BLASTP.Rmd
+++ b/vignettes/BLASTP.Rmd
@@ -12,6 +12,8 @@ library(knitr)
library(geneviewer)
library(parallel)
library(dplyr)
+library(Biostrings)
+library(pwalign)
knitr::opts_chunk$set(
collapse = TRUE,
@@ -25,20 +27,18 @@ This tutorial describes how we can use `geneviewer` to identify and visualize ho
### Materials
-The .gbk files and the additional gene info can be downloaded from the [geneviewer-tutorials](https://github.com/nvelden/geneviewer-tutorials/tree/main/Cluster%20comparison%20using%20BlastP) repository. For visualization, the `geneviewer` package is required. Sequence alignment is performed using either the `pwalign` or `Biostrings` package, depending on the Bioconductor version in use. Optionally, the `parallel` package can be utilized to increase processing times.
+The .gbk files and the additional gene info can be downloaded from the [geneviewer-tutorials](https://github.com/nvelden/geneviewer-tutorials/tree/main/Cluster%20comparison%20using%20BlastP) repository. For visualization, the `geneviewer` package is required. Sequence alignment is performed using the `Biostrings` and `pwalign` packages that can be downloaded from Bioconductor. Optionally, the `parallel` package can be utilized to increase processing times.
```{r eval=FALSE, results='hide'}
-install.packages("devtools")
-install.packages("parallel") # Optional but recommended for speeding up processing
-
devtools::install_github("nvelden/geneviewer")
-
-# For BiocManager versions > 3.19
+BiocManager::install("Biostrings")
BiocManager::install("pwalign")
-# For BiocManager versions < 3.19
-BiocManager::install("Biostrings")
+# Optional but recommended for speeding up processing
+install.packages("parallel")
library(geneviewer)
+library(Biostrings)
+library(pwalign)
library(parallel)
```
@@ -67,7 +67,7 @@ kable(head(genbank_df))
### Run BlastP
-In this tutorial, we will directly input the folder path into `the protein_blast()` function to load our data. We'll select BGC0000055 as our query cluster and conduct a BlastP analysis to find the homologous in the other clusters. We use 30 as the minimum identity threshold. Performing the BlastP analysis can take several minutes so we set parallel processing to TRUE.
+In this tutorial, we will directly input the folder path into `the protein_blast()` function to load our data. We'll select BGC0000055 as our query cluster and conduct a BlastP analysis to find the homologous in the other clusters. We use 30 as the minimum identity threshold. Performing the BlastP analysis with this dataset can take several minutes so we set parallel processing to TRUE. For smaller datasets or if the `parallel` package is not installed, set parallel processing to `FALSE`.
```{r echo=TRUE, results='hide'}
BlastP_results <- geneviewer::protein_blast(