feiyoung / PRECAST

an efficient data integration method for multiple spatial transcriptomics data with non- cluster-relevant effects such as the complex batch effects.
GNU General Public License v3.0
9 stars 3 forks source link

applying psuedobulk #24

Closed abraham-abin13 closed 1 month ago

abraham-abin13 commented 1 month ago

Hi, Thank you again for a powerful package for spatial analyses. I wanted to apply psuedobulking to the PRECAST corrected gene expression matrix. However, the corrected gene expression ranges from negative to positive numbers. Many psuedobulking approaches log normalizes after aggregation. This step is not possible when there are negative expression values. Any advice on how to handle this? Thank you, Abin

feiyoung commented 1 month ago

For each gene, you can convert it to a non-negative value by subtracting the minimum value from the corrected expression values.