DillonHammill / CytoExploreR

Interactive Cytometry Data Analysis
60 stars 13 forks source link

Cyto_transform is having problems with my gatingset #209

Open kim619 opened 3 weeks ago

kim619 commented 3 weeks ago

Hi I am trying to transform my data using the cyto_transform function but it encounters into error possibly due to the parameters used in cyto_transform (e.g, w, m)

Here are the codes


 gs<- cyto_transform(gs,channels=c("FITC-H","PE-H","FITC-A","PE-A","FSC-H","SSC-H","FSC-A","SSC-A","Time"),
                  display=10000,
                    trans=NULL,
                    type="log",
                    select="pCon08-G4.fcs",
                    m=5,
                    w=0.5,
                    widthBasis=80,
                     axes_limits="data")
Error: 'trans' must be a list of transformer objects (generated by scales::trans_new method)

I then tried using different parameters:

trans_logicle <- cyto_transformer_logicle(gs)
Error in .lgclTrans(x, p, ...) : w is negative!Try to increase 'm'

 trans_logicle <- cyto_transformer_logicle(gs,
                                          m=10,
                                           w=-1000)
Error: 'trans' must be a list of transformer objects (generated by scales::trans_new method)
 trans_logicle <- cyto_transformer_logicle(gs,
                                           m=10,
                                           w=1)
Error: 'trans' must be a list of transformer objects (generated by scales::trans_new method)
 trans_logicle <- cyto_transformer_logicle(gs,
                                           channels = "PE-A",
                                           m=20,
                                           w=10)
Error: 'trans' must be a list of transformer objects (generated by scales::trans_new method)

I also tried using biexponential transformation:

 # Default biexponentail transformer
 trans_biex <- cyto_transformer_biex(gs)
Error: 'trans' must be a list of transformer objects (generated by scales::trans_new method)

Same issues persist, please let me know what do the parameters mean since I don't know their meaning it would be hard to tweak around or what can I do about this, thanks a lot!