Mercurial > repos > iuc > anndata_export
comparison loompy_to_tsv.py @ 10:0cb889db0910 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:22:32 +0000 |
parents | 8623710d083c |
children |
comparison
equal
deleted
inserted
replaced
9:707023fa62fe | 10:0cb889db0910 |
---|---|
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) |