Skip to main content

PyPI - Downloads PyPI

mousipy

A python package that translates an AnnData single cell object from scanpy with mouse gene symbols into one with human gene symbols by mapping orthologs from biomart.

Why?

Many people just uppercase a mouse gene symbol to get the human ortholog in scRNA-seq data. This works in most cases, but fails for some. For example, there is no Cd8b gene in mice since the correct mouse ortholog to the human gene CD8B is Cd8b1. The gene CD8B is a defining marker for CD8+ T cells which would get lost by just uppercasing gene symbols but is correctly retained by mapping gene symbols with mousipy. Another example is CD16 (human gene FCGR3A), which has mouse ortholog Fcgr4.

Install

Just install via pip:

pip install mousipy

Usage example

import scvelo as scv
from mousipy import translate
adata = scv.datasets.pancreas()  # mouse scRNA-seq dataset
humanized_adata = translate(adata)

How it works

In mousipy/biomart are lists of mouse (GRCm39) and human (GRCh38.p13) orthologs exported from biomart. First, for all mouse gene symbols in adata.var_names we check if there is an ortholog in these lists. Then, for each mouse gene

  • if there is exactly one human ortholog, the gene symbol is translated directly
  • if there is an entry for that gene in the list explicitly mapping it to no ortholog, it will be discarded
  • if there are multiple different human orthologs, the gene's expression counts are added to all its orthologs
  • if the gene is not found in the list, we make it uppercase (and hope that that is the ortholog)

What is an ortholog?

Two genes in different species are called orthologs if they share a common ancestry. At some point in the past these genes must have underwent a specification event.

Does it make a difference?

TODO A delicious double pie plot should be here.

Metadata

Release files for mousipy 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mousipy 0.1.7
File Size Uploaded Provenance Actions
mousipy-0.1.7.tar.gz 2.9 MB Without provenance Details for mousipy-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mousipy 0.1.7
File Interpreter ABI Platform Actions
mousipy-0.1.7-py3-none-any.whl Python 3 none any Details for mousipy-0.1.7-py3-none-any.whl

Total release size: 5.9 MB

Release files / mousipy-0.1.7.tar.gz

Download URL mousipy-0.1.7.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
e6ee6606139d942af3d034708c529e9333cb7b346921a7176191bca29cd00eda
BLAKE2b-256 checksum
How to use checksums
3565a6b9b9e9bce279f392eaefca69f3341e927fb3a750e69bd74eefe07e53bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / mousipy-0.1.7-py3-none-any.whl

Download URL mousipy-0.1.7-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d1ffc9251c028c0b91ec50358d32885d9339db518c833163c577f1341b4a5a3f
BLAKE2b-256 checksum
How to use checksums
263a291a86b926cba64bea85c1cfb13755e35c7da4cf0493b1d884309e4dbb08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Security for mousipy 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page