Skip to content

Conversation

@AbhirupaGhosh
Copy link
Contributor

@AbhirupaGhosh AbhirupaGhosh commented Jan 28, 2026

Description

fixing #8

What kind of change(s) are included?

  • Feature (adds or updates new capabilities)
  • Bug fix (fixes an issue).
  • Enhancement (adds functionality).
  • Breaking change (these changes would cause existing functionality to not work as expected).

Checklist

Please ensure that all boxes are checked before indicating that this pull request is ready for review.

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have searched for existing content to ensure this is not a duplicate.
  • I have performed a self-review of these additions (including spelling, grammar, and related).
  • I have added comments to my code to help provide understanding.
  • I have added a test which covers the code changes found within this PR.
  • I have deleted all non-relevant text in this pull request template.
  • Reviewer assignment: Tag a relevant team member to review and approve the changes.

Copy link
Contributor

@epbrenner epbrenner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of reformatting, so this is going to take me a little longer than I expected, but the regex parse fix looks appropriate. Will test tomorrow to confirm and then approve or fix as needed. Thanks for getting to the bottom of this latest quirk.

DBI::dbExecute(
con,
glue::glue('CREATE TABLE IF NOT EXISTS {meta_table} (
glue::glue("CREATE TABLE IF NOT EXISTS {meta_table} (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can run this in the morning, but I think DuckDB requires single quotes for these strings to be interpreted as strings, and if we're gluing this into a command then double quotes might not work properly. Will check.

Comment on lines +825 to +826
proteinID = stringr::str_extract(value, "^fig\\|[0-9]+\\.[0-9]+\\.peg(?:sc)?\\.[0-9]+"),
locus_tag = stringr::str_match(value, "peg(?:sc)?\\.[0-9]+\\|([^\\s]+)")[, 2],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense as a fix. Again, will run ASAP and confirm before approving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants