Updated some comments
This commit is contained in:
parent
a9d956cfff
commit
e61c29692a
15
LEXF.py
15
LEXF.py
@ -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 = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user