Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does anndata.raw can be automatically modified after define it? #1498

Open
moonbyul-99 opened this issue May 16, 2024 · 0 comments
Open

Does anndata.raw can be automatically modified after define it? #1498

moonbyul-99 opened this issue May 16, 2024 · 0 comments

Comments

@moonbyul-99
Copy link

Please describe your wishes and possible alternatives to achieve the desired result.

I think the anndata.raw is fixed after define, according to the API documents. However, I found it can be modified automatically by scanpy.pp.normalize_total and sc.pp.log1p.

this fig shows the raw counts of a scRNAseq data, which is stored in the 'raw_counts' layer
image

this fig show the scdata.raw.X which is stored before applying 'normalize_total' and 'log1p' function, it is clearly to see that the .raw is modified automically.
image

I think the documents should be more detailed about this situation. The attributes' name "raw" seems freeze this variable, but actually not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant