This file contains 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
def read_seq(inputfile): | |
"""reads and returns the imput sequence with special characters removed.""" | |
with open(inputfile, 'r') as f: | |
seq=f.read() | |
seq = seq.replace("\n","") | |
seq= seq.replace("\r","") | |
return seq |