Inference with custom model #40
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes made to allow easier inference and evaluation of custom Decima models, including models trained on non-hg38 genomes.
src/decima/hub/init.py
Changed
load_decima_modelto:src/decima/cli/predict_genes.py
Allow
cli_predict_genesto take as input a list of model paths and ensemble them.src/decima/core/result.py
Added a
genomeargument to the functionprepare_one_hotso that one-hot encoded sequences can be produced for non-hg38 genomes.src/decima/data/dataset.py
Added a
genomeargument toGeneDatasetso that gene expression prediction can be performed for non-hg38 genomes.src/decima/tools/inference.py
Applied the
genomeargument during inference.The function
predict_gene_expressionran both prediction and evaluation. I split the evaluation part into a separate functionevaluate_gene_expression_predictionsto be more modular.docs/tutorials/3-finetune.ipynb
Added a section to the tutorial showing how to apply and evaluate a custom model.