Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create NeedlemanWunsch.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

farahzk
Copy link

@farahzk farahzk commented Mar 5, 2014

This version takes two input files along with a similarity score matrix and gap penalty through terminal/command line

This version takes two input files along with a similarity score matrix and gap penalty through terminal/command line
import alignment #import the file with the functions

# Command-line arguments for 3 files and one integer.
f1 = open(sys.argv[1], 'r') #first fasta/txt file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good, i'm ready to accept this, but one small nit:

for readability, please assign all argv[...] to variables at the beginning of the program, e.g.:
fasta_file_one = sys.argv[1]
fasta_file_two = sys.argv[2]
substitution_matrix_file = sys.argv[3]
gap_penalty = sys.argv[4]

and then use the variables in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants