satijalab / seurat

R toolkit for single cell genomics
http://www.satijalab.org/seurat
Other
2.25k stars 904 forks source link

add 'assay' parameter to FeaturePlot #6681

Closed rocanja closed 1 year ago

rocanja commented 1 year ago

It would be great if the 'assay' parameter could be added to the FeaturePlot function in a similar way to how it's available for VlnPlot, RidgePlot and DotPlot ... to enable easy plotting of features from custom assays in the seurat object. The current workaround is to reset the default assay with 'DefaultAssay(object = seurat) <- "custom"', but being able to specify the assay in the FeaturePlot call directly would be neater. Thank you for considering and thanks for this great package!

saketkc commented 1 year ago

Thank you for the suggestion. You can use the assay keys to do this. For example sct_LYZ will plot the data slot of SCT assay for LYZ gene.