You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with the spectral flow data from Cytek Aurora. I am trying to figure out how to specify a cofactor of 150 for arcsinh transformation in the transformList() function. Any suggestions would be helpful.
Thanks,
Rohit
The text was updated successfully, but these errors were encountered:
My answer is not authoritative, Sofie or others will correct me.
transformList() is a flowCore function, so your question should be addressed to flowCore package. An even better place is the bioconductor support, because you don't report a bug in fact.
So, CytoNorm's readme shows the use of cytofTransf which is defined in CytoNorm. Its code could help you to set up your own transform. The code is below. NB: we also have to add a reverse transform. So functions for Cytek based on your choice is something like that:
#' cytofTransform
#'
#' Arcsinh transformation with cofactor 5
#'
#' @param x Value to transform
#' @export
cytofTransform <- flowCore::arcsinhTransform(transformationId="cytofTransform",
a=0, b=(1/5), c=0)
#' cytofTransform.reverse
#'
#' @param x Value to tranform
#' Function to reverse arcsinh transformation with cofactor 5
#'
#' @export
cytofTransform.reverse <- function(x){
return(sinh(x)/(1/5))
}
Hi there,
I am working with the spectral flow data from Cytek Aurora. I am trying to figure out how to specify a cofactor of 150 for arcsinh transformation in the transformList() function. Any suggestions would be helpful.
Thanks,
Rohit
The text was updated successfully, but these errors were encountered: