We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0efd93 commit 3a3b950Copy full SHA for 3a3b950
1 file changed
utils/pickle2orthoxml.py
@@ -25,9 +25,12 @@
25
input_pickle= sys.argv[2] # "file_D0680685.pickle"
26
handle=open(input_pickle,'rb')
27
orthoxml_file = pickle.load(handle)
28
-
29
- print(len(orthoxml_file))
30
- xml_str = minidom.parseString(ET.tostring(orthoxml_file[0])).toprettyxml(indent=" ")
+
+ print(len(orthoxml_file)) # this should be the number of rootHOGs, perhaps dup at root
+ xml_str = ""
31
+ for item in orthoxml_file:
32
+ xml_str += minidom.parseString(ET.tostring(item)).toprettyxml(indent=" ")
33
+ xml_str += "\n"
34
35
with open(input_pickle+"_noheader.orthoxml","w") as out_file:
36
out_file.write(xml_str)
0 commit comments