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']]
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.5.tar.gz
(407.2 kB
view details)
Built Distribution
tcrsampler-0.1.5-py3-none-any.whl
(428.4 kB
view details)
File details
Details for the file tcrsampler-0.1.5.tar.gz
.
File metadata
- Download URL: tcrsampler-0.1.5.tar.gz
- Upload date:
- Size: 407.2 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 | c614947766f0bbf10dffe816f9a9b1c4549f5e1f86b155f2be9434567b253edd |
|
MD5 | 641be6ea6aa5b642f0bd2d81e61da3a8 |
|
BLAKE2b-256 | 950467a1f7d5bc32e1f9f7b375d714368483ee36f8f6ffaa60c95755b918a621 |
File details
Details for the file tcrsampler-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: tcrsampler-0.1.5-py3-none-any.whl
- Upload date:
- Size: 428.4 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 | 94e34969927d4ac644bc11c1eb30563b362e77cef27fb7825086cfc6a4bcb2a4 |
|
MD5 | edd9481109aaeaf846d364906eee7114 |
|
BLAKE2b-256 | 99a49304c955a509bbc2f2a59990f732d0ba8308302d30a3ac2af9414f83c2d3 |