comparison cpo_galaxy_tree.py @ 13:a14b12a71a53 draft

planemo upload
author jjjjia
date Sat, 25 Aug 2018 20:56:37 -0400
parents 4b2738bc81ed
children 596bf8a792de
comparison
equal deleted inserted replaced
12:4b2738bc81ed 13:a14b12a71a53
261 n.add_face(addFace(mData.SequenceType), index, "aligned") 261 n.add_face(addFace(mData.SequenceType), index, "aligned")
262 index = index + 1 262 index = index + 1
263 n.add_face(addFace(mData.CarbapenemResistanceGenes), index, "aligned") 263 n.add_face(addFace(mData.CarbapenemResistanceGenes), index, "aligned")
264 index = index + 1 264 index = index + 1
265 for i in range(len(distanceDict[list(distanceDict.keys())[0]])): #this loop adds distance matrix 265 for i in range(len(distanceDict[list(distanceDict.keys())[0]])): #this loop adds distance matrix
266 n.add_face(addFace(list(distanceDict[n.name])[i]), index + i, "aligned") 266 if (n.name in distanceDict): #make sure the column is in the distance matrice
267 n.add_face(addFace(list(distanceDict[n.name])[i]), index + i, "aligned")
267 268
268 t.render("./tree.pdf", w=5000,units="mm", tree_style=ts) #save it as a png. or an phyloxml 269 t.render("./tree.pdf", w=5000,units="mm", tree_style=ts) #save it as a png. or an phyloxml
269 270
270 #endregion 271 #endregion
271 #endregion 272 #endregion