Skip to main content

Sample TCRs according to VJ gene usage frequency

Project description

tcrsampler

Sample TCRs according to VDJ gene usage frequency

Build Status Coverage Status PyPI version

Install

pip install tcrsampler

Example

import os
import pandas as pd
from tcrsampler.sampler import TCRsampler
t = TCRsampler()
fn= os.path.join('tcrsampler' ,'tests', 'pmbc_mixcr_example_data.txt')
t.clean_mixcr(filename = fn)
t.build_background(stratify_by_subject = True, use_frequency = True)
t.sample([['TRBV9*01','TRBJ2-7*01', 2],['TRBV7-7*01', 'TRBJ2-4*01', 4] ], depth = 1, use_frequency = True)
[['CASSRTGSLADEQYF', 'CASSATGVVSAQYF'],
 ['CASSLGQAARGIQYF', 'CASSLGQAARGIQYF', 'CASSLGQAARGIQYF', 'CASSLGQAARGIQYF']]

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

tcrsampler-0.1.4.tar.gz (406.8 kB view details)

Uploaded Source

Built Distribution

tcrsampler-0.1.4-py3-none-any.whl (428.0 kB view details)

Uploaded Python 3

File details

Details for the file tcrsampler-0.1.4.tar.gz.

File metadata

  • Download URL: tcrsampler-0.1.4.tar.gz
  • Upload date:
  • Size: 406.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.3

File hashes

Hashes for tcrsampler-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cac9fe359db54041caadd3db231f301a77fb0a9d60f2835515ad47676abed5e1
MD5 b8fc3be8d9573a68e6ca9c3ca1e8f975
BLAKE2b-256 65ccb0c863ecc6ba48ed7ff4375b2fb9a813dce04153552827f329dbbd2e23db

See more details on using hashes here.

File details

Details for the file tcrsampler-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tcrsampler-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 428.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.3

File hashes

Hashes for tcrsampler-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2792d8b170755374f356c2bf329e990acfbaaf144e2cd59799a2e7fdc76b5d4a
MD5 cdaa4d92a9acd0f5465504fc0e79b25f
BLAKE2b-256 ab2992bb0211bd837a925b1ee912ae354ff1a00bee995227f732c3593fc2fc29

See more details on using hashes here.

Supported by

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