+# Merge Fasta files of individual genes into complex files. Assumes all files
+# have the same lines with the same ids, though order shouldn't matter.
+# Probably don't want to use this on huge FASTA files as it's quick and dirty.
+# @todo Figure out if this really needs to be a class or not.
+ def merge_files(self, files, merged_name = "merged"):
+ out = open('%s.fasta' % merged_name, 'w')
+ if line.startswith(">"):
+ hash[id] = "%s%s" % (hash[id], line)