Sample TCRs according to VJ gene usage frequency
Project description
tcrsampler
Sample TCRs according to VDJ gene usage frequency
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']]
Download Default Background
python -c "from tcrsampler.setup_db import install_all_next_gen; install_all_next_gen(dry_run = False)"
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(416.0 kB
view details)
Built Distribution
tcrsampler-0.1.9-py3-none-any.whl
(438.1 kB
view details)
File details
Details for the file tcrsampler-0.1.9.tar.gz
.
File metadata
- Download URL: tcrsampler-0.1.9.tar.gz
- Upload date:
- Size: 416.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c616ba4a439bfb1b8da8b43c67942b4b45dfb7d3a9ac5d4f89accaf8e9c4717 |
|
MD5 | 5bc6c4d8a6f76902fd0107b106e00a0c |
|
BLAKE2b-256 | 648fa048e42039ae51ff8961eaede57e260d375f8d3b6ffb9c8950fd7fd5f783 |
File details
Details for the file tcrsampler-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: tcrsampler-0.1.9-py3-none-any.whl
- Upload date:
- Size: 438.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d7bcd0b74a6e311b48241c2b8a359f73b8bc0613be583cb44f004364d9fc2fb |
|
MD5 | 306f142ca96c1d76fe98159f8e69f545 |
|
BLAKE2b-256 | 773f6c66609458b94298b7d361c31fba8b801eecb12ccf146632a9c24dc38423 |