Skip to main content

Projection of on scRNAseq on another and voting. Sam Watcham's thesis chapter 3

Project description

scvoting

This is a voting method to obtain the density (smoothed votes) of a 10 sc-RNASeq dataset on a common reference sc-RNASeq data's landscape which can be viewed using umap, fdg etc

The method works with scanpy annData objects only and contains two parts.

Projecting onto reference landscape

This package follows the Xiaonan Wang's method of projecting a 10x sc-RNASeq dataset onto a reference sc-RNASeq data. After projection

Voting and smoothing

  • For every cell in the dataset its NN in the reference dataset gets 1 vote.
  • Smooth out the votes for each cell in the reference dataset by sharing them equally among 100 NN in it. So if its vote is 40 you share 40/100 among each of them.
  • Compute this for WT and mutant datasets.
  • Plot their difference or logFC etc on the reference landscape (UMAP)

Example run

from scvoting import Projector
# Initantiation
votp = Projector(adata = adata, ref_adata=adata_niki, ref_hvg=niki_hvg, npcs=25)
# Proj onto ref
votp.project_on_ref()
# Plot PCAs (works only with X11, use jupyter on remote servers)
votp.plotPCA()
# Compute distances between cells in two datasets in PCA space
votp.pwdist()
# Voting starts
votp.voting(tot_votes = 500000)
# Compute distances between cells in reference datasets
votp.pwdist(rtype = 'ref')
# Smooth the voting for better visualisation
votp.vote_smoothing()
# Smoothed votes
results = votp.votes_smooth

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

scvoting-vjbaskar-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

scvoting_vjbaskar-0.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file scvoting-vjbaskar-0.0.2.tar.gz.

File metadata

  • Download URL: scvoting-vjbaskar-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for scvoting-vjbaskar-0.0.2.tar.gz
Algorithm Hash digest
SHA256 40a24b21926e37d9776c19b3545f176a0248d7b065fcdb6f6605531a120fe7fa
MD5 796e1d9d3f69a426869d843834ea6d3c
BLAKE2b-256 0df3a5ce42f16cb98100a2071bc1a83ac5f4c60f9936cf9f0d75aeb73259e72f

See more details on using hashes here.

File details

Details for the file scvoting_vjbaskar-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: scvoting_vjbaskar-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for scvoting_vjbaskar-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 181fe822723e04a0fb40100271ee4e833ae6648c9f02608cc4ebdda2f7a5b294
MD5 a355ee1099b089b41d8573022f24daaf
BLAKE2b-256 926bbb87f28cabcbc510e322ce348dfafd5c5a798f29b1136dce14a1249c250a

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