An open API service indexing awesome lists of open source software.

https://github.com/lightbridge-ks/recist_calc

A Python Package for Calculate RECIST1.1
https://github.com/lightbridge-ks/recist_calc

nbdev python python-package radiology

Last synced: 8 months ago
JSON representation

A Python Package for Calculate RECIST1.1

Awesome Lists containing this project

README

          

# RECIST v1.1 Calculator

## Install

**From TestPyPi:**

``` sh
pip install -i https://test.pypi.org/simple/ recist-calc
```

## How to use

``` python
import recist_calc
```

### Target Lesion Calculation

``` python
target = RecistTarget(
current_mm=40,
baseline_mm=30,
nadir_mm=30,
is_new_lesion=False
)

target
```

RecistTarget(category='PD', current_mm=40, baseline_mm=30, baseline_pc_change=33.33333333333333, nadir_mm=30, nadir_pc_change=33.33333333333333, is_new_lesion=False, is_ln_pathological=None)

### Non-Target Lesion Calculation

``` python
non_target = RecistNonTarget(
unequivocal_progress=False,
disappear_all=False,
is_new_lesion=False,
is_ln_pathological=True,
is_tumor_mk_normalized=False
)
non_target
```

RecistNonTarget(category='Non-CR/Non-PD', unequivocal_progress=False, disappear_all=False, is_new_lesion=False, is_ln_pathological=True, is_tumor_mk_normalized=False)

### Timepoint Evaluation

``` python
timepoint = RecistTimePoint(target=target, nontarget=non_target)
timepoint
```

RecistTimePoint(target=RecistTarget(category='PD', current_mm=40, baseline_mm=30, baseline_pc_change=33.33333333333333, nadir_mm=30, nadir_pc_change=33.33333333333333, is_new_lesion=False, is_ln_pathological=None), nontarget=RecistNonTarget(category='Non-CR/Non-PD', unequivocal_progress=False, disappear_all=False, is_new_lesion=False, is_ln_pathological=True, is_tumor_mk_normalized=False), is_new_lesion=False, category={'final': 'PD', 'target': 'PD', 'nontarget': 'Non-CR/Non-PD'})

``` python
timepoint.__dict__
```

{'target': RecistTarget(category='PD', current_mm=40, baseline_mm=30, baseline_pc_change=33.33333333333333, nadir_mm=30, nadir_pc_change=33.33333333333333, is_new_lesion=False, is_ln_pathological=None),
'nontarget': RecistNonTarget(category='Non-CR/Non-PD', unequivocal_progress=False, disappear_all=False, is_new_lesion=False, is_ln_pathological=True, is_tumor_mk_normalized=False),
'is_new_lesion': False,
'category': {'final': 'PD', 'target': 'PD', 'nontarget': 'Non-CR/Non-PD'}}