Skip to main content

single cell, Examine Shared Alleles (scEsa)

A small python package that contains functions to compare two genetic datasets to each other (in VCF format) to assess similarity. It was developed to find duplicate tissue donors between experiments across scRNA datasets.

Description

An in-depth paragraph about your project and overview of use.

Getting Started

To install, just use:

pip install scEsa

and load:

from scEsa import *

The main function of the package is:

scEsa.Similarity(file1, file2, method)

This function take in two VCF files ('file1' and 'file2'). 'method' tells the package which calculation to use for, either using a comparison based on Expected Heterozygosity (1-sum(p2)) or Shannons Information (-sum(pln(p))). Default is For Expected Heterozygosity set 'method' to either the string "ExpHet" or the integer 2. For Shannons Information set 'method' to either the string "Shan" or the integer 1.

results will be printed and returned as a list, in the format:

["Sample1","Sample2","Similarity", "Pooled diversity", "N_Loc"]

Sample1/2 are just the names of the samples taken from the VCF headers. If a VCF file has more than one sample in it, only the 1st sample will be used.

Similarity is the main result. Any value over 0.8 using 'method'=2/"ExpHet" suggests the same donor (see 'N_Loc' below), with a value of 1 indicating a completly identical dataset.

Pooled diversity is the total ammount of genotype diversity when all loci between both samples is pooled. This is used as a baseline of diveristy for the method, but can be used as a QC metric. If your samples have 0 pooled diversity it can indicate some data quality issues (even identical samples will have some pooled diversity).

N_Loc is thr number of shared loci between your two samples. For this package to work, it is recommended that you have atleast 250,000 shared alleles between your samples for ths package to be accurate - and the more the merrier.

Author

Dr Gabe O'Reilly g.oreilly@garvan.org.au

Metadata

Release files for scEsa 1.0.6

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

Source distribution (sdist)

Source distribution for scEsa 1.0.6
File Size Uploaded Provenance Actions
scesa-1.0.6.tar.gz 4.0 kB Without provenance Details for scesa-1.0.6.tar.gz

Built distribution (wheel)

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

Total release size: 8.4 kB

Release files / scesa-1.0.6.tar.gz

Download URL scesa-1.0.6.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
68bc97a00ee8f0c40d3a780170c2a07717a4c178e9fdab4107afebc85b1940be
BLAKE2b-256 checksum
How to use checksums
7034c35396abf60b39ef25945581b123a6fa82fd0667b3865f54bb3085baf7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / scesa-1.0.6-py3-none-any.whl

Download URL scesa-1.0.6-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75168af112411408ce344eb984c442f7086465009a7f7d6823d2961f068bc291
BLAKE2b-256 checksum
How to use checksums
9bd6aa154cacd0081df087f946443970a15a4134b32d637e557c33d65b8e04e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for scEsa 1.0.6

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.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files No provenance

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