Giter Site home page Giter Site logo

Comments (1)

SamGG avatar SamGG commented on August 17, 2024 1

Hi,

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:

cytekTransform <- flowCore::arcsinhTransform(transformationId="cytekTransform",
                                             a=0, b=(1/150), c=0)
cytofTransform.reverse <- function(x){
    return(sinh(x)*150)
}

We have to use the flowCore definition because this allows to the flwoCore infrastructure.

IMHO 150 is too low for Cytek, I would start with a cofactor of 3000 (e.g. Importing and Transforming Spectral Flow Cytometry Data in https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8640183/)

Best,
Samuel

#' 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))
}

from cytonorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.