Search code examples
plottransformationbioinformaticslogarithmnegative-number

Representing negative data on a log scale in Flow Cytometry


I'm creating a college app that plots Flow Cytometry data in an XY Graph. It looks like this:

enter image description here

It works fine for linear plots, but when I need to use logarithmic plots, I cannot represent data that is less than 0 as the log of a negative number is undefined.

So what is the accepted way of representing negative numbers on a log scale in Flow Cytometry?

One option is to add a constant value to all the values so that the smallest value is .001. However, I've seen existing flow cytometry software and it doesnt look like they are using this method (at least to my untrained eye). So what's the generally accepted method to use?

EDIT

This is not a duplicate of this question. I'm specifically asking what's the accepted way to represent negative numbers on a log scale in Flow Cytometry - not generally how to represent negative numbers on a log scale. The context - Flow Cytometry for blood analysis - is extremely important as its quite subjective, and makes this a different question.

EDIT This article suggest something called 'logicle' to display negative values. Seems to be a combination of linear and log.


Solution

  • Following articles support the use of logicle:

    http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4761345

    http://www.ncbi.nlm.nih.gov/pubmed/16604519

    http://www.onlinelibrary.wiley.com/doi/10.1002/cyto.a.20258/pdf

    Code for transformation appears to be available here:

    https://www.github.com/Bioconductor-mirror/flowCore