Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saving the scRepertoire object #474

Closed
Chiranjit1504 opened this issue Feb 7, 2025 · 2 comments
Closed

saving the scRepertoire object #474

Chiranjit1504 opened this issue Feb 7, 2025 · 2 comments

Comments

@Chiranjit1504
Copy link

I was wondering how I save the scRepertoire object after I have used combineTCR function on my list.

Donor.TCR <- combineTCR(contig_list,
samples = c("DL","DL","DL","DL","DLN","DLN","DLN","DLN"), # combineExpression
ID = c("6414", "6442", "6446", "7678", "6414", "6442","6446","7678"))

I tried saving the Donor.TCR as a Rdata object but whenever I load the object back, I cannot access it in the way I would for a scRepertoire object.

@ncborcherding
Copy link
Member

Hey @Chiranjit1504,

I would look at how you are saving and retrieving the rda file - there should be not issue with this from the scRepertoire perspective. Here is a reproducible example (I just ensured this works as well):

library(scRepertoire)
data("contig_list") 
combined.TCR <- combineTCR(contig_list, 
                           samples = c("P17B", "P17L", "P18B", "P18L", 
                                       "P19B","P19L", "P20B", "P20L"))
save(combined.TCR, file = "~/Combined.TCR.rda")   
load("~/Combined.TCR.rda")  

Hope that helps,
Nick

@Chiranjit1504
Copy link
Author

Chiranjit1504 commented Feb 8, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants