Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"@electron/notarize": "^3.1.2",
"@sentry/bundler-plugins": "11.12.0",
"@sentry/cli": "^3.8.2",
"@types/d3-array": "^3.2.2",
"@types/lodash": "^4.17.27",
"@types/node": "^22.19.1",
"@types/prismjs": "^1.26.5",
Expand Down
13 changes: 7 additions & 6 deletions src/app/store/Run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
BackboneConstraintTree,
MultifurcatingConstraintTree,
} from './RunOptions';
import type { AnalysisChoice } from './RunOptions';
import { basename, join, quote } from '../paths';
import remove from 'lodash/remove';
import UserFixError from '../../common/errors';
Expand Down Expand Up @@ -191,7 +192,7 @@ class Run extends StoreBase {

id: number = 0;

binary = new Binary( this );
binary: Binary = new Binary( this );
numThreads = new NumThreads( this );

raxmlNgSwitch = <A, B>( raxmlNgParam: A, raxmlParam: B ): A | B => {
Expand All @@ -205,18 +206,18 @@ class Run extends StoreBase {
return this.raxmlNgSwitch( new RaxmlNgAnalysis( this ), new Analysis( this ) );
}

get analysisOption(): { title: string; value: string; params: string[]; needTree?: undefined; } | { title: string; value: string; needTree: boolean; params: string[]; } | { title: string; value: string; params: string[]; needTree?: undefined; } | { title: string; value: string; needTree: boolean; params: string[]; } {
get analysisOption(): AnalysisChoice {
return this.raxmlNgSwitch(
raxmlNgAnalysisOptions.find( ( opt ) => opt.value === this.analysis.value ),
analysisOptions.find( ( opt ) => opt.value === this.analysis.value ),
);
}

// Analysis params
substitutionMatrix = new SubstitutionMatrix( this );
substitutionI = new SubstitutionI( this );
substitutionMatrix: SubstitutionMatrix = new SubstitutionMatrix( this );
substitutionI: SubstitutionI = new SubstitutionI( this );
substitutionRate = new SubstitutionRate( this );
substitutionAscertainment = new SubstitutionAscertainment( this );
substitutionAscertainment: SubstitutionAscertainment = new SubstitutionAscertainment( this );
numRuns = new NumRuns( this );
numRepetitions = new NumRepetitions( this );
numRepetitionsNg = new NumRepetitionsNg( this );
Expand All @@ -228,7 +229,7 @@ class Run extends StoreBase {
estimatedFrequencies = new EstimatedFrequencies( this );
baseFrequencies = new BaseFrequencies( this );
multistateModel = new MultistateModel( this );
startingTree = new StartingTree( this );
startingTree: StartingTree = new StartingTree( this );

tree = new Tree( this );
backboneConstraint = new BackboneConstraintTree( this );
Expand Down
Loading
Loading