load seqinr
This commit is contained in:
parent
a58e35f060
commit
4bbf663eca
@ -3,12 +3,13 @@
|
|||||||
# Purpose: A Bioinformatics Course:
|
# Purpose: A Bioinformatics Course:
|
||||||
# R code accompanying the BIN-ALI-Optimal_sequence_alignment unit.
|
# R code accompanying the BIN-ALI-Optimal_sequence_alignment unit.
|
||||||
#
|
#
|
||||||
# Version: 1.1
|
# Version: 1.2
|
||||||
#
|
#
|
||||||
# Date: 2017 09 - 2017 11
|
# Date: 2017 09 - 2017 11
|
||||||
# Author: Boris Steipe (boris.steipe@utoronto.ca)
|
# Author: Boris Steipe (boris.steipe@utoronto.ca)
|
||||||
#
|
#
|
||||||
# Versions:
|
# Versions:
|
||||||
|
# 1.2 Added missing load of seqinr package
|
||||||
# 1.1 Update annotation file logic - it could already have been
|
# 1.1 Update annotation file logic - it could already have been
|
||||||
# prepared in the BIN-FUNC-Annotation unit.
|
# prepared in the BIN-FUNC-Annotation unit.
|
||||||
# 1.0.1 bugfix
|
# 1.0.1 bugfix
|
||||||
@ -31,22 +32,35 @@
|
|||||||
#TOC>
|
#TOC>
|
||||||
#TOC> Section Title Line
|
#TOC> Section Title Line
|
||||||
#TOC> --------------------------------------------------------------------
|
#TOC> --------------------------------------------------------------------
|
||||||
#TOC> 1 Prepare 48
|
#TOC> 1 Prepare 49
|
||||||
#TOC> 2 Biostrings Pairwise Alignment 56
|
#TOC> 2 Biostrings Pairwise Alignment 70
|
||||||
#TOC> 2.1 Optimal global alignment 73
|
#TOC> 2.1 Optimal global alignment 88
|
||||||
#TOC> 2.2 Optimal local alignment 136
|
#TOC> 2.2 Optimal local alignment 151
|
||||||
#TOC> 3 APSES Domain annotation by alignment 160
|
#TOC> 3 APSES Domain annotation by alignment 175
|
||||||
#TOC> 4 Update your database script 241
|
#TOC> 4 Update your database script 256
|
||||||
#TOC> 4.1 Preparing an annotation file ... 247
|
#TOC> 4.1 Preparing an annotation file ... 262
|
||||||
#TOC> 4.1.1 If you HAVE NOT done the BIN-FUNC-Annotation unit 249
|
#TOC> 4.1.1 If you HAVE NOT done the BIN-FUNC-Annotation unit 264
|
||||||
#TOC> 4.1.2 If you HAVE done the BIN-FUNC-Annotation unit 292
|
#TOC> 4.1.2 If you HAVE done the BIN-FUNC-Annotation unit 307
|
||||||
#TOC> 4.2 Execute and Validate 316
|
#TOC> 4.2 Execute and Validate 331
|
||||||
#TOC>
|
#TOC>
|
||||||
#TOC> ==========================================================================
|
#TOC> ==========================================================================
|
||||||
|
|
||||||
|
|
||||||
# = 1 Prepare =============================================================
|
# = 1 Prepare =============================================================
|
||||||
|
|
||||||
|
# To simplify code a bit, we will use seqinr's function s2c(x) to make
|
||||||
|
# character vectors from sequence strings below, rather than the lengthier
|
||||||
|
# base idiom unlist(strsplit(x, "").
|
||||||
|
if (!require(seqinr)) {
|
||||||
|
install.packages("seqinr")
|
||||||
|
library(seqinr)
|
||||||
|
}
|
||||||
|
# Package information:
|
||||||
|
# library(help = seqinr) # basic information
|
||||||
|
# browseVignettes("seqinr") # available vignettes
|
||||||
|
# data(package = "seqinr") # available datasets
|
||||||
|
|
||||||
|
|
||||||
# You need to recreate the protein database that you have constructed in the
|
# You need to recreate the protein database that you have constructed in the
|
||||||
# BIN-Storing_data unit.
|
# BIN-Storing_data unit.
|
||||||
|
|
||||||
@ -55,6 +69,7 @@ source("makeProteinDB.R")
|
|||||||
|
|
||||||
# = 2 Biostrings Pairwise Alignment =======================================
|
# = 2 Biostrings Pairwise Alignment =======================================
|
||||||
|
|
||||||
|
|
||||||
if (!require(Biostrings, quietly=TRUE)) {
|
if (!require(Biostrings, quietly=TRUE)) {
|
||||||
if (! exists("biocLite")) {
|
if (! exists("biocLite")) {
|
||||||
source("https://bioconductor.org/biocLite.R")
|
source("https://bioconductor.org/biocLite.R")
|
||||||
|
Loading…
Reference in New Issue
Block a user