Repository navigation
Suggested function names and updating figures - #74
Open
AbhirupaGhosh wants to merge 11 commits into
Open
AbhirupaGhosh wants to merge 11 commits into
AbhirupaGhosh wants to merge 11 commits into
Conversation
AbhirupaGhosh
requested review from
amcim,
eboyer221,
epbrenner and
jananiravi
October 1, 2026 00:41
jananiravi
reviewed
Oct 1, 2026
jananiravi
left a comment
Member
There was a problem hiding this comment.
Still going through, but wanted to leave a couple of comments?
Might help separate . from user-facing ones?
jananiravi
reviewed
Nov 10, 2026
generateSummary and generatePlots read ORBs and the country names are only kept if they have valid ISO3 codes.
I went through manually first. These are from Claude Sonnet 5.5. Propose function renaming scheme (dev/function_renaming.md) Adds a proposal for standardizing function names across amRdata. Nothing in R/ is renamed yet; this is for review first. Rules (AG et al.,): - Exported: lowerCamelCase, no leading dot. - Internal: leading dot + lowerCamelCase. - Names follow verbNoun (.fetchBVBRCData, .buildPanarooGeneTable); `is` predicates are fine (.isCompleteSet). - .manifest*, .bfc* and .cli* keep their shared prefix, in camelCase. - Acronyms stay uppercase (ID, AMR, DB, QC, API, GFF, GTO, TSV, FASTA, ORB, HMMER, CDHIT, BVBRC); DuckDB follows the product spelling. - verbNoun takes priority over `2`/`To` names (.panaroo2duckdb -> .writePanarooTables). - The .amr_ prefix is dropped. Known gaps (to fix before implementing): - ~40 functions in R/ have no row yet: resumeDyads, the .amr_theme / .amr_filter_evidence / .amr_resolve_evidence_mode helpers, the HMMER/dyad and Panaroo import helpers, and the .plot*/format helpers. - Some rows refer to functions no longer defined in R/ (e.g. buildMatrices, .parseProteinClusters, .panaroo2* helpers) and need to be dropped or reconciled. - Singular/plural and abbreviation choices are not yet consistent.
klterwelp
reviewed
Nov 24, 2026
klterwelp
reviewed
Nov 24, 2026
| | `.bvbrcFutureMap` | — | helpers.R | Internal | | ||
| | `.id_checker` | `.checkIDs` | helpers.R | Internal | | ||
| | `.preserve_export_id_text` | `.preserveExportIdText` | helpers.R | Internal | | ||
| | `.amr_bfc` | `.bfc` | helpers.R | Internal | |
There was a problem hiding this comment.
does .bfc also need a verb in the new name?
There was a problem hiding this comment.
also does bfc need to be capped like BFC?
klterwelp
reviewed
Nov 24, 2026
| | `.id_checker` | `.checkIDs` | helpers.R | Internal | | ||
| | `.preserve_export_id_text` | `.preserveExportIdText` | helpers.R | Internal | | ||
| | `.amr_bfc` | `.bfc` | helpers.R | Internal | | ||
| | `.amr_bfc_find` | `.bfcFind` | helpers.R | Internal | |
There was a problem hiding this comment.
should it be findBfc w/ the verbNoun format mentioned at the top?
There was a problem hiding this comment.
or is this grouping .bfc things together? If that's the case, do you do .bfcVerbNoun?
klterwelp
reviewed
Nov 24, 2026
| | `.amr_set_future_plan` | `.setFuturePlan` | helpers.R | Internal | | ||
| | `.bvbrcFutureMap` | — | helpers.R | Internal | | ||
| | `.id_checker` | `.checkIDs` | helpers.R | Internal | | ||
| | `.preserve_export_id_text` | `.preserveExportIdText` | helpers.R | Internal | |
There was a problem hiding this comment.
should it be preserveExportIDText since we are capitalizing ID/AMR/etc
klterwelp
reviewed
Nov 24, 2026
| | `.filterGenomes` | — | data_curation.R | Internal | | ||
| | `.is_complete_set` | `.isCompleteSet` | data_curation.R | Internal | | ||
| | `.list_complete` | `.listCompleteGenomes` | data_curation.R | Internal | | ||
| | `.cli_dump_fastas_gto_chunk` | `.cliDumpFASTAsGTOChunk` | data_curation.R | Internal | |
There was a problem hiding this comment.
should it be capitalized to CLI instead of cli?
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR is for discussion only and is not meant to be merged.
The naming proposal is added in
dev/function_renaming.mdI have defined some rules for renaming the functions.
Please comment on the rules + names in the md.
Once agreed, I will do the renames in a follow-up PR.