Skip to content

Commit

Permalink
Updated synthesisFixer to not use SQL. (#208)
Browse files Browse the repository at this point in the history
* Updated synthesisFixer to not use SQL.

* Removed need for magic number

* increase code coverage to 100%
  • Loading branch information
Koeng101 authored Sep 17, 2021
1 parent 644d71f commit 87dbfca
Show file tree
Hide file tree
Showing 6 changed files with 602 additions and 316 deletions.
379 changes: 379 additions & 0 deletions data/incompletePichiaTable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,379 @@
{
"start_codons": [
"TTG",
"CTG",
"ATT",
"ATC",
"ATA",
"ATG",
"GTG"
],
"stop_codons": [
"TAA",
"TAG",
"TGA"
],
"amino_acids": [
{
"letter": "Y",
"codons": [
{
"triplet": "TAT",
"weight": 0
},
{
"triplet": "TAC",
"weight": 0
}
]
},
{
"letter": "C",
"codons": [
{
"triplet": "TGT",
"weight": 17099
},
{
"triplet": "TGC",
"weight": 10242
}
]
},
{
"letter": "I",
"codons": [
{
"triplet": "ATT",
"weight": 68516
},
{
"triplet": "ATC",
"weight": 43651
},
{
"triplet": "ATA",
"weight": 35059
}
]
},
{
"letter": "V",
"codons": [
{
"triplet": "GTT",
"weight": 54750
},
{
"triplet": "GTC",
"weight": 30526
},
{
"triplet": "GTA",
"weight": 25054
},
{
"triplet": "GTG",
"weight": 30581
}
]
},
{
"letter": "G",
"codons": [
{
"triplet": "GGT",
"weight": 42959
},
{
"triplet": "GGC",
"weight": 18853
},
{
"triplet": "GGA",
"weight": 43541
},
{
"triplet": "GGG",
"weight": 14618
}
]
},
{
"letter": "L",
"codons": [
{
"triplet": "TTA",
"weight": 41481
},
{
"triplet": "TTG",
"weight": 68335
},
{
"triplet": "CTT",
"weight": 40288
},
{
"triplet": "CTC",
"weight": 20003
},
{
"triplet": "CTA",
"weight": 29034
},
{
"triplet": "CTG",
"weight": 35916
}
]
},
{
"letter": "W",
"codons": [
{
"triplet": "TGG",
"weight": 23941
}
]
},
{
"letter": "K",
"codons": [
{
"triplet": "AAA",
"weight": 83571
},
{
"triplet": "AAG",
"weight": 77197
}
]
},
{
"letter": "S",
"codons": [
{
"triplet": "TCT",
"weight": 53665
},
{
"triplet": "TCC",
"weight": 35643
},
{
"triplet": "TCA",
"weight": 43185
},
{
"triplet": "TCG",
"weight": 19746
},
{
"triplet": "AGT",
"weight": 32769
},
{
"triplet": "AGC",
"weight": 21832
}
]
},
{
"letter": "*",
"codons": [
{
"triplet": "TAA",
"weight": 2015
},
{
"triplet": "TAG",
"weight": 1667
},
{
"triplet": "TGA",
"weight": 1300
}
]
},
{
"letter": "Q",
"codons": [
{
"triplet": "CAA",
"weight": 58688
},
{
"triplet": "CAG",
"weight": 38500
}
]
},
{
"letter": "R",
"codons": [
{
"triplet": "CGT",
"weight": 14716
},
{
"triplet": "CGC",
"weight": 5515
},
{
"triplet": "CGA",
"weight": 12855
},
{
"triplet": "CGG",
"weight": 5643
},
{
"triplet": "AGA",
"weight": 47972
},
{
"triplet": "AGG",
"weight": 19381
}
]
},
{
"letter": "A",
"codons": [
{
"triplet": "GCT",
"weight": 51452
},
{
"triplet": "GCC",
"weight": 30978
},
{
"triplet": "GCA",
"weight": 35840
},
{
"triplet": "GCG",
"weight": 10148
}
]
},
{
"letter": "E",
"codons": [
{
"triplet": "GAA",
"weight": 93407
},
{
"triplet": "GAG",
"weight": 64293
}
]
},
{
"letter": "F",
"codons": [
{
"triplet": "TTT",
"weight": 60424
},
{
"triplet": "TTC",
"weight": 43704
}
]
},
{
"letter": "P",
"codons": [
{
"triplet": "CCT",
"weight": 35821
},
{
"triplet": "CCC",
"weight": 18924
},
{
"triplet": "CCA",
"weight": 39324
},
{
"triplet": "CCG",
"weight": 10585
}
]
},
{
"letter": "H",
"codons": [
{
"triplet": "CAT",
"weight": 30739
},
{
"triplet": "CAC",
"weight": 19034
}
]
},
{
"letter": "M",
"codons": [
{
"triplet": "ATG",
"weight": 42837
}
]
},
{
"letter": "T",
"codons": [
{
"triplet": "ACT",
"weight": 47886
},
{
"triplet": "ACC",
"weight": 31320
},
{
"triplet": "ACA",
"weight": 36947
},
{
"triplet": "ACG",
"weight": 16313
}
]
},
{
"letter": "N",
"codons": [
{
"triplet": "AAT",
"weight": 66744
},
{
"triplet": "AAC",
"weight": 57670
}
]
},
{
"letter": "D",
"codons": [
{
"triplet": "GAT",
"weight": 84985
},
{
"triplet": "GAC",
"weight": 52486
}
]
}
]
}
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ go 1.16

require (
github.com/google/go-cmp v0.5.6
github.com/jmoiron/sqlx v1.3.4
github.com/mitchellh/go-wordwrap v1.0.1
github.com/mroth/weightedrand v0.4.1
github.com/pmezard/go-difflib v1.0.0
github.com/sergi/go-diff v1.2.0
github.com/urfave/cli/v2 v2.3.0
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
lukechampine.com/blake3 v1.1.5
modernc.org/sqlite v1.12.0
)
Loading

0 comments on commit 87dbfca

Please sign in to comment.