From e205f4efccf756476b1caecdfe953536420d72a5 Mon Sep 17 00:00:00 2001 From: Suman Neupane Date: Fri, 26 May 2017 11:54:22 -0400 Subject: [PATCH] Delete readtree.py --- readtree.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 readtree.py diff --git a/readtree.py b/readtree.py deleted file mode 100644 index a7b4943..0000000 --- a/readtree.py +++ /dev/null @@ -1,22 +0,0 @@ -# def treenewck(): -# script_dir = os.path.dirname(os.path.realpath(sys.argv[0])) -# path = os.path.join(script_dir, 'nexus') -# for filename in glob.glob(os.path.join(path, '*.tre*')): -# f = open(filename, 'r').read() - -import re, os, glob, itertools, fnmatch, sys, shutil -# dirname, filename = os.path.split(os.path.abspath(__file__)) -def treenewick(): - script_dir = os.path.dirname(os.path.realpath(sys.argv[0])) -# print script_dir - path = os.path.join(script_dir, 'tree.tre') - with open(path, 'r') as content: - newick = content.read() - return newick -a = treenewick() -print a - - -# dirname, filename = os.path.split(os.path.abspath(__file__)) -# print "running from", dirname -# print "file is", filename \ No newline at end of file