Mutate scRepertorie object
ScRepMutate.Rd
Mutate scRepertorie object
Examples
# \donttest{
data(contig_list, package = "scRepertoire")
screp <- scRepertoire::combineTCR(contig_list)
head(ScRepMutate(screp, list(CTaa_len = "nchar(CTaa)"))[[1]])
#> barcode TCR1 cdr3_aa1
#> 1 AAACCTGAGTACGACG-1 TRAV25.TRAJ20.TRAC CGCSNDYKLSF
#> 3 AAACCTGCAACACGCC-1 TRAV38-2/DV8.TRAJ52.TRAC CAYRSAQAGGTSYGKLTF
#> 5 AAACCTGCAGGCGATA-1 TRAV12-1.TRAJ9.TRAC CVVSDNTGGFKTIF
#> 7 AAACCTGCATGAGCGA-1 TRAV12-1.TRAJ9.TRAC CVVSDNTGGFKTIF
#> 9 AAACGGGAGAGCCCAA-1 TRAV20.TRAJ8.TRAC CAVRGEGFQKLVF
#> 10 AAACGGGAGCGTTTAC-1 TRAV12-1.TRAJ9.TRAC CVVSDNTGGFKTIF
#> cdr3_nt1
#> 1 TGTGGGTGTTCTAACGACTACAAGCTCAGCTTT
#> 3 TGTGCTTATAGGAGCGCGCAGGCTGGTGGTACTAGCTATGGAAAGCTGACATTT
#> 5 TGTGTGGTCTCCGATAATACTGGAGGCTTCAAAACTATCTTT
#> 7 TGTGTGGTCTCCGATAATACTGGAGGCTTCAAAACTATCTTT
#> 9 TGTGCTGTGCGAGGAGAAGGCTTTCAGAAACTTGTATTT
#> 10 TGTGTGGTCTCCGATAATACTGGAGGCTTCAAAACTATCTTT
#> TCR2 cdr3_aa2
#> 1 TRBV5-1.None.TRBJ2-7.TRBC2 CASSLTDRTYEQYF
#> 3 TRBV10-3.None.TRBJ2-2.TRBC2 CAISEQGKGELFF
#> 5 TRBV9.None.TRBJ2-2.TRBC2 CASSVRRERANTGELFF
#> 7 TRBV9.None.TRBJ2-2.TRBC2 CASSVRRERANTGELFF
#> 9 <NA> <NA>
#> 10 TRBV9.None.TRBJ2-2.TRBC2 CASSVRRERANTGELFF
#> cdr3_nt2
#> 1 TGCGCCAGC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