This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: https://de.wikipedia.org/wiki/Needleman-Wunsch-Algorithmus | |
needleman = function(seq1, seq2, gap, mismatch, match){ | |
# Stop conditions | |
stopifnot(gap <= 0) # check if penalty negative | |
stopifnot(mismatch <= 0) # check if penalty negative | |
stopifnot(match >= 0) # check if score positive | |
# Initialize col and rownames for matrices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION=4.0.1 | |
SCRIPT=`basename "$0"` | |
APPNAME="My App" | |
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
OSX_VERSION=`sw_vers -productVersion` | |
PWD=`pwd` | |
function usage { |