immunarch icon indicating copy to clipboard operation
immunarch copied to clipboard

How to specify groups order?

Open makarov-ccf opened this issue 1 year ago • 2 comments

Hello,

Any plot I make where I need to compare samples by group, the groups are always listed alphabetically. Is it a way to position them in specified order? Example is attached. I wanted to plot in order: Pre, Post, but unless I added xPost, the order was always Post, Pre (i.e. alphabetically)

Thank you

repertoire_diversity_status.pdf

makarov-ccf avatar Mar 15 '24 00:03 makarov-ccf

Hi, I also encountered this problem, and I found one post with relevant content in this website. It would be useful to add a column to define the data by the order you want like "A, B, C" in the metadata.txt and then analyze by .by=new_column. This seems a littile funny, but actually solve my problem. Best wishes!

linqy-immune avatar Apr 07 '25 07:04 linqy-immune

That's very helpful, thank you for sharing

makarov-ccf avatar Apr 08 '25 18:04 makarov-ccf

Hello, I'm closing this issue because immunarch is moving to version 1.0.0, and many things have changed since this issue was opened.

The new version of immunarch is already available. Install it via:

  1. pak (recommended)
# Install pak
install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))
# Install or update immunarch pre-1.0
pak::pkg_install("immunomind/immunarch")
  1. CRAN
install.packages("immunarch")

What changed (in short):

  • Some old functions were removed, moved or will be moved to other packages.
  • The new interface is more lightweight and easier to understand.
  • The package now uses the ImmunData format (from the immundata package) that supports out-of-memory datasets, both single- and paired-chain receptors, and allows flexible annotation of receptors with multi-modal information, such as information about cell clusters or gene expression from scRNAseq data.
  • The focus is gradually shifting towards biomarker discovery, patient stratification, and other use cases for immunotherapy and vaccine development.

For smooth migration, please check:

If you have any questions or issues with the new immunarch, please open a new issue. Thank you!

— Vadim

vadimnazarov avatar Oct 14 '25 16:10 vadimnazarov