I tried to edit plot_beta_diversity function in VDJ_diversity.R with fct_reorder():
and it worked:
but this would be a problem when group_column is a character that can't be converted to numeric.
Alternatively, I tried to inspect why VDJ_diversity gives an error when group.column is a factor:
It might be that a comma at the location highlighted by ??? is missing (in VDJ_abundances.R), but adding that led to a few other errors which I can't resolve.
Hi,
I'm interested seeing if TCR from different seurat clusters have different antigen specificity by doing:
However my
seurat_clusters
is a factor rather than character and it gives error:The error goes away when I convert
seurat_clusters
to character, but the ordering of clusters are not in accordance with its numerical order.I tried to edit
plot_beta_diversity
function in VDJ_diversity.R withfct_reorder()
:and it worked: but this would be a problem when
group_column
is a character that can't be converted to numeric.Alternatively, I tried to inspect why VDJ_diversity gives an error when
group.column
is a factor: It might be that a comma at the location highlighted by???
is missing (in VDJ_abundances.R), but adding that led to a few other errors which I can't resolve.