Computational Biology (computational-biology-ai999x)
Computational Biology covers DNA and protein sequences, alignment, molecular weights, genetics and population genetics, phylogenetics, enzyme kinetics, metabolic and population models, and ecology: 86 calculations in 10 topics, each with its formula, its steps and its units, and a plain reason instead of a number when an input is missing or out of range. One compiled engine, four ways to use it: the desktop app, the command line, the browser and Python. Everything runs on your own computer, offline.
Four ways to use it
| Desktop app (Windows, Linux) | Windows · Linux |
Command line computational-biology (Windows, Linux) | Windows · Linux |
| Browser (any device) | Try it on the model page |
| Python 3.10+ | pip install computational-biology-ai999x: on Windows and Linux (x86-64) pip installs the same compiled engine; on other systems (macOS, ARM) it installs a pure-Python build that gives the same answers |
See it
From the Computational Biology desktop app: every scene and chart is drawn from the computed answer.
Charts:
Reverse complement of a DNA sequence | Hardy-Weinberg chi-square test | Global alignment score (Needleman-Wunsch, linear gaps) | Phenotype ratio of a cross (complete dominance) |
Ask in words: 15 examples
Each question below was asked on this release; the comment under it is the line it printed.
import computational_biology_ai999x as computational_biology
a = computational_biology.ask(
"Global alignment score: seq1 = GATTACA, seq2 = GCATGCU, match = "
"1, mismatch = -1, gap = -1"
)
print(a.outcome, a.values)
# SOLVED {'score': 0.0}
a = computational_biology.ask(
"ACE richness estimator: counts = [1, 1, 2, 3, 5, 8, 20, 50], "
"rare_threshold = 10"
)
print(a.outcome, a.values)
# SOLVED {'ace': 9.719298245614034}
a = computational_biology.ask(
"Pedigree inbreeding coefficient: pedigree = [P-S, Q-S, P-D, Q-D, "
"S-X, D-X], individual = X"
)
print(a.outcome, a.values)
# SOLVED {'F': 0.25}
a = computational_biology.ask(
"Chemostat steady state: mu_max = 1, Ks = 1, Y = 0.5, D = 0.5, S0 "
"= 10"
)
print(a.outcome, a.values)
# SOLVED {'S': 1.0, 'X': 4.5}
a = computational_biology.ask(
"Jukes-Cantor distance: seq1 = AAAAAAAAAA, seq2 = AAAAAAAACC"
)
print(a.outcome, a.values)
# SOLVED {'p': 0.2, 'd': 0.232616196228}
a = computational_biology.ask(
"Haploid selection: p0 = 0.5, s = 1, t = 1"
)
print(a.outcome, a.values)
# SOLVED {'p_t': 0.666666666667}
a = computational_biology.ask(
"Flux balance analysis: S = [[1, -1, 0, 0], [0, 1, -1, -1]], lb = "
"[0, 0, 0, 0], ub = [10, 8, 100, 3], c = [0, 0, 1, 0]"
)
print(a.outcome, a.values)
# SOLVED {'objective': 8.0}
a = computational_biology.ask(
"Global alignment score with affine gaps: seq1 = ACGTTTACG, seq2 = "
"ACGACG, match = 2, mismatch = -1, open = -5, extend = -1"
)
print(a.outcome, a.values)
# SOLVED {'score': 5.0}
a = computational_biology.ask(
"Berger-Parker and McIntosh indices: counts = [50, 30, 20]"
)
print(a.outcome, a.values)
# SOLVED {'berger_parker': 0.5, 'mcintosh': 0.426176221892}
a = computational_biology.ask("Map distance: r = 0.2, map = haldane")
print(a.outcome, a.values)
# SOLVED {'d_cM': 25.5412811883}
a = computational_biology.ask(
"Kimura distance: seq1 = AAAAAAAAAA, seq2 = AAAAAAAGGC"
)
print(a.outcome, a.values)
# SOLVED {'d': 0.402359478109}
a = computational_biology.ask(
"Recessive lethal allele frequency: q0 = 0.5, t = 1"
)
print(a.outcome, a.values)
# SOLVED {'q_t': 0.333333333333}
a = computational_biology.ask("Aromaticity: seq = MFWYAK")
print(a.outcome, a.values)
# SOLVED {'aromaticity': 0.5, 'aromatic_count': 3}
a = computational_biology.ask(
"Global protein alignment score: seq1 = HEAGAWGHEE, seq2 = "
"PAWHEAE, open = -10, extend = -1"
)
print(a.outcome, a.values)
# SOLVED {'score': 3.0}
a = computational_biology.ask(
"Effective population size with unequal sex ratio: N_m = 10, N_f = "
"90"
)
print(a.outcome, a.values)
# SOLVED {'Ne': 36.0, 'Ne_over_N': 0.36}
Command line: 15 examples
Each command below was run with computational-biology of this release; the lines under it are the answer it printed (the full answer goes on with the method, every input in SI units and the conditions it assumes).
$ computational-biology solve bio_global_alignment_score seq1=GATTACA seq2=GCATGCU match=1 mismatch=-1 gap=-1
score = 0
$ computational-biology solve bio_ace "counts=[1, 1, 2, 3, 5, 8, 20, 50]" rare_threshold=10
ace = 9.719298246
$ computational-biology solve bio_competitive_inhibition_fit "S=[1, 2, 4, 8, 1, 2, 4, 8]" "I=[0, 0, 0, 0, 2, 2, 2, 2]" "v=[5, 6.66667, 8, 8.88889, 2.5, 4, 5.71429, 7.27273]"
Vmax = 10.00000204
Km = 1.000000099
Ki = 1.000000711
$ computational-biology solve bio_pedigree_inbreeding "pedigree=P-S, Q-S, P-D, Q-D, S-X, D-X" individual=X
F = 0.25
$ computational-biology solve bio_chemostat_steady_state mu_max=1 Ks=1 Y=0.5 D=0.5 S0=10
S = 1
X = 4.5
$ computational-biology solve bio_jukes_cantor_distance seq1=AAAAAAAAAA seq2=AAAAAAAACC
p = 0.2
d = 0.2326161962
$ computational-biology solve bio_leslie_growth_rate "F=[0, 2]" "S=[0.5]"
lambda1 = 1
r = 0
R0 = 1
stable = [0.666666666667,0.333333333333]
$ computational-biology solve bio_haploid_selection p0=0.5 s=1 t=1
p_t = 0.6666666667
$ computational-biology solve bio_amino_acid_composition seq=MAAAK
percent = {"A":60.0,"C":0.0,"D":0.0,"E":0.0,"F":0.0,"G":0.0,"H":0.0,"I":0.0,"K":20.0,"L":0.0,"M":20.0,"N":0.0,"P":0.0,"Q":0.0,"R":0.0,"S":0.0,"T":0.0,"V":0.0,"W":0.0,"Y":0.0}
most_common = A
length = 5
$ computational-biology solve bio_flux_balance_analysis "S=[[1, -1, 0, 0], [0, 1, -1, -1]]" "lb=[0, 0, 0, 0]" "ub=[10, 8, 100, 3]" "c=[0, 0, 1, 0]"
objective = 8
$ computational-biology solve bio_global_alignment_affine seq1=ACGTTTACG seq2=ACGACG match=2 mismatch=-1 open=-5 extend=-1
score = 5
$ computational-biology solve bio_dominance_indices "counts=[50, 30, 20]"
berger_parker = 0.5
mcintosh = 0.4261762219
$ computational-biology solve bio_eadie_hofstee "S=[1, 2, 4, 8]" "v=[5, 6.66667, 8, 8.88889]"
Vmax = 10.0000015
Km = 0.9999999798
r2 = 1
$ computational-biology solve bio_map_distance r=0.2 map=haldane
d_cM = 25.54128119
$ computational-biology solve bio_kimura_distance seq1=AAAAAAAAAA seq2=AAAAAAAGGC
d = 0.4023594781
Guides
- Desktop app guide: the window, every calculation, scenes and charts: PDF · HTML · Markdown
- Python guide: every calculation with a Python example: PDF · HTML · Markdown
- Command-line guide: every calculation with the command and what it printed: PDF · HTML · Markdown
Every calculation, with its formula, a worked example and its figures: Computational Biology on ai999x.com. Install guides for the app and the command line: https://www.ai999x.com/desktop-cli/.
Version 1.6.7 · License: Apache-2.0 · Author: Ibnul Jaif Farabi · Organization: AI999X · Contact: support@ai999x.com · Support the project
The Future Is Self-Improving.













