Skip to content

Conversation

@cshenry
Copy link
Contributor

@cshenry cshenry commented Oct 6, 2022

No description provided.

Fxe and others added 30 commits July 6, 2023 12:20
cobrapy extracell warning
adding methanol and methylamines medias
Christopher Henry and others added 30 commits February 23, 2025 13:26
# Conflicts:
#	modelseedpy/core/msatpcorrection.py
#	modelseedpy/core/msmodel.py
#	modelseedpy/core/mstemplate.py
#	setup.py
- Implements expression-constrained flux balance analysis

- Handles genome-to-model and type transformations
  automatically

- Integrates with ExpressionActivationPkg for optimization

- Includes comprehensive NumPy-style docstring with examples

- Adds 12 unit tests covering all functionality and edge
   cases

- Validates thresholds, conditions, and model compatibility

- Related to PRD 0001 and task list tasks-0001
Fixed issue where reaction expression values were blank when converting
from gene-level to reaction-level expression.

The problem occurred when expression data was loaded without a genome
or when model gene IDs didn't match genome feature IDs. The original
code only searched through the genome object, failing to find genes
with different ID formats (e.g., model has ACIAD#### but expression
has ACIAD_RS#####).

Changes:
- First attempt direct lookup in self.features by gene ID
- Fall back to genome search (which supports aliases) if direct lookup fails
- This allows matching when gene IDs are identical, even without a genome
- Maintains backward compatibility with genome-based alias resolution

Fixes blank reaction expression values in genome-to-model conversion.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Integrates a new method to average expression data across replicates for each strain. This method:
- Takes replicate columns (e.g., ACN2586_1, ACN2586_2) and averages them into single columns per strain
- Properly uses MSCondition class instead of a fake ExpressionCondition
- Returns a new MSExpression object with averaged data
- Handles cases where replicates exist, single columns exist, or no data is found
- Includes comprehensive logging and error handling

This method is useful for preprocessing expression data before analysis.
…011CUoKZ7YGo72duYdrs7oTT

Add average_expression_replicates method to MSExpression
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

Successfully merging this pull request may close these issues.

5 participants