CDR3AAPhyschem¶
CDR3 AA physicochemical feature analysis
The idea is to perform a regression between two groups of cells
(e.g. Treg vs Tconv) at different length of CDR3 AA sequences.
The regression will be performed for each physicochemical feature of the
AA (hydrophobicity, volume and isolectric point).
Environment Variables¶
group
: The key of group in metadata to define the groups to compare. For example,CellType
, which has cell types annotated for each cell in the combined object (immdata + Seurat metadata)comparison
(type=json
): A dict of two groups, with keys as the group names and values as the group labels. For example,Treg = ["CD4 CTL", "CD4 Naive", "CD4 TCM", "CD4 TEM"] Tconv = "Tconv"
prefix
: Default:{Sample}_
.
The prefix of the cell names (rownames) in the metadata.
The prefix is usually not needed in immdata, as the data is stored in theimmdata
object separately for each sample. However, theSeurat
object has a combinedmeta.data
for all the samples, so the prefix is needed. Usually, the prefix is the sample name.
For example,Sample1-AACGTTGAGGCTACGT-1
.
We need this prefix to add the sample name to the cell names in immdata, so that we can match the cells inimmdata
andSeurat
object. Set it toNone
or an empty string if theSeurat
object has the same cell names asimmdata
. You can use placeholders to specify the prefix, e.g.,{Sample}_
. In such a case, theSample
column must exist in theSeurat
object.target
: Which group to use as the target group. The target group will be labeled as 1, and the other group will be labeled as 0 in the regression.subset
: A column, or a list of columns separated by comma, in the merged object to subset the cells to perform the regression, for each group in the columns.
If not provided, all the cells will be used.
Reference¶
- Stadinski, Brian D., et al. "Hydrophobic CDR3 residues promote the development of self-reactive T cells." Nature immunology 17.8 (2016): 946-955.
- Lagattuta, Kaitlyn A., et al. "Repertoire analyses reveal T cell antigen receptor sequence features that influence T cell fate." Nature immunology 23.3 (2022): 446-457.
- Wimley, W. C. & White, S. H. Experimentally determined hydrophobicity scale for proteins at membrane - interfaces. Nat. Struct. Biol. 3, 842-848 (1996).
- Handbook of chemistry & physics 72nd edition. (CRC Press, 1991).
- Zamyatnin, A. A. Protein volume in solution. Prog. Biophys. Mol. Biol. 24, 107-123 (1972).