Skip to content

Commit

Permalink
Align the index
Browse files Browse the repository at this point in the history
  • Loading branch information
sminot committed Feb 16, 2024
1 parent 0fb32b5 commit d2803d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/collect_metagenomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def to_h5ad(self, output_folder):
del self.data.uns["filtered_out"]
for mod in self.data.mod:
adata: ad.AnnData = self.data.mod[mod]
adata.obs = self.data.obs
adata.obs = self.data.obs.reindex(index=adata.obs.index)
for kw, val in self.data.uns.items():
adata.uns[kw] = val
adata.write_h5ad(f"{output_folder}/metagenome.{mod}.h5ad")
Expand Down

0 comments on commit d2803d2

Please sign in to comment.