SBU-BMI / tumor-til-survival-analysis

Scripts to run analysis of tumor/TILs.
Apache License 2.0
2 stars 0 forks source link

[BUG] error when aligning wsinfer output: "'data' must be of a vector type, was 'NULL'" #11

Closed kaczmarj closed 1 year ago

kaczmarj commented 1 year ago

i get the following error while aligning tumor and TIL files using wsinfer outputs. this failed on sample number 361, so there is probably some edge case that is not handled. interestingly, the ratio is 1.7857 when for all previous slides, it was 1.75. i am not sure if that is relevant to the problem.

[1] "Sample 361: 1.78571428571429"
Error in matrix(unlist(ini), ncol = 2, byrow = TRUE) : 
  'data' must be of a vector type, was 'NULL'
Calls: <Anonymous> ... .rasterObjectFromFile -> .rasterFromRasterFile -> readIniFile -> matrix
In addition: There were 50 or more warnings (use warnings() to see the first 50)
Execution halted

the slide has 0 tumor-positive patches and 1 til-positive patch. could that be the issue?

@lthealy

lthealy commented 1 year ago

This is in the rasterization step, so it probably doesn't have to do with the actual prediction values. Those aren't used until later. How many tissue patches are there overall?

kaczmarj commented 1 year ago

78 tumor patches and 268 TIL patches. these images are low resolution... mpp = 3.485. the tumor patch width is 25 pixels and the til patch width is 14 pixels.

lthealy commented 1 year ago

I historically have trimmed out low res files being that they are primarily used for quick quality scans. If "low_res" images are consistently generated, we may want to include a flag to skip them in the alignment step.