Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Conversation

@doublergreer
Copy link
Contributor

abstract_design_2_plasmids:

  • takes in uri of abstract design, uri of plasmid collection, uri of backbone, and pysbol2 partshop object that is already logged into the synbiohub instance.
  • runs abstract design to plasmid, and returns list of plasmid documents, the backbone document, and the displayId of the abstract design (all to be used in next function)

sbol2build_moclo:

  • takes in tuple from previous function (list of plasmid documents, backbone doc, and abstract design id)
  • runs sbol2build with BsaI
  • returns assembly plan as document

@Gonza10V
Copy link
Collaborator

@codex review this PR

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


return part_documents, backbone_doc, abstract_design_id

def sbol2build_moclo(part_documents: List[sbol2.Document], backbone_doc: sbol2.document, abstract_design_id: str) -> sbol2.Document:

Choose a reason for hiding this comment

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

P0 Badge Fix invalid type annotation that breaks module import

The new helper declares backbone_doc: sbol2.document, but sbol2 exposes Document with a capital D and has no attribute document. Because annotations are evaluated at definition time, importing this module will immediately raise AttributeError: module 'sbol2' has no attribute 'document', so none of the utilities can be used. Use sbol2.Document (or a string annotation) to avoid the runtime failure.

Useful? React with 👍 / 👎.

Comment on lines 150 to 152
print(abstract_design_uri, plasmid_collection_uri, plasmid_vector_uri, auth_token)

return 0

Choose a reason for hiding this comment

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

P1 Badge Return a valid Flask response from new assembly endpoint

The new /abstract_design_2_plasmids route finishes with return 0, which Flask treats as an invalid response type and raises TypeError: The view function did not return a valid response whenever the endpoint is hit. This makes the endpoint unusable even when all inputs are present. Return a JSON response or a proper tuple/status code instead of a bare integer.

Useful? React with 👍 / 👎.

@doublergreer
Copy link
Contributor Author

codex comments addressed in most recent commit. upload_assembly endpoint works up until submission of assembly plan to sbh collection, tested with: postman api call

@Gonza10V

@Gonza10V Gonza10V merged commit 31af5ae into main Nov 19, 2025
1 check passed
@Gonza10V Gonza10V deleted the assembly-functions branch November 19, 2025 02:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants