Skip to main content

Sample TCRs according to VDJ gene usage frequency

Project description

tcrsampler

Sample TCRs according to VDJ gene usage frequency

Build Status

Install

pip install tcrsampler

Install default reference files:

python -c "from tcrsampler.setup_db import install_all_next_gen; install_all_next_gen(dry_run = False)"

Example

from tcrsampler.sampler import TCRsampler
t = TCRsampler(organism = 'human',db_file = 'alphabeta_db.tsv', ref_file= 'new_nextgen_chains_human_B.tsv')
t.make_ref_dict(max_sample = 100)
t.sample_ref_dict('TRBV1*01', 'TRBJ1-1*01',1)
t.sample([['TRBV1*01', 'TRBJ1-1*01',1], ['TRBV2*01', 'TRBJ1-1*01',1]])

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.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

tcrsampler-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tcrsampler-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 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.0.tar.gz
Algorithm Hash digest
SHA256 f99a44fb84a75029575fffefcfb3f58d9c779584af88207d436a5d043315ebd3
MD5 16ffa717be36b5edcdfa9d2116c02d97
BLAKE2b-256 0f8dc926765f8479b950e18e23a5aa9c650ab0c6dd5ea3ae0d51bdbb6ccb00ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tcrsampler-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a496075471b735014e65a68acd17a5415e36fc31107661a244e98d178363fc4
MD5 d02e466b7e729f6c4ab5fa7c83111937
BLAKE2b-256 774af1bc9adbb3a392a65d6ca3423227ab674569db1907076be6a1d9dc9a9816

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