paiva-s-lab / FlowCT

FlowCT: A semi-automated workflow for deconvolution of immunophenotypic data and objective reporting on large datasets
4 stars 4 forks source link

Heatmap functions not working #14

Closed Rhubarbcream closed 7 months ago

Rhubarbcream commented 7 months ago

When running

> median.heatmap(fcs, assay.i = "transformed", not.metadata = c("sample_id", "filename"))

R displays:

error in med[, markers.to.use] : subscript out of bounds

Unfortunately it does not help transposing the matrix in assay(fcs)... Are there other options?

jgarces02 commented 7 months ago

Hi. Could you show me the markers you're using, please?

On Sun, Jan 7, 2024, 2:38 PM Rhubarbcream @.***> wrote:

When running

median.heatmap(fcs, assay.i = "transformed", not.metadata = c("sample_id", "filename"))

R displays:

error in med[, markers.to.use] : subscript out of bounds

Unfortunately it does not help transposing the matrix in assay(fcs)... Are there other options?

— Reply to this email directly, view it on GitHub https://github.com/paiva-s-lab/FlowCT/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGURQGIVAM3PPNOERCZ3VNTYNL2TVAVCNFSM6AAAAABBQRGDKSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DSMRWGA4DIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

*Este mensaje puede contener información confidencial. Si usted no es el destinatario o lo ha recibido por error, por favor, bórrelo de sus sistemas y comuníquelo a la mayor brevedad al remitente. Los datos personales incluidos en los correos electrónicos que intercambie con el personal de la Universidad de Navarra podrán ser almacenados en la libreta de direcciones de su interlocutor y/o en los servidores de la Universidad durante el tiempo fijado en su política interna de conservación de información. La Universidad de Navarra gestiona dichos datos con fines meramente operativos, para permitir el contacto por email entre sus trabajadores/colaboradores y terceros. Puede consultar la Política de Privacidad de la Universidad de Navarra en la dirección:  *https://www.unav.edu/aviso-legal https://www.unav.edu/aviso-legal****

 

*This email message may contain confidential information. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments.  The personal information included in email messages exchanged with employees of the University of Navarra may be stored in the database of your interlocutor and/or the servers of the University for the time-period stipulated by its internal information storage policy. The University stores such data for purely administrative purposes, to facilitate e-mail contact between its employees and third parties. The University of Navarra Privacy Policy may be accessed at https://www.unav.edu/aviso-legal https://www.unav.edu/aviso-legal      *****

 

_Antes de imprimir este mensaje o sus documentos anexos, asegúrese de que es necesario. Proteger el medio ambiente está en nuestras manos. Before printing this e-mail or attachments, be sure it is necessary. _It is in our hands to protect the environment.__

Rhubarbcream commented 7 months ago

Yes, sure:

> row.names(assay(fcs))
 [1] "FSC-A"  "FSC-H"  "FSC-W"  "SSC-A"  "SSC-H"  "SSC-W"  "CD19"   "FoxP3"  "CD45-2" "CD4"    "CD11b"  "CD8"   
[13] "F4/80"  "Ly-6C"  "CD11c"  "CD3"    "CD44"   "D/L"    "CD25"   "CD45-1" "CD62L"  "TNFa"   "RORyt"  "H2D-d" 
[25] "H2D-b"  "VLA-4"  "IFNy"   "Il-6"

These are the markers I would like to use.

jgarces02 commented 7 months ago

Have you corrected them with marker.names()? R cannot deal with hyphens or another special characters.

Also, try to do intersect(rownames(fcs), c("your", "makers", "of", "interest")) and see what is the maker giving problems... the error is for something not matching.

On Sun, Jan 7, 2024, 4:19 PM Rhubarbcream @.***> wrote:

Yes, sure:

row.names(assay(fcs)) [1] "FSC-A" "FSC-H" "FSC-W" "SSC-A" "SSC-H" "SSC-W" "CD19" "FoxP3" "CD45-2" "CD4" "CD11b" "CD8" [13] "F4/80" "Ly-6C" "CD11c" "CD3" "CD44" "D/L" "CD25" "CD45-1" "CD62L" "TNFa" "RORyt" "H2D-d" [25] "H2D-b" "VLA-4" "IFNy" "Il-6"

These are the markers I would like to use.

— Reply to this email directly, view it on GitHub https://github.com/paiva-s-lab/FlowCT/issues/14#issuecomment-1880176982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGURQGJPCZMXLI6RE2MU7TTYNMGO7AVCNFSM6AAAAABBQRGDKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGE3TMOJYGI . You are receiving this because you commented.Message ID: @.***>

--

*Este mensaje puede contener información confidencial. Si usted no es el destinatario o lo ha recibido por error, por favor, bórrelo de sus sistemas y comuníquelo a la mayor brevedad al remitente. Los datos personales incluidos en los correos electrónicos que intercambie con el personal de la Universidad de Navarra podrán ser almacenados en la libreta de direcciones de su interlocutor y/o en los servidores de la Universidad durante el tiempo fijado en su política interna de conservación de información. La Universidad de Navarra gestiona dichos datos con fines meramente operativos, para permitir el contacto por email entre sus trabajadores/colaboradores y terceros. Puede consultar la Política de Privacidad de la Universidad de Navarra en la dirección:  *https://www.unav.edu/aviso-legal https://www.unav.edu/aviso-legal****

 

*This email message may contain confidential information. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments.  The personal information included in email messages exchanged with employees of the University of Navarra may be stored in the database of your interlocutor and/or the servers of the University for the time-period stipulated by its internal information storage policy. The University stores such data for purely administrative purposes, to facilitate e-mail contact between its employees and third parties. The University of Navarra Privacy Policy may be accessed at https://www.unav.edu/aviso-legal https://www.unav.edu/aviso-legal      *****

 

_Antes de imprimir este mensaje o sus documentos anexos, asegúrese de que es necesario. Proteger el medio ambiente está en nuestras manos. Before printing this e-mail or attachments, be sure it is necessary. _It is in our hands to protect the environment.__

Rhubarbcream commented 7 months ago

Thank you for the suggestion, I changed the marker names and it worked! Sometimes it's the little things that bring joy :)