Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T w testing #17

Merged
merged 47 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
e54fdc6
Adding additions to temp3 - more work needing to be done. Framework s…
wdrav Dec 9, 2022
63af587
Adding more features to the post-processing tool - Still need to work…
wdrav Dec 20, 2022
eb9a23e
Removed the template property from components which had their cd /Us…
wdrav Dec 22, 2022
23f2e45
Adding full support of components, need to finish the uris checker an…
wdrav Dec 22, 2022
de318d6
Added collection creation and uri referencing updating
wdrav Jan 13, 2023
2fcc9b4
Updated the check_name function to allow hyphens in the name.
wdrav Jun 8, 2023
8ab7091
Update to post-processing of combinatorial derivations
wdrav Jun 19, 2023
d2b3895
Added correct namespace for sequences and made the string literal of …
wdrav Jun 20, 2023
100a754
Addition of output from temp3.py including updates
wdrav Aug 31, 2023
3625e54
Changes to stabilize ordering of subcomponents
wdrav Sep 5, 2023
41aa9da
Edit to replace periods with underscores
wdrav Sep 5, 2023
1a9244f
Updates to give default descriptions to parts.
wdrav Oct 10, 2023
ffb4eb0
Adding two backbones template, output (two_backbones.nt) and post-pro…
wdrav Dec 7, 2023
cb76a96
Added implementation for multiple backbones.
wdrav Feb 15, 2024
4a8ade0
Recent updates to temp3 and two_backbones
wdrav May 7, 2024
b5c4c58
Worked on changing namespace for GenBank and FASTA
wdrav May 7, 2024
627d543
Example output for simple_library
wdrav May 7, 2024
dcd3b26
encoding functions using URIs and sequence search
tayasherstyukova Dec 17, 2024
de7f763
changes as of 1/22/2025
tayasherstyukova Jan 22, 2025
470295c
Adding additions to temp3 - more work needing to be done. Framework s…
wdrav Dec 9, 2022
537d75d
Adding more features to the post-processing tool - Still need to work…
wdrav Dec 20, 2022
bdb1df6
Removed the template property from components which had their cd /Us…
wdrav Dec 22, 2022
0131a33
Adding full support of components, need to finish the uris checker an…
wdrav Dec 22, 2022
08ed1e5
Added collection creation and uri referencing updating
wdrav Jan 13, 2023
5c50a7d
Updated the check_name function to allow hyphens in the name.
wdrav Jun 8, 2023
8f73847
Update to post-processing of combinatorial derivations
wdrav Jun 19, 2023
4a7d9ea
Added correct namespace for sequences and made the string literal of …
wdrav Jun 20, 2023
17c8c2a
Addition of output from temp3.py including updates
wdrav Aug 31, 2023
f311c97
Changes to stabilize ordering of subcomponents
wdrav Sep 5, 2023
aa4dbee
Edit to replace periods with underscores
wdrav Sep 5, 2023
64be600
Updates to give default descriptions to parts.
wdrav Oct 10, 2023
12d989f
Adding two backbones template, output (two_backbones.nt) and post-pro…
wdrav Dec 7, 2023
df4e106
Added implementation for multiple backbones.
wdrav Feb 15, 2024
513ee7a
Recent updates to temp3 and two_backbones
wdrav May 7, 2024
2007184
Worked on changing namespace for GenBank and FASTA
wdrav May 7, 2024
d4d5bdb
Example output for simple_library
wdrav May 7, 2024
abf6339
Merge branch 'will_testing' of https://github.com/SynBioDex/Excel-uti…
tayasherstyukova Jan 22, 2025
95d3758
fixed helpers package error
tayasherstyukova Jan 23, 2025
756b276
Revert "fixed helpers package error"
tayasherstyukova Jan 23, 2025
c3debd3
fixed helpers package error
tayasherstyukova Jan 23, 2025
d5d7766
Merge pull request #15 from SynBioDex/master
cjmyers Jan 23, 2025
153b8b3
partID checker, URIs, sequence duplicates
tayasherstyukova Jan 23, 2025
3551504
removed DS Store files
tayasherstyukova Jan 23, 2025
b6034a2
Merge branch 't-w-testing' into will2_testing
CarolusVitalis Jan 23, 2025
166c8f4
Merge pull request #16 from SynBioDex/will2_testing
CarolusVitalis Jan 23, 2025
554ade9
Merge branch 't-w-testing' of https://github.com/SynBioDex/Excel-util…
tayasherstyukova Jan 23, 2025
582570a
updated displayId function
tayasherstyukova Jan 30, 2025
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
Binary file added .DS_Store
Binary file not shown.
Binary file added .github/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,4 @@ dmypy.json

# Pyre type checker
.pyre/
.DS_Store
544 changes: 297 additions & 247 deletions SBOL3_simple_library4.nt

Large diffs are not rendered by default.

Binary file modified SBOL3_simple_library4.xlsx
Binary file not shown.
685 changes: 685 additions & 0 deletions SampleTemp3Output.nt

Large diffs are not rendered by default.

Binary file added excelutils/.DS_Store
Binary file not shown.
Binary file added excelutils/excel_sbol_utils/.DS_Store
Binary file not shown.
10 changes: 8 additions & 2 deletions excelutils/excel_sbol_utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import string
import rdflib
from openpyxl.worksheet import cell_range, worksheet
from openpyxl import load_workbook
from pathlib import Path

def check_name(nm_to_chck):
Expand All @@ -22,6 +23,11 @@ def check_name(nm_to_chck):
for ltr in nm_to_chck:
if ord(ltr) == 32:
nm_to_chck = nm_to_chck.replace(ltr, "_")
elif ord(ltr) == 45:
# Allow hyphens to be reinterpreted as underscores
nm_to_chck = nm_to_chck.replace(ltr, "_")
elif ord(ltr) == 46:
nm_to_chck = nm_to_chck.replace(ltr, "_")
elif ord(ltr) > 122 or ord(ltr) < 48:
# 122 is the highest decimal code number
# for common latin ltrs or arabic numbers
Expand Down Expand Up @@ -124,7 +130,7 @@ def read_variant_table(excel_file: Path) -> tuple[str, str, list[list]]:
LAST_VARIANT_ROW = 35

print(f'Loading workbook "{excel_file}"')
work_book = openpyxl.load_workbook(excel_file, data_only=True)
work_book = load_workbook(excel_file, data_only=True)
sheet = work_book[VARIANTS_SHEET]

# First, get the library name
Expand All @@ -133,7 +139,7 @@ def read_variant_table(excel_file: Path) -> tuple[str, str, list[list]]:

# Then get the base sequence
print('Extracting base sequence')
first_aa_column = get_column_number(FIRST_AMINO_ACID_COLUMN)
first_aa_column = col_to_num(FIRST_AMINO_ACID_COLUMN)
last_aa_column = row_ends(sheet, ORIGINAL_AMINO_ACID_ROW, first_aa_column)
# Get row from sheet and concatenate it into a string
row_iterator = sheet.iter_rows(min_row=ORIGINAL_AMINO_ACID_ROW, max_row=ORIGINAL_AMINO_ACID_ROW,
Expand Down
Loading
Loading