Commit 1f09d480 by Edoardo SARTI

table1 script updated

parent 530735fc
FBA
GAPDH
PGK
PRK
RPE
RPI
RubiscoLS
RubiscoSS
TPI
TRK
FBPase
SBPase
FBA
GAPDH
PGK
PRK
RPE
RPI
TPI
TRK
FBPase
SBPase
FBPase_PF00316
FBPase_PF18913
GAPDH_PF00044
GAPDH_PF02800
RubiscoLS_PF00016
RubiscoLS_PF02788
SBPase_PF00316
SBPase_PF18913
TRK_PF00456
TRK_PF02779
TRK_PF02780
SBPase_PF00316
SBPase_PF18913
import sys
import ete3
tree_fn = sys.argv[1]
node_name = sys.argv[2]
t = ete3.Tree(tree_fn)
if node_name == "root":
subtree_root = t
else:
subtree_root = t.search_nodes(name=node_name)[0]
for l in [x for x in subtree_root]:
n = l.name.split()[0]
up = l.name.split("|")[1]
print(n)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment