Open shntnu opened 6 years ago
@shntnu To clarify, the CSV for that particular object should be skipped but not the others. For example, if Cells_Count is 0, but Nuclei_Count and Cytoplasm_Count are non-zero, then we should ingest Nuclei.csv and Cytoplasm.csv (but not Cells.csv).
Cell (or other compartment) count may not always be present in the Image.csv. Instead, first check whether all the compartments CSVs have zero rows; if so, log that (as opposed to a more generic Some files were invalid
) and proceed
When we get a
Some files were invalid
error, that's almost always because the number of cells were zero. So handle this explicitly, i.e., if *_Count exists and is zero and then don't ingest the objects