Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: MCDS output.xml label carries additional information about the column data type #270

Open
elmbeech opened this issue Aug 5, 2024 · 1 comment

Comments

@elmbeech
Copy link
Contributor

elmbeech commented Aug 5, 2024

For downstream analysis, it would often be good to know what the actual data type from a column for the output matrix is.
In PhysiCell everything is outputted as float (double).

The suggestion is to have an additional tag dtype for data type, which specifies, if the column is supposed to be str (categorical), bool (categorical), int (numerical), float (numerical).
This could look somehow like below:

<simplified_data type="matlab" source="PhysiCell" data_version="2">
    <labels> 
        <label index="0" size="1" units="none", dtype="str">ID</label>
        <label index="1" size="3" units="microns", dtype="float">position</label>
        [...]
        <label index="5" size="1" units="none", dtype="str">cell_type</label>
        <label index="6" size="1" units="none", dtype="str">cycle_model</label>
        [...]
        <label index="21" size="1" units="none", dtype="int">number_of_nuclei</label>
        [...]
        <label index="27" size="1" units="none", dtype="bool">dead</label>
        [...]
    </labels>
    <filename>output00000064_cells.mat</filename>
</simplified_data>

Thnak you!

@elmbeech elmbeech changed the title Enhancement: MCDS output.xml label carries additional information about the column variable type Enhancement: MCDS output.xml label carries additional information about the column data type Aug 5, 2024
@elmbeech
Copy link
Contributor Author

elmbeech commented Aug 5, 2024

Currently these are the non float columns:

integer:

  • number_of_nuclei
  • maximum_number_of_attachments

boolean:

  • contact_with_basement_membrane
  • dead
  • is_motile

string:

  • ID
  • cell_type
  • cycle_model
  • current_phase
  • current_death_model
  • chemotaxis_index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant