Install using the command below.
library(devtools)
install_github("ruiqi0130/sw_affine")
Rscript --vanilla hw1.R <input file> <score file>
example
Rscript --vanilla hw1.R input.txt blosum62.txt
- inputFile: 2 lines txt file corresponding to two sequences to be aligned.
- scoreFile: matrix txt file, a amino-acid scoring matrix
Two additional optional inputs may be included for the opening gap and gap extension terms. Defaults for these are: openGap=-2
, extGap=-1
.
- Two input sequences.
- Score Matrix used for alignment
- The best local alignment score
- The alignment results