comparison loompy_to_tsv.py @ 11:3d748954434b 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:03 +0000
parents 6db1b06e6bbb
children
comparison
equal deleted inserted replaced
10:9bd945a03d7b 11:3d748954434b
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)