comparison loompy_to_tsv.py @ 7:4b0adaa31c95 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:20:18 +0000
parents c8e4d0b9ae8c
children
comparison
equal deleted inserted replaced
6:05631436cdf1 7:4b0adaa31c95
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)