comparison loompy_to_tsv.py @ 11:fb9e030ffae4 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/anndata/ commit 7decaee045e15bd71deb3bc46b81aa39caf1ed31
author iuc
date Wed, 22 Jun 2022 07:21:48 +0000
parents b5c7ba11401d
children
comparison
equal deleted inserted replaced
10:55e35e9203cf 11:fb9e030ffae4
18 allcols = [] 18 allcols = []
19 colstrings = [] 19 colstrings = []
20 allrows = [] 20 allrows = []
21 21
22 # Build background info for all attributes and layers 22 # Build background info for all attributes and layers
23 loompyfile = loompy.connect(file) 23 loompyfile = loompy.connect(file, mode="r")
24 row_attributes = loompyfile.ra.keys() # List of row attributes 24 row_attributes = loompyfile.ra.keys() # List of row attributes
25 for row in row_attributes: # Each list represents rownames for row_attributes 25 for row in row_attributes: # Each list represents rownames for row_attributes
26 c_row = loompyfile.ra[row] 26 c_row = loompyfile.ra[row]
27 c_row = [str(r) for r in c_row] 27 c_row = [str(r) for r in c_row]
28 allrows.append(c_row) 28 allrows.append(c_row)