{"id":21890567,"url":"https://github.com/x-jiang-bioe/sb2l","last_synced_at":"2026-05-16T22:37:34.924Z","repository":{"id":57464056,"uuid":"214540441","full_name":"X-Jiang-bioe/sb2l","owner":"X-Jiang-bioe","description":"Translates the biological models written in SBML into LaTeX code to be compiled and read by human eye","archived":false,"fork":false,"pushed_at":"2020-01-11T23:30:12.000Z","size":127,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T23:42:10.576Z","etag":null,"topics":["converter","latex","sbml"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/X-Jiang-bioe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-11T22:48:07.000Z","updated_at":"2024-11-19T07:25:17.000Z","dependencies_parsed_at":"2022-09-05T06:01:48.843Z","dependency_job_id":null,"html_url":"https://github.com/X-Jiang-bioe/sb2l","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-Jiang-bioe%2Fsb2l","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-Jiang-bioe%2Fsb2l/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-Jiang-bioe%2Fsb2l/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-Jiang-bioe%2Fsb2l/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/X-Jiang-bioe","download_url":"https://codeload.github.com/X-Jiang-bioe/sb2l/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898446,"owners_count":20528341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converter","latex","sbml"],"created_at":"2024-11-28T12:15:43.382Z","updated_at":"2026-05-16T22:37:34.883Z","avatar_url":"https://github.com/X-Jiang-bioe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sb2l\n\n### Description ###\n\nTranslates biological models written in SBML into LaTeX code to be compiled and read by human eye\n\n### Dependencies ###\n\nThe current version runs 1.3.1 version of `PyLaTeX`\n\nEither `Tellurium` or `python-libsbml` is also required \n\nFor PDF creation functionality, either `latexmk` or `pdflatex` needs to be installed on the computer\n\n### Installation ###\n\n`pip install sb2l`\n\n### How to Use ###\nThe following structure gives a LaTeX string that can be copied to a online compiler like `Overleaf`:\n```\nimport sb2l\nlatexStr = sb2l.s2string(sbmlStringOrFile)\n```\nIf using with Tellurium or Antimony: \n```\nimport sb2l\nlatexStr = sb2l.s2string(model_name.getSBML())\n```\nFor making PDF files (The filepath must NOT have a .pdf or .tex suffix)\n```\nimport sb2l\nfilepath = \"/Users/Username/Desktop/theDesiredNameOfFile\" #[NOTICE: no \".anything\"]\nsb2l.s2pdf(sbmlStringOrFile, file_path = filepath);\n```\nThe same structure can be used to generate a .tex file if used with `sb2l.s2latex`\n\nTo generate the PDF file and open with the default PDF reader\n\n```\nimport sb2l\nfilepath = \"/Users/Username/Desktop/theDesiredNameOfFile\" #[NOTICE: no \".anything\"]\nsb2l.s2open(sbmlStringOrFile, file_path = filepath);\n```\n### License ###\n\nMIT License\n\nCopyright (c) 2019\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-jiang-bioe%2Fsb2l","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-jiang-bioe%2Fsb2l","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-jiang-bioe%2Fsb2l/lists"}