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
312 stars 65 forks source link

Spectrotype plot #347

Open makarov-ccf opened 1 year ago

makarov-ccf commented 1 year ago

Hello,

I am trying to reproduce the spectrotype plot as per

https://immunarch.com/reference/spectratype.html

using the test_data i downloaded. It works as posted sp <- spectratype(immdata$data[[1]], .col = "aa+v") vis(sp)

but immdata$data[[1]] is only Sample1. I would like to plot for all 4 (or all), but getting an error. Help function tells me that data is a data frame or list of data frames. Is it possible to plot a spectratype for all samples in the dataset

vis(spectratype(immdata$data, .col = "aa+v")) Error: !has_class(.data, "list") is not TRUE But is a list of dataframes class(immdata$data) [1] "list" class(immdata$data[[1]]) [1] "tbl_df" "tbl" "data.frame"

Thank you very much

Vlad Makarov