Skip to main content

A package to look at similarity between two genetic datasets. Useful for finding duplicate tissue donors betwen studies.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scesa-1.0.6.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scesa-1.0.6-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file scesa-1.0.6.tar.gz.

File metadata

  • Download URL: scesa-1.0.6.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for scesa-1.0.6.tar.gz
Algorithm Hash digest
SHA256 68bc97a00ee8f0c40d3a780170c2a07717a4c178e9fdab4107afebc85b1940be
MD5 c649ce792406d83daa8c29e2411d9a3e
BLAKE2b-256 7034c35396abf60b39ef25945581b123a6fa82fd0667b3865f54bb3085baf7ca

See more details on using hashes here.

File details

Details for the file scesa-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: scesa-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for scesa-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 75168af112411408ce344eb984c442f7086465009a7f7d6823d2961f068bc291
MD5 cf2d7a2457aeb8e8530485ff1b3f5d5e
BLAKE2b-256 9bd6aa154cacd0081df087f946443970a15a4134b32d637e557c33d65b8e04e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page