-
Hello! I'm currently working through my dataset using NICHES and have a couple of questions: System-to-Cell
Outlier removal:
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is a great question! I will do my best to answer. The gist is this: rather than computing SystemToCell on your whole object, break the object by sample or patient and then run SystemToCell on each individual sub dataset. That way you will only ever consider cell crosses / information crosses with cells from within one individual. You then can combine all of those NICHES objects into one big summary NICHES object and process it as normal. This workflow also allows you to easily identify outlier patients, explore their patient-specific contributions, and decide to either exclude or treat appropriately. Code for this workflow can look like this: Split into samples
Run NICHES by tissue
Extract System to Cell Measurements, Format, and SaveExtract NICHES output of interest
Scale NICHES outputs once merged
Save if desired
Make sense? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response! That does make sense. So, just to make sure I understand what could be done: If I want to only take a look at "reasonable" cell-cell crosses (i.e. within the same tissue of origin and, of course, within the same individual), I could split the dataset twice before running NICHES. 1st split level = by patient, 2nd split level = by tissue. So, for each patient we have a skin object and a blood object. Then, I would run NICHES on that Tissue list, combine those resulting NICHES objects into one summary NICHES object, and proceed onwards with the analysis. Any fundamental flaws in doing so? |
Beta Was this translation helpful? Give feedback.
This is a great question! I will do my best to answer.
The gist is this: rather than computing SystemToCell on your whole object, break the object by sample or patient and then run SystemToCell on each individual sub dataset. That way you will only ever consider cell crosses / information crosses with cells from within one individual. You then can combine all of those NICHES objects into one big summary NICHES object and process it as normal. This workflow also allows you to easily identify outlier patients, explore their patient-specific contributions, and decide to either exclude or treat appropriately. Code for this workflow can look like this:
Split into samples