rezakj / iCellR

Single (i) Cell R package (iCellR) is an interactive R package to work with high-throughput single cell sequencing technologies (i.e scRNA-seq, scVDJ-seq, scATAC-seq, CITE-Seq and Spatial Transcriptomics (ST)).
120 stars 19 forks source link

gg.cor produces incorrect plots #34

Open rohitrrj opened 2 years ago

rohitrrj commented 2 years ago

Thank you for the great package. I have noticed the implementation of gg.cor produces incorrect results! eg. When you provide gene1 = "TCF7" and gene2 = "IFNG", it will produce an identical plot as gene1 = "IFNG" and gene2 = "TCF7"

I believe this is a result of using "subset" function which sorts the data frame and you "hard-code" the columns used for x and y in the ggplot function.