Skip to content

Increase font size for molecule text boxes in cdxmls

Yashdeep Thorat requested to merge save_SVG_SMILE_files into containerize

Problem

  1. Text for atoms in the molecular structures generated is too small to read compared to the molecule size.

Approach

  • Modify font size setting for text box in cdxml generation in chemscraper.

How to test

  1. Checkout save_SVG_SMILE_files branch locally
  2. Build and deploy chemscraper docker image
  • modify modules/chemscraper/server/server.py and modules/chemscraper/server/utils.py to point to yolo and symbolscraper instances.
  • run make docker to generate docker image with name and tag found in Makefile
  • run docker run -p 8000:8000 <image_name>:<image_tag>
  • Open FastAPI swagger UI on http://localhost:8000/docs and try the /extractPdf endpoint.
  1. Navigate to fastAPI swagger UI
  2. Try out the extractPdf endpoint with true value for the generateSVGs query parameter (default is false)
  3. Download the response file and open SVG/CDXMLs for the individual molecules to verify the text size.

Merge request reports

Loading