Updated some comments

This commit is contained in:
Peter Vlasveld 2019-02-21 13:20:51 -05:00 committed by GitHub
parent a9d956cfff
commit e61c29692a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
LEXF.py
View File

@ -1,10 +1,11 @@
#!/usr/bin/python #!/usr/bin/python
"""
LEXF Rosalind.info Solution - Enumerating k-mers Lexicographically
Author: Peter Vlasveld
Date: 12/01/2019
"""
#LEXF Rosalind.info Solution - Enumerating k-mers Lexicographically #Get dataset from file
#Author: Peter Vlasveld
#Date: 12/01/2019
#get dataset from file
f1 = open("rosalind_lexf.txt") f1 = open("rosalind_lexf.txt")
content = f1.readlines() content = f1.readlines()
f1.close() f1.close()
@ -15,7 +16,9 @@ lex = []
for i in xrange(0, int(content[1])): for i in xrange(0, int(content[1])):
lex.extend(firstLex) lex.extend(firstLex)
#recursive function to get all possible combinations within the lex set """
Recursive function to get all possible combinations within the lex set
"""
def wordCombo (arr, data, start, end, index, r): def wordCombo (arr, data, start, end, index, r):
if index == r: if index == r:
tempStr = "" tempStr = ""