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

mt fraction calculation #39

Closed
giovp opened this issue May 12, 2020 · 2 comments
Closed

mt fraction calculation #39

giovp opened this issue May 12, 2020 · 2 comments

Comments

@giovp
Copy link
Member

giovp commented May 12, 2020

In case you are planned to update tutorial at some point, Isaac pointed me to a cleaner way to calculate mt fraction.

adata.var["mt"] = adata.var_names.str.startswith("MT-")
sc.pp.calculate_qc_metrics(adata, qc_vars=["mt"], inplace=True)

It calculates both total_counts_mt and pct_counts_mt

just leaving it here as reference.

@LuckyMD
Copy link
Contributor

LuckyMD commented May 12, 2020

yes, this function was added after the tutorial was finished ;). Thanks, though! Will leave this issue open for the grand update!

@LuckyMD
Copy link
Contributor

LuckyMD commented Jan 5, 2021

Updated in #58

@LuckyMD LuckyMD closed this as completed Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants