Skip to content

Commit f1c7851

Browse files
authored
Merge branch 'main' into main
2 parents 99af687 + 483a767 commit f1c7851

26 files changed

Lines changed: 219376 additions & 1623 deletions

.github/workflows/microbiorust-py_benchmarks.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,24 @@ jobs:
4444
# 2. PUT HISTORY
4545
- name: Restore results
4646
run: |
47-
if [ -d "old_pages/results/github-runner/" ]; then
48-
echo "Restoring previous benchmark results..."
49-
mkdir -p microbiorust-py/.asv/results/github-runner/
50-
cp -r old_pages/results/github-runner/* microbiorust-py/.asv/results/github-runner/
47+
#there were difficulties with a subfolder being created sometimes
48+
ASV_ROOT_RESULTS_DIR="microbiorust-py/.asv/results/"
49+
ASV_MACHINE_RESULTS_DIR="microbiorust-py/.asv/results/github-runner/"
50+
51+
if [ -d "old_pages/results" ]; then
52+
echo "Restoring previous benchmark results from old_pages/results..."
53+
mkdir -p "${ASV_ROOT_RESULTS_DIR}"
54+
rsync -av old_pages/results/ "${ASV_ROOT_RESULTS_DIR}"
5155
else
5256
echo "No previous results found. Starting fresh."
5357
fi
58+
if [ -d "old_pages/results/github-runner/" ]; then
59+
echo "restoring results from old_pages/results/github-runner"
60+
mkdir -p "${ASV_MACHINE_RESULTS_DIR}"
61+
rsync -av old_pages/results/github-runner/ "${ASV_MACHINE_RESULTS_DIR}"
62+
else
63+
echo "No machine specific results found"
64+
fi
5465
5566
# 3. ADD NEW DATA POINT
5667
- name: Run Benchmarks
@@ -66,9 +77,9 @@ jobs:
6677
- name: Save results for next time
6778
run: |
6879
# Make sure the destination exists inside the HTML folder
69-
mkdir -p microbiorust-py/.asv/html/results
80+
mkdir -p microbiorust-py/.asv/html/results/
7081
# Copy the accumulated JSON files (Old + New) into the publish dir
71-
cp -r microbiorust-py/.asv/results/* microbiorust-py/.asv/html/results/
82+
rsync -av microbiorust-py/.asv/results/ microbiorust-py/.asv/html/results/
7283
7384
# 6. UPLOAD EVERYTHING
7485
- name: Deploy to GitHub Pages
@@ -77,4 +88,3 @@ jobs:
7788
github_token: ${{ secrets.GITHUB_TOKEN }}
7889
publish_dir: microbiorust-py/.asv/html
7990
publish_branch: gh-pages
80-

ROADMAP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Integration of common types and parsers such as:
2424
Protein parameters such as:
2525
- [x] Hydrophobicity
2626
- [x] Molecular weight
27-
- [ ] Counted amino acids & as percentage
27+
- [x] Counted amino acids & as percentage
2828
- [x] Aromaticity
2929
- [ ] Parsing phylogenetic trees
3030
- [ ] Parsing multiple sequence alignments
3131
- [ ] Methylation data parsing
32-
- [ ] Consider pyo3 integration
32+
- [x] pyo3 integration
3333

3434
**Testing - bioinformatics**
3535
- [ ] Testing & updating parsers with various edge case files such as gbk with the CONTIG(JOIN) structure

microBioRust/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ path = "src/lib.rs"
2727
paste = "1.0"
2828
itertools = "0.14.0"
2929
protein-translate = "0.2.0"
30-
bio = "2.3.0"
30+
bio = "3.0.0"
3131
anyhow = "1.0"
3232
thiserror = "2.0.12"
3333
regex = "1.5"
3434
chrono = "0.4.38"
3535
clap = { version = "4.5.19", features = ["derive"] }
36+
lazy_static = "1.5"
3637

microBioRust/new_output_embl.gbk

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
LOCUS source_1 928 bp DNA linear CON 24-NOV-2025
2+
DEFINITION Escherichia coli K-12 substr. MG1655.
3+
ACCESSION source_1
4+
KEYWORDS .
5+
SOURCE Escherichia coli K-12 substr. MG1655
6+
ORGANISM Escherichia coli K-12 substr. MG1655
7+
FEATURES Location/Qualifiers
8+
source 1..910
9+
/organism="K-12 substr. MG1655"
10+
/mol_type="DNA"
11+
/strain="K-12 substr. MG1655"
12+
/db_xref="PRJNA57779"
13+
gene complement(1..354)
14+
/locus_tag="b3304"
15+
CDS complement(1..354)
16+
/locus_tag="b3304"
17+
/codon_start="1"
18+
/gene="rplR"
19+
/translation="MDKKSARIRRATRARRKLQELGATRLVVHRTPRHIYAQVIAPNGS
20+
LVAASTVEKAIAEQLKYTGNKDAAAAVGKAVAERALEKGIKDVSFDRSGFQYHGRVQAL
21+
DAAREAGLQ"
22+
/product="50S ribosomal subunit protein L18"
23+
gene complement(364..897)
24+
/locus_tag="b3305"
25+
CDS complement(364..897)
26+
/locus_tag="b3305"
27+
/codon_start="1"
28+
/gene="rplF"
29+
/translation="MSRVAKAPVVVPAGVDVKINGQVITIKGKNGELTRTLNDAVEVKH
30+
NTLTFGPRDGYADGWAQAGTARALLNSMVIGVTEGFTKKLQLVGVGYRAAVKGNVINLS
31+
GFSHPVDHQLPAGITAECPTQTEIVLKGADKQVIGQVAADLRAYRRPEPYKGKGVRYAD
32+
VVRTKEAKK"
33+
/product="50S ribosomal subunit protein L6"
34+
ORIGIN
35+
1 acctctacct tagaactgaa ggccagcttc acgggcagca tctgccagtg cctggacacg
36+
61 accatgatat tggaacccgg aacggtcaaa ggatacatct ttgatgcctt tttccagagc
37+
121 gcgttcagcg acagctttac ccacagctgc agccgcgtct ttgttaccgg tgtacttcag
38+
181 ttgttcagcg atagcttttt ctacagtaga agcagctacc agaacttcag aaccgttcgg
39+
241 tgcaattacc tgtgcgtaaa tgtgacgcgg ggtacgatgt accaccaggc gagttgcgcc
40+
301 cagctcctgg agcttgcggc gtgcgcgggt cgcacgacgg atacgagcag atttcttatc
41+
361 catagtgtta ccttacttct tcttagcctc tttggtacgc acgacttcgt cggcgtaacg
42+
421 aacacccttg cctttataag gctcaggacg acggtaggcg cgcagatccg ctgcaacctg
43+
481 gccgatcacc tgcttatcag cgcctttcag cacgatttca gtctgagtcg gacattcagc
44+
541 agtgataccc gcaggcagct gatggtcaac aggatgagag aaacccagag acaggttaat
45+
601 cacattgcct ttaaccgctg cacggtaacc tacaccaacc agctgcagct tcttagtgaa
46+
661 gccttcggta acaccgataa ccattgagtt cagcagggca cgcgcggtac cagcctgtgc
47+
721 ccaaccgtct gcgtaaccat cacgcggacc gaaggtcagg gtattatctg catgtttaac
48+
781 ttcaacagca tcgttgagag tacgagtcag ctcgccgttt ttacctttga tcgtaataac
49+
841 ctgaccgttg atttttacgt caacgccggc aggaacaacg accggtgctt tagcaacacg
50+
901 agacattttt tcc
51+
52+
//

microBioRust/new_output_embl.gff

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
##gff-version 3
2+
##sequence-region source_1 1 910
3+
source_1 . CDS 1 354 0 - 0 id=b3304;name=source_1;gene=rplR;locus_tag=b3304;product=50S ribosomal subunit protein L18
4+
source_1 . CDS 364 897 0 - 0 id=b3305;name=source_1;gene=rplF;locus_tag=b3305;product=50S ribosomal subunit protein L6
5+
##FASTA
6+
acctctaccttagaactgaaggccagcttcacgggcagcatctgccagtgcctggacacg
7+
accatgatattggaacccggaacggtcaaaggatacatctttgatgcctttttccagagc
8+
gcgttcagcgacagctttacccacagctgcagccgcgtctttgttaccggtgtacttcag
9+
ttgttcagcgatagctttttctacagtagaagcagctaccagaacttcagaaccgttcgg
10+
tgcaattacctgtgcgtaaatgtgacgcggggtacgatgtaccaccaggcgagttgcgcc
11+
cagctcctggagcttgcggcgtgcgcgggtcgcacgacggatacgagcagatttcttatc
12+
catagtgttaccttacttcttcttagcctctttggtacgcacgacttcgtcggcgtaacg
13+
aacacccttgcctttataaggctcaggacgacggtaggcgcgcagatccgctgcaacctg
14+
gccgatcacctgcttatcagcgcctttcagcacgatttcagtctgagtcggacattcagc
15+
agtgatacccgcaggcagctgatggtcaacaggatgagagaaacccagagacaggttaat
16+
cacattgcctttaaccgctgcacggtaacctacaccaaccagctgcagcttcttagtgaa
17+
gccttcggtaacaccgataaccattgagttcagcagggcacgcgcggtaccagcctgtgc
18+
ccaaccgtctgcgtaaccatcacgcggaccgaaggtcagggtattatctgcatgtttaac
19+
ttcaacagcatcgttgagagtacgagtcagctcgccgtttttacctttgatcgtaataac
20+
ctgaccgttgatttttacgtcaacgccggcaggaacaacgaccggtgctttagcaacacg
21+
agacattttttcc

0 commit comments

Comments
 (0)