diff scripts/S01_phylip2fasta.py @ 6:e0bea88bb09f draft

planemo upload for repository https://github.com/abims-sbr/adaptsearch commit 76e603ecd0118c8060d972b675a13db858956eb6
author abims-sbr
date Thu, 18 Jan 2018 09:02:24 -0500
parents 0d2da4c020dc
children
line wrap: on
line diff
--- a/scripts/S01_phylip2fasta.py	Thu Jan 18 08:13:26 2018 -0500
+++ b/scripts/S01_phylip2fasta.py	Thu Jan 18 09:02:24 2018 -0500
@@ -13,14 +13,12 @@
 """
 
 ## INPUT
-"""
 if os.path.isfile(sys.argv[1]) :
     f1 = sys.argv[1]
 else:
     print "No existing phylip file ; exiting ..."
     exit()
-"""
-f1 = sys.argv[1]
+
 F1 = open("%s" %f1, 'r')
 
 ## OUTPUT
@@ -52,7 +50,10 @@
 ###################
 
 F1.readline() ## jump the first line
+
 fichier_txt, c = format(F1)   ### DEF1 ###
+
 F2.write(fichier_txt)
+
 F1.close()
 F2.close()