Skip to content

Commit

Permalink
Store the raw data in the AnnData object
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterius committed Jan 24, 2024
1 parent d94db35 commit 04cee16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/st_quality_controls.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ st_adata = sc.read("./" + input_adata_raw)
# Convert X matrix from csr to csc dense matrix for output compatibility:
st_adata.X = scipy.sparse.csc_matrix(st_adata.X)
# Store the raw data so that it can be used for analyses from scratch if desired
st_adata.layers['raw'] = st_adata.X.copy()
# Print the anndata object for inspection
print("Content of the AnnData object:")
print(st_adata)
Expand Down

0 comments on commit 04cee16

Please sign in to comment.