BayesPrism icon indicating copy to clipboard operation
BayesPrism copied to clipboard

proper use of get.exp() function

Open alexdray86 opened this issue 2 years ago • 1 comments

Dear Sir or Madam,

I am having trouble to get the matrix of cell-type expression from bayesprism output. I am trying to use :

get.exp(bp.res, state.or.type="type")

But the latter unfortunately only give me back a flat vector and despite my effort to build a 3d array with it, I cannot find the right dimension order. How to get the 3d array we are supposed to get from this (e.g. high-resolution cell-type expression)

Thanks in advance ! Regards,

Alexandre Coudray PhD student in Trono/La Manno group, EPFL Switzerland

alexdray86 avatar Feb 09 '23 16:02 alexdray86

Hi Alexandre,

Thank you for your interest in our method. Could you do print(bp.res) and head(get.exp(bp.res, state.or.type="type")), and post the results for troubleshooting? Many thanks.

Best,

Tinyi

On Thu, Feb 9, 2023 at 11:27 AM Alexandre Coudray - LVG lab EPFL < @.***> wrote:

Dear Sir or Madam,

I am having trouble to get the matrix of cell-type expression from bayesprism output. I am trying to use :

get.exp(bp.res, state.or.type="type")

But the latter unfortunately only give me back a flat vector and despite my effort to build a 3d array with it, I cannot find the right dimension order. How to get the 3d array we are supposed to get from this (e.g. high-resolution cell-type expression)

Thanks in advance ! Regards,

Alexandre Coudray PhD student in Trono/La Manno group, EPFL Switzerland

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

tinyi avatar Feb 10 '23 17:02 tinyi