Sample TCRs according to VDJ gene usage frequency
Project description
tcrsampler
Sample TCRs according to VDJ gene usage frequency
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
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.0.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for tcrsampler-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a496075471b735014e65a68acd17a5415e36fc31107661a244e98d178363fc4 |
|
MD5 | d02e466b7e729f6c4ab5fa7c83111937 |
|
BLAKE2b-256 | 774af1bc9adbb3a392a65d6ca3423227ab674569db1907076be6a1d9dc9a9816 |