Skip to content

Commit

Permalink
Fix for tsv column matching
Browse files Browse the repository at this point in the history
  • Loading branch information
pl-ki committed Dec 16, 2024
1 parent 3ad15fe commit a819291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loompy/loompy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ def create_from_tsv(out_file: str, tsv_file: str, row_metadata_loomfile: str = N
if cmcellid != cellids[cmrowidx]:
raise ValueError("CellID %s at row %s in %s does not match with corresponding header column %s of %s" % \
(cmcellid, cmrowidx, col_metadata_tsv, cellids[cmrowidx], tsv_file))
cm_idx0 = 1 if len(cm_values) == len(cm_attrs) else 0
cm_idx0 = 0 if len(cm_values) == len(cm_attrs) else 1
for colidx, cm_attr in enumerate(cm_attrs):
col_attrs[cm_attr].append(cm_values[cm_idx0 + colidx])
cmrowidx += 1
Expand Down

0 comments on commit a819291

Please sign in to comment.