Generate a fraction of immune cell between two condition from single cell RNAseq #7806
-
Dear respected professor, Do you know whether I can use Seurat generate fractions of immune cells from total cells as in figure (e) of attached image between two condition. Could not find any script to do that. Really appreciate your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can try the following code (make sure to have Seurat loaded, as well as to have the following packages "foreach" and "openxlsx" installed; in addition, change the names where needed - e.g., if your main object is not called "combined", replace "combined" with whatever name you gave that object) - tell me if it worked for you:
|
Beta Was this translation helpful? Give feedback.
You can try the following code (make sure to have Seurat loaded, as well as to have the following packages "foreach" and "openxlsx" installed; in addition, change the names where needed - e.g., if your main object is not called "combined", replace "combined" with whatever name you gave that object) - tell me if it worked for you: