diff splitFasta.py @ 5:733ca84b21ee draft default tip

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
author rnateam
date Mon, 21 Sep 2020 15:40:14 +0000
parents ae4d5733272f
children
line wrap: on
line diff
--- a/splitFasta.py	Fri Oct 16 16:13:34 2015 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-#!/usr/bin/env python
-import os
-import sys
-from Bio import SeqIO
-
-if __name__ == "__main__":
-    inpath = sys.argv[1]
-    os.mkdir('splits')
-    with open(inpath, 'r') as handle:
-        for record in SeqIO.parse(handle, 'fasta'):
-            header = os.path.join('splits', record.id + '.fasta')
-            with open(header, 'w') as handle2:
-                SeqIO.write([record], handle2, 'fasta')