Skip to content

mt fraction calculation #39

Description

@giovp

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions