nleroy917 / optipyzer

Multi-Species Codon Optimization Engine
https://optipyzer.com
Apache License 2.0
25 stars 6 forks source link

Set Seed + Iterations #42

Closed nleroy917 closed 1 year ago

nleroy917 commented 1 year ago

Address issue #41

This includes updates to allow users to set a seed and the number of iterations for the optimizer. This was done in three places:

  1. The server/API
  2. The user interface
  3. The python package

The server/API: When making requests, simply specify in the body of the request either an iterations parameter or a seed parameter. If none are supplied it defaults to 1000 iterations and a default seed.

The user interface: Two fields were added at the bottom of the form to allow users to specify a number of iterations or a seed

image

The python package: The API of the optimize function in the optipyzer package was updated to allow specification of a number of iterations or a seed:

    def optimize(
        self, 
        seq: str, 
        weights: Dict[str, int], 
        seq_type: str = "dna", 
        iterations: Optional[int] = None,
        seed: Optional[Union[int, str]] = None
    ) -> OptimizationResult:
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
optipyzer ✅ Ready (Inspect) Visit Preview Oct 22, 2022 at 1:45AM (UTC)