Skip to main content

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']]

Download Default Background

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

Metadata

Release files for tcrsampler 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tcrsampler 0.1.9
File Size Uploaded
tcrsampler-0.1.9.tar.gz 416.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tcrsampler 0.1.9
File Interpreter ABI Platform
tcrsampler-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 854.1 kB

Release files / tcrsampler-0.1.9.tar.gz

Download URL tcrsampler-0.1.9.tar.gz
Size 416.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2c616ba4a439bfb1b8da8b43c67942b4b45dfb7d3a9ac5d4f89accaf8e9c4717
BLAKE2b-256 checksum
How to use checksums
648fa048e42039ae51ff8961eaede57e260d375f8d3b6ffb9c8950fd7fd5f783
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / tcrsampler-0.1.9-py3-none-any.whl

Download URL tcrsampler-0.1.9-py3-none-any.whl
Size 438.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d7bcd0b74a6e311b48241c2b8a359f73b8bc0613be583cb44f004364d9fc2fb
BLAKE2b-256 checksum
How to use checksums
773f6c66609458b94298b7d361c31fba8b801eecb12ccf146632a9c24dc38423
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page