Created
October 12, 2015 17:46
-
-
Save H2CO3/ecb50186556ee3b0e900 to your computer and use it in GitHub Desktop.
This file contains hidden or 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_FASTA_file(fname): | |
with open(fname, "r") as f: | |
sequs = filter(len, f.read().split(">")) | |
return ["".join(seq.split("\n")[1:]) for seq in sequs] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment