Skip to content

Hardcoded variables to CLI#1

Draft
David-Bianchi wants to merge 10 commits intodevfrom
hardcode_to_args
Draft

Hardcoded variables to CLI#1
David-Bianchi wants to merge 10 commits intodevfrom
hardcode_to_args

Conversation

@David-Bianchi
Copy link

@David-Bianchi David-Bianchi commented Aug 29, 2025

Pull Request for Command Line Interface (CLI-version), that has accessible and default arguments (matching the examples) for main python file.

`usage: Primer_Design_SDM.py [-h] [-m MUTATION_LIST] [-o OUTPUT_DIRECTORY] [-f PRIMER_OUTPUT_FILE] [-fwd FORWARD_PRIMERS_FILE]
[-rev REVERSE_PRIMERS_FILE] [-c NCBI_CODON_TABLE_VALUE] [-orf ORF_FILE]

optional arguments:
-h, --help show this help message and exit
-m MUTATION_LIST, --Mutation_List MUTATION_LIST
List of Mutation Names mapped to well positions
-o OUTPUT_DIRECTORY, --Output_Directory OUTPUT_DIRECTORY
Output directory
-f PRIMER_OUTPUT_FILE, --Primer_Output_File PRIMER_OUTPUT_FILE
Output file for primers assoc. characteristic data
-fwd FORWARD_PRIMERS_FILE, --Forward_Primers_File FORWARD_PRIMERS_FILE
Output file for Forward primers
-rev REVERSE_PRIMERS_FILE, --Reverse_Primers_File REVERSE_PRIMERS_FILE
Output file for Reverse primers
-c NCBI_CODON_TABLE_VALUE, --NCBI_Codon_Table_Value NCBI_CODON_TABLE_VALUE
NCBI Codon Translation Table ID Value
-orf ORF_FILE, --ORF_File ORF_FILE
File containing Open Reading Frame Sequence`

I will make a fork to a DEV (development) branch so that we are not pushing to main, and such that the main branch is stable.

Also includes:

  • requirements.txt - updated Python versions (including updated Biopython modules for Tm/GC calculation)

  • Initial Translation Table via command line args. (for any NCBI Translation table: https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi). To do: Add codon frequency tables.

To Test: IN PROGRESS adding further tests

#Test CLI arguments:
python Primer_Design_SDM.py -h

#Test on default arguments (example files):
python Primer_Design_SDM.py

#Test using a different translation codon table:
python Primer_Design_SDM.py -c NUM

Where NUM equals the INT value for the NCBI ID from: https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi
for which you would like to update/use the genetic code from.

@David-Bianchi David-Bianchi self-assigned this Aug 29, 2025
@David-Bianchi David-Bianchi added the enhancement New feature or request label Aug 29, 2025
@David-Bianchi David-Bianchi changed the base branch from main to dev August 29, 2025 19:22
@David-Bianchi
Copy link
Author

Switched base branch to "dev" development branch.

@David-Bianchi
Copy link
Author

Testing: IN PROGRESS adding further tests

  1. Test CLI arguments:
    python Primer_Design_SDM.py -h

  2. Test on default arguments (example files):
    python Primer_Design_SDM.py

  3. Test using a different translation codon table:
    python Primer_Design_SDM.py -c NUM

Where NUM equals the INT value for the NCBI ID from: https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi
for which you would like to update/use the genetic code from.

@David-Bianchi David-Bianchi marked this pull request as draft August 29, 2025 20:08
@David-Bianchi
Copy link
Author

David-Bianchi commented Sep 10, 2025

Add codon frequency implementation with: https://pypi.org/project/python-codon-tables/

EDIT: Actually we will use the process and dataset described here: https://docs.google.com/presentation/d/1izx4LNw9vPYZ9hdI4wG6X0JyfeMrFNmBsP01yGkc4cs/edit?slide=id.g37d47b63948_0_6#slide=id.g37d47b63948_0_6

and in the associated comments on this slide, by selecting the codon with the highest sorted RSCU - this is described in the following issue: #2

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant