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) – Monomer counts from validation data.

  • monomer_counts (ndarray) – Simulated monomer counts (from translation process).

  • validation_ids (ndarray) – Monomer IDs from validation data. IDs must appear in same order as in validation_counts.

  • simulation_ids (ndarray) – 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, ndarray]