CSCI 131 – Python Language
Python Language
• Input/Output Redirection
• Functions
• Strings
Example 1:
Write a Python program that accepts as an input two strings and finds the maximal alignment score if no internal gaps are allowed and the score of match is 1 and the score of mismatch is 0. The gaps at the beginning and the end of the short sequence are allowed and will be counted as mismatches. The program prints the best alignment.
You can assume that length (first sequence) >= length (second sequence)
Solution:
#function definition
#function calculates the alignment score of seq1 and seq2
def scoreAlign (seq1, seq2):
i=0
sum=0
length=len(seq1)
while i ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- csci 131 python language
- python class room diary be easy in my python class
- linux tutorial usf computer science
- 1 reportlab
- python part iv storing multiple values in lists
- climate model output rewriter cmor
- chapter 6 exercises
- chapter 8 integration in the lhcb software environment
- assumption university
- symbol table creation
Related searches
- 131 iq percentile
- python 3 language reference
- python language specification
- python programming language pdf book
- python language reference manual pdf
- i 131 treatment for cats
- the python language reference pdf
- i 131 cats cost
- i 131 thyroid cancer treatment
- the python language reference manual
- python language manual
- af form 131 retirement