Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement recist sanity check #32

Closed
DanChaltiel opened this issue Apr 23, 2024 · 1 comment
Closed

Implement recist sanity check #32

DanChaltiel opened this issue Apr 23, 2024 · 1 comment
Labels
feature New feature or request

Comments

@DanChaltiel
Copy link
Owner

DanChaltiel commented Apr 23, 2024

RECIST 1.1 Documentation

RECIST Calculators:

Other resources:

Off-topic: Compute the Best Overall Response: https://www.bioinfo-scrounger.com/archives/bor_recist/. See also https://github.com/kaigu1990/stabiot

Code:

rc %>% 
  mutate(sum_bl = unify(RCTLSUM[CRFINSNO==1]),
         .by = SUBJID) %>% 
  mutate(RCTLRESP2 = case_when(
           RCTLSUM/sum_bl == 0 ~ "1-CR",
           RCTLSUM/sum_bl < 0.7 ~ "2-PR",
           RCTLSUM/sum_bl > 1.2 ~ "4-PD",
           RCTLSUM/sum_bl < 2 ~ "3-SD",
           
         )) %>%  
  distinct(SUBJID, RCDT, RCTLRESP, RCTLRESP2) %>% 
  crosstable(RCTLRESP~RCTLRESP2, label=FALSE) %>% af

rc$RCTLSITE %>% table #for lymph nodes
@DanChaltiel DanChaltiel added the feature New feature or request label Apr 23, 2024
@DanChaltiel
Copy link
Owner Author

Migrated to grstat issue 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant