ebecht / infinityFlow

25 stars 8 forks source link

Error in xp[, x] : subscript out of bounds at logicle-transforming the data - Backbone #16

Closed denvercal1234GitHub closed 1 year ago

denvercal1234GitHub commented 1 year ago

Hi there,

Thanks for the package.

I inputed the FCS files exported from FlowJo after gating on live single CD4+CD19-CD3+ T cells.

I then specified "backbone" markers and "discard" markers. I did include CD4, CD19, CD3 as "backbone".

When I ran infinity_flow(), I encountered an error below. Note I did not use neural net here. Would you mind helping me to diagnose this?

Thank you for your help.

if(length(regression_functions) != length(extra_args_regression_params)){
    stop("Number of models and number of lists of hyperparameters mismatch")
}
imputed_data <- infinity_flow(
    regression_functions = regression_functions,
    extra_args_regression_params = extra_args_regression_params,
    path_to_fcs = path_to_fcs,
    path_to_output = path_to_output,
    path_to_intermediary_results = path_to_intermediary_results,
    backbone_selection_file = backbone_selection_file,
    annotation = targets,
    isotype = "Blank",
    input_events_downsampling = Inf,
    prediction_events_downsampling = 1000,
    verbose = TRUE,
    cores = 1L,
    neural_networks_seed = NULL
)
Registered S3 method overwritten by 'data.table':
  method           from
  print.data.table     
...../InfinityFlow/output: directories not found, creating directory(ies)
Using directories...
    input: .....Untransformed_FCS
    intermediary: ...../InfinityFlow/tmp
    subset: ...../InfinityFlow/tmp/subsetted_fcs
    rds: ......../InfinityFlow/tmp/rds
    annotation: ....../InfinityFlow/tmp/annotation.csv
    output: ...../InfinityFlow/output
Parsing and subsampling input data
    Downsampling to Inf events per input file
    Concatenating expression matrices
    Writing to disk
Logicle-transforming the data
    Backbone data
Error in xp[, x] : subscript out of bounds
denvercal1234GitHub commented 1 year ago

Solved by ensuring the names of exported FCS are the same as in annotation file.