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

repFilter by CDR3.nt list #378

Closed tdfy closed 1 year ago

tdfy commented 1 year ago

Hello,

I would like to filter a repertoire file ( immdata ) by a list of CDR3.nt sequences contained in a df, dat2$CDR3.nt. Please advise how best to proceed. Thanks.

repFilter(immdata, .method = "by.clonotype", .query = list(CDR3.nt = include(dat2$CDR3.nt)))

tdfy commented 1 year ago

immdata$data$x<- immdata$data$x%>% distinct(.$CDR3.nt, .keep_all = TRUE)