Nanostring-Biostats / FastReseg

FastReseg for detection and correction of cell segmentation error based on spatial profile of transcripts.
https://nanostring-biostats.github.io/FastReseg/
Other
2 stars 0 forks source link

wrapper functions #1

Closed patrickjdanaher closed 2 years ago

patrickjdanaher commented 2 years ago

I think it would help this get used if we had a wrapper function that made it simple to run. The main goals I have in mind are:

Here's one way to get there:

lidanwu commented 2 years ago

Thanks for the suggestions. I have a few question regarding implementing the proposed wrapper functions.

lidanwu commented 2 years ago

@patrickjdanaher Here is the wrapper to fastReseg_externalRef function to do the whole re-segmentation procedure with a transcript level data.frame, defined reference profiles and baseline cutoff for tLLR score and transcript number in resegmentation. I have also uploaded smaller example dataset such that one could run the function with the provided dataset and code list in function examples. Notice that the reference profiles and baseline cutoff are provided as input for current wrapper function but it would be better to extract them from the whole multi-slide multi-FOV experiment. I would next work on a function to enable the extraction of reference profiles and baseline cutoff from user input of either average per cell count of cell type x gene matrix or the true single cell count of cell ID x gene matrix.