TCRconvertR

Convert TCR gene names

https://github.com/seshadrilab/tcrconvertr

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (19.5%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Convert TCR gene names

Basic Info
Statistics
  • Stars: 4
  • Watchers: 3
  • Forks: 0
  • Open Issues: 7
  • Releases: 0
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```


[![codecov](https://codecov.io/gh/seshadrilab/tcrconvertr/graph/badge.svg?token=JVURVQO10D)](https://app.codecov.io/gh/seshadrilab/tcrconvertr)
[![R-CMD-check](https://github.com/seshadrilab/tcrconvertr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/seshadrilab/tcrconvertr/actions/workflows/R-CMD-check.yaml)


# Convert TCR gene names

`TCRconvertR` converts V, D, J, and/or C gene names between the 10X Genomics, Adaptive Biotechnologies, and IMGT nomenclatures. IMGT is the AIRR Community–recommended standard. It supports alpha-beta and gamma-delta T cell receptors (TCRs) for human, mouse, and rhesus macaque. Users can also define custom species, see: `vignette("custom-species")`. A [Python version](https://github.com/seshadrilab/tcrconvert) with command-line support is also available.

## Background

TCR annotation tools use different gene naming conventions, making cross-dataset searches difficult (e.g., identifying 10X-annotated TCRs in Adaptive data). Manual conversion is complex and error-prone due to inconsistencies in naming rules.

`TCRconvertR` automates this process efficiently and accurately. Our approach is based on analyzing multiple 10X and Adaptive data sets to capture their naming variations.

## Installation

Install the latest stable version from [CRAN](https://cran.r-project.org/web/packages/TCRconvertR/index.html):

```r
install.packages("TCRconvertR")
```

You can also install the development version from GitHub:

```r
# install.packages("pak")
pak::pak("seshadrilab/tcrconvertr")
```

## Usage

#### 1. Load TCRs into a data frame

Examples of files you may want to load:

- **10X**: `filtered_contig_annotations.csv`
- **Adaptive**: `Sample_TCRB.tsv`
- **IMGT**: Output from `MiXCR` or other tools

```{r}
library(TCRconvertR)

tcr_file <- get_example_path("tenx.csv") # Using built-in example file
tcrs <- read.csv(tcr_file)[c("barcode", "v_gene", "j_gene", "cdr3")]
tcrs
```

####  2. Convert

```{r}
new_tcrs <- convert_gene(tcrs, frm = "tenx", to = "adaptive")
new_tcrs
```

## Contributing

Contributions are welcome! To contribute, submit a pull request. See the documentation for details.

## Issues

To report a bug or request a feature please open an 
[issue](https://github.com/seshadrilab/tcrconvertr/issues).

## Contact

For other inquiries, contact Emma Bishop: emmab5 at uw dot edu.

## Acknowledgments

This project was supported by the Fred Hutchinson Cancer Center Translational Data Science Integrated Research Center (TDS IRC) through the 2024 Data Scientist Collaboration Grant. Special thanks to Scott Chamberlain for development support and Shashidhar Ravishankar for gene name curation.

Owner

  • Name: seshadrilab
  • Login: seshadrilab
  • Kind: organization

GitHub Events

Total
  • Create event: 10
  • Issues event: 29
  • Watch event: 4
  • Delete event: 7
  • Member event: 2
  • Issue comment event: 26
  • Push event: 70
  • Pull request review comment event: 35
  • Pull request review event: 31
  • Pull request event: 14
Last Year
  • Create event: 10
  • Issues event: 29
  • Watch event: 4
  • Delete event: 7
  • Member event: 2
  • Issue comment event: 26
  • Push event: 70
  • Pull request review comment event: 35
  • Pull request review event: 31
  • Pull request event: 14

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 19
  • Total pull requests: 7
  • Average time to close issues: 28 days
  • Average time to close pull requests: 8 days
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 0.42
  • Average comments per pull request: 2.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 19
  • Pull requests: 7
  • Average time to close issues: 28 days
  • Average time to close pull requests: 8 days
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.42
  • Average comments per pull request: 2.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • emjbishop (18)
  • sckott (1)
Pull Request Authors
  • emjbishop (6)
Top Labels
Issue Labels
enhancement (9) bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 365 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: TCRconvertR

Convert TCR Gene Names

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 365 Last month
Rankings
Dependent packages count: 26.7%
Dependent repos count: 32.9%
Average: 48.8%
Downloads: 86.7%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • tools * imports
  • utils * imports
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite