alexyermanos / Platypus

R package for the analysis of single-cell immune repertoires
GNU General Public License v3.0
36 stars 16 forks source link

Printing the summary table of overlapping clones from the VDJ_overlap_heatmap() function #46

Closed zoqaiyum closed 1 year ago

zoqaiyum commented 1 year ago

Hello,

It is me again. I am using the VDJ_overlap_heatmap() function to get the overlap in the repertoires of my samples. Please see my code below:

#overlap of VDJ V genes
VDJv_overlap <- VDJ_overlap_heatmap(VDJ = vgm[[1]],feature.columns = c("VDJ_vgene","VJ_vgene") ,grouping.column = "sample_id", axis.label.size = 9, pvalues.label.size = 4, add.barcode.table = T, plot.type = "ggplot") 
print(VDJv_overlap[[1]])
head(VDJv_overlap[[2]]) #summary of overlap - 6 rows
VDJv_overlap[[2]] #Entire summary of overlap
head(VDJv_overlap[[3]]) #Table of overlapping items - 6 rows
VDJv_overlap[[3]] #Entire table of overlapping items 

How do I export "VDJv_overlap[[2]]" or "VDJv_overlap[[3]]" outputs (which are the tables for summary of overlap and overlapping items) of my code into .csv or .xlsx format?

Many thanks!!

zoqaiyum commented 1 year ago

I figured it out and closing this as complete.