immunomind / immunarch

🧬 Immunarch: an R Package for Fast and Painless Exploration of Single-cell and Bulk T-cell/Antibody Immune Repertoires
https://immunarch.com
Apache License 2.0
311 stars 66 forks source link

CDR3 length as proportion instead of clonotype number #413

Open Hammer-Q opened 3 months ago

Hammer-Q commented 3 months ago

Hi all, thanks for the great package, I'm enjoying it a lot! It might be a quite naive question: is there a possibility to analyze CDR3 lengths as a proportion/frequency instead as clonotype number? I have a set of samples with varying clone numbers and different clonotype proportions (some highly expanded clonotypes) and think that it could be useful to display the y-axis as proportion. Is this possible?

Small edit: I guess what I am trying to generate is a CDR3 length distribution plot that is weighted for clonotype size, i.e. that highly expanded clonotypes contribute more to the distribution compared to clonotypes of small proportion. Does that make sense?