Increase font size for molecule text boxes in cdxmls
Problem
- 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
- Checkout
save_SVG_SMILE_files
branch locally - Build and deploy chemscraper docker image
- modify
modules/chemscraper/server/server.py
andmodules/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.
- Navigate to fastAPI swagger UI
- Try out the extractPdf endpoint with
true
value for thegenerateSVGs
query parameter (default is false) - Download the response file and open SVG/CDXMLs for the individual molecules to verify the text size.