BayesPrism icon indicating copy to clipboard operation
BayesPrism copied to clipboard

Z expression matrix

Open martina811 opened this issue 1 year ago • 7 comments

Hello, I would like to know what is the step in Bayes Prism where the Z matrix, that we found in posterior.initial.state/type, is generated?

Thanks a lot for your help

martina811 avatar Nov 29 '23 11:11 martina811

Hi. I wasn’t quite sure I understand your question. Could you elaborate a bit?

On Wed, Nov 29, 2023 at 19:10 biomart811 @.***> wrote:

Hello, I would like to know what is the step in Bayes Prism where the Z matrix, that we found in posterior.initial.state/type, is generated?

Thanks a lot for your help

— Reply to this email directly, view it on GitHub https://github.com/Danko-Lab/BayesPrism/issues/68, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4NHSZJZZUM67HHUITVLE3YG4JZNAVCNFSM6AAAAAA77IYOKWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTMMZUHA4TONQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tinyi avatar Dec 11 '23 09:12 tinyi

I am using Bayes Prism, and I want to use it as a tool for having a measure of confidence of my results. So I was wondering if I can extract the posterior probability on which bayes prism based its results in θf.

martina811 avatar Dec 13 '23 14:12 martina811

Hi. BayesPrism reports the coefficient of variation for the posteriors theta0 and thetaf, but does not report this for Z, mainly due to consideration of computational and memory efficiency.

On Wed, Dec 13, 2023 at 22:21 biomart811 @.***> wrote:

I am using Bayes Prism, and I want to use it as a tool for having a measure of confidence of my results. So I was wondering if I can extract the posterior probability on which bayes prism based its results in θf.

— Reply to this email directly, view it on GitHub https://github.com/Danko-Lab/BayesPrism/issues/68#issuecomment-1854007176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4NHS6BIOJEZ54MBMIK3L3YJG2WBAVCNFSM6AAAAAA77IYOKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJUGAYDOMJXGY . You are receiving this because you commented.Message ID: @.***>

tinyi avatar Dec 14 '23 08:12 tinyi

And there is a way to calculate the posterior probability that bayes prism use for update thetaf starting from theta0 ? Thank you

martina811 avatar Dec 14 '23 09:12 martina811

Not sure if I understand the question. For the exact math, please refer to the BayesPrism manuscript. For the code, please refer to the update_reference.R .

On Thu, Dec 14, 2023 at 5:36 PM biomart811 @.***> wrote:

And there is a way to calculate the posterior probability that bayes prism use for update thetaf starting from theta0 ? Thank you

— Reply to this email directly, view it on GitHub https://github.com/Danko-Lab/BayesPrism/issues/68#issuecomment-1855498189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4NHS32CI4D5V4HTAG6GKDYJLCBTAVCNFSM6AAAAAA77IYOKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVGQ4TQMJYHE . You are receiving this because you commented.Message ID: @.***>

tinyi avatar Dec 14 '23 09:12 tinyi

my question is if from Bayes Prism there is a way to obtain a measure of confidence for the updated thetaf that Bayes Prism provides.

martina811 avatar Dec 14 '23 09:12 martina811

please refer to the vignette tutorial_deconvolution.html

extract coefficient of variation (CV) of cell type fractiontheta.cv

<- @.@.

On Thu, Dec 14, 2023 at 5:47 PM biomart811 @.***> wrote:

my question is if from Bayes Prism there is a way to obtain a measure of confidence for the updated thetaf that Bayes Prism provides.

— Reply to this email directly, view it on GitHub https://github.com/Danko-Lab/BayesPrism/issues/68#issuecomment-1855517237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4NHSY5EYB543E2BAD4ITLYJLDJNAVCNFSM6AAAAAA77IYOKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVGUYTOMRTG4 . You are receiving this because you commented.Message ID: @.***>

tinyi avatar Dec 14 '23 09:12 tinyi