Sovereign 8s.is mirror of standardgalactic/pTR-T
  • R 99.2%
  • Shell 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
itokatsu0320 18f69be200
rmd
2026-01-24 18:23:31 -05:00
scripts/scripts Add files via upload 2026-01-24 18:22:24 -05:00
README.rmd rmd 2026-01-24 18:23:31 -05:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "README"
author: "Katsuhiro Ito"
date: "2025-10-13"
output: html_document
editor_options: 
  markdown: 
    wrap: 72
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## Requirements

R version 4.2.2 Patched (2022-11-10 r83330)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.5 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8    LC_PAPER=C.UTF-8      
 [8] LC_NAME=C              LC_ADDRESS=C           LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

attached base packages:
[1] grid      stats4    stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] dsb_1.0.3                   scDblFinder_1.12.0          SoupX_1.6.2                 DIALOGUE_1.0                UpSetR_1.4.0               
 [6] beanplot_1.3.1              Hmisc_5.2-3                 ppcor_1.1                   reshape2_1.4.4              unikn_1.0.0                
[11] RColorBrewer_1.1-3          stringi_1.8.4               psych_2.4.3                 plyr_1.8.9                  PMA_1.2-4                  
[16] lmerTest_3.1-3              lme4_1.1-35.3               cowplot_1.1.3               ComplexUpset_1.3.3          preprocessCore_1.60.2      
[21] Scissor_2.0.0               Matrix_1.5-1                circlize_0.4.16             ggpubfigs_0.0.1             smotefamily_1.4.0          
[26] rpart.plot_3.1.2            rpart_4.1.19                MASS_7.3-58                 patchwork_1.2.0.9000        survivalROC_1.0.3.1        
[31] pROC_1.18.5                 ComplexHeatmap_2.14.0       readxl_1.4.3                survival_3.6-4              survminer_0.4.9            
[36] ggpubr_0.6.0                shiny_1.8.1.1               ggridges_0.5.6              SeuratWrappers_0.3.1        monocle3_1.3.1             
[41] SingleCellExperiment_1.20.1 SummarizedExperiment_1.28.0 GenomicRanges_1.50.2        GenomeInfoDb_1.34.9         IRanges_2.32.0             
[46] S4Vectors_0.36.2            MatrixGenerics_1.10.0       matrixStats_1.3.0           Biobase_2.58.0              BiocGenerics_0.44.0        
[51] clusterProfiler_4.6.2       ggalluvial_0.12.5           ggrepel_0.9.5               ggpmisc_0.6.0               ggpp_0.5.8-1               
[56] UCell_2.2.0                 harmony_1.2.0               Rcpp_1.0.12                 scales_1.3.0                lubridate_1.9.3            
[61] forcats_1.0.0               stringr_1.5.1               dplyr_1.1.4                 purrr_1.0.2                 readr_2.1.5                
[66] tidyr_1.3.1                 tibble_3.2.1                ggplot2_3.5.1               tidyverse_2.0.0             SeuratObject_4.1.3         
[71] Seurat_4.3.0.1             

loaded via a namespace (and not attached):
  [1] rsvd_1.0.5                ica_1.0-3                 Rsamtools_2.14.0          foreach_1.5.2             lmtest_0.9-40             crayon_1.5.2             
  [7] nlme_3.1-161              backports_1.4.1           GOSemSim_2.24.0           rlang_1.1.3               XVector_0.38.0            HDO.db_0.99.1            
 [13] ROCR_1.0-11               irlba_2.3.5.1             SparseM_1.81              nloptr_2.0.3              limma_3.54.2              scater_1.26.1            
 [19] xgboost_1.7.7.1           BiocParallel_1.32.6       rjson_0.2.21              bit64_4.0.5               glue_1.7.0                sctransform_0.4.1        
 [25] vipor_0.4.7               parallel_4.2.2            spatstat.sparse_3.0-3     AnnotationDbi_1.60.2      DOSE_3.24.2               spatstat.geom_3.2-9      
 [31] tidyselect_1.2.1          km.ci_0.5-6               fitdistrplus_1.1-11       XML_3.99-0.16.1           zoo_1.8-12                GenomicAlignments_1.34.1 
 [37] xtable_1.8-4              MatrixModels_0.5-1        magrittr_2.0.3            evaluate_0.23             scuttle_1.8.4             cli_3.6.2                
 [43] zlibbioc_1.44.0           dbscan_1.1-12             rstudioapi_0.16.0         miniUI_0.1.1.1            sp_2.1-4                  fastmatch_1.1-4          
 [49] polynom_1.4-1             treeio_1.22.0             BiocSingular_1.14.0       xfun_0.44                 clue_0.3-65               gson_0.1.0               
 [55] cluster_2.1.4             tidygraph_1.3.1           KEGGREST_1.38.0           quantreg_5.97             ape_5.8                   listenv_0.9.1            
 [61] Biostrings_2.66.0         png_0.1-8                 future_1.33.2             withr_3.0.0               bitops_1.0-7              ggforce_0.4.2            
 [67] cellranger_1.1.0          dqrng_0.4.0               pillar_1.9.0              GlobalOptions_0.1.2       cachem_1.1.0              fs_1.6.4                 
 [73] GetoptLong_1.0.5          DelayedMatrixStats_1.20.0 vctrs_0.6.5               generics_0.1.3            tools_4.2.2               foreign_0.8-82           
 [79] beeswarm_0.4.0            munsell_0.5.1             tweenr_2.0.3              fgsea_1.24.0              DelayedArray_0.24.0       rtracklayer_1.58.0       
 [85] fastmap_1.2.0             compiler_4.2.2            abind_1.4-5               httpuv_1.6.15             plotly_4.10.4             GenomeInfoDbData_1.2.9   
 [91] gridExtra_2.3             edgeR_3.40.2              lattice_0.20-45           deldir_2.0-4              utf8_1.2.4                later_1.3.2              
 [97] jsonlite_1.8.8            ScaledMatrix_1.6.0        sparseMatrixStats_1.10.0  tidytree_0.4.6            pbapply_1.7-2             carData_3.0-5            
[103] lazyeval_0.2.2            promises_1.3.0            car_3.1-2                 doParallel_1.0.17         R.utils_2.12.3            goftest_1.2-3            
[109] spatstat.utils_3.1-3      reticulate_1.36.1         checkmate_2.3.2           rmarkdown_2.27            statmod_1.5.0             Rtsne_0.17               
[115] downloader_0.4            uwot_0.2.2                igraph_2.0.3              yaml_2.3.8                numDeriv_2016.8-1.1       htmltools_0.5.8.1        
[121] memoise_2.0.1             BiocIO_1.8.0              locfit_1.5-9.9            graphlayouts_1.1.1        viridisLite_0.4.2         digest_0.6.35            
[127] mime_0.12                 KMsurv_0.1-5              RSQLite_2.3.6             yulab.utils_0.1.4         future.apply_1.11.2       remotes_2.5.0            
[133] data.table_1.15.4         blob_1.2.4                R.oo_1.26.0               survMisc_0.5.6            splines_4.2.2             Formula_1.2-5            
[139] RCurl_1.98-1.14           broom_1.0.6               hms_1.1.3                 colorspace_2.1-0          base64enc_0.1-3           BiocManager_1.30.23      
[145] mnormt_2.1.1              ggbeeswarm_0.7.2          shape_1.4.6.1             aplot_0.2.2               nnet_7.3-18               mclust_6.1.1             
[151] RANN_2.6.1                enrichplot_1.18.4         fansi_1.0.6               tzdb_0.4.0                parallelly_1.37.1         R6_2.5.1                 
[157] lifecycle_1.0.4           bluster_1.8.0             ggsignif_0.6.4            minqa_1.2.7               leiden_0.4.3.1            qvalue_2.30.0            
[163] RcppAnnoy_0.0.22          iterators_1.0.14          spatstat.explore_3.2-7    htmlwidgets_1.6.4         beachmat_2.14.2           polyclip_1.10-6          
[169] shadowtext_0.1.3          timechange_0.3.0          gridGraphics_0.5-1        terra_1.7-71              globals_0.16.3            htmlTable_2.4.3          
[175] spatstat.random_3.2-3     progressr_0.14.0          codetools_0.2-18          metapod_1.6.0             GO.db_3.16.0              FNN_1.1.4                
[181] R.methodsS3_1.8.2         gtable_0.3.5              DBI_1.2.2                 ggfun_0.1.4               tensor_1.5                httr_1.4.7               
[187] KernSmooth_2.23-20        farver_2.1.2              viridis_0.6.5             ggtree_3.6.2              boot_1.3-28               BiocNeighbors_1.16.0     
[193] restfulr_0.0.15           ggplotify_0.1.2           scattermore_1.2           scran_1.26.2              bit_4.0.5                 scatterpie_0.2.2         
[199] spatstat.data_3.0-4       ggraph_2.2.1              pkgconfig_2.0.3           rstatix_0.7.2             knitr_1.46 


## Directory structure

ProjectRoot/

├── README.md

├── data/ \# Input and reference data

│ ├── CD8analysis.xlsx \# Summary of IHC CD8+ T cell analysis

│ ├── Summaryday711.xlsx \# Summary data for mouse FACS analysis

│ ├── datasummary.facs.xlsx \# Merged summary table of FACS results
related to Fig6

│ ├── TI072524.xlsx \# ELISA results

│ ├── mmc3.xls \# Supplementary dataset from Yossef et al

│ ├── neoTCR8all.txt \# List of tumor-reactive signature

│ ├── Clmelanoma/ \# Single-cell data for melanoma samples

│ ├── G-PBMC/ \# Integrated PBMC single-cell datasets

│ ├── TS/ \# Tumor and PBMC datasets

│ ├── lungpbmcnew/ \# TRTPBL marker enriched PBMC single-cell data

│ └── vdjtoolsoutcome/ \# Output from VDJtools clonotype analysis

│ ├── Figures/ \# Generated figures (saved by each script)

│ ├── fig1.png

│ └── ...

│ ├── scripts/ \# Analysis scripts by figure

│ ├── Fig1.R

│ ├── Fig2.R

│ ├── Fig3.R

│ ├── Fig4.R

│ ├── Fig5.R

│ ├── Fig6.R

│ ├── SupplFig5.R

│ ├── QC_G.R \# QC of G dataset (post-DSB normalization)

│ ├── QC_PBMC.R \# QC of PBMC single-cell data

│ ├── QC_TIL.R \# QC of tumor-infiltrating lymphocytes

│ ├── QC_mel.R \# QC of melanoma dataset

│ ├── Merge_clone.R \# Clonotype merging and annotation

│ ├── data_load_Enrich.R \# Load enrichment data

│ ├── data_load_G.R

│ ├── data_load_Mel.R

│ ├── data_load_TS.R

│ └── functions.R \# Common functions (e.g., theme_ito, plotting)

└── logs/ \# Run logs or sessionInfo



## How to run

1.  Load libraries
2.  Set working directory to project root\
3.  Unzip scripts and data
4.  Execute `functions.R`
5.  Execute `data_load_*.R`, `QC_*.R`, and `Merge_clone.R`
6.  Start from Fig1.R