wholecell.utils.protein_counts
Utilities for counting simulated proteins
- wholecell.utils.protein_counts.get_simulated_validation_counts(validation_counts, monomer_counts, validation_ids, simulation_ids)[source]
Get simulated counts and validation counts of monomers that exist in both the simulation and the validation data
- Parameters:
validation_counts (ndarray[Any, dtype[int64]]) – Monomer counts from validation data.
monomer_counts (ndarray[Any, dtype[int64]]) – Simulated monomer counts (from translation process).
validation_ids (ndarray[Any, dtype[str_]]) – Monomer IDs from validation data. IDs must appear in same order as in validation_counts.
simulation_ids (ndarray[Any, dtype[str_]]) – IDs of monomers in the same order as monomer_counts.
- Returns:
The simulated counts of the monomers that appear in the validation data, and the validation counts of the monomers in the same order.
- Return type:
tuple[ndarray[Any, dtype[int64]], ndarray[Any, dtype[int64]]]