NaturwissenschaftenEnglischJekyll

Biopragmatics

Unraveling complex biology with biological knowledge graphs. Content licensed under CC BY 4.0.
StartseiteAtom-FeedMastodon
language
PythonMypyStatic TypingNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

Following the theme of my previous two posts, I’ve run into another typing conundrum where I want to unpack a pre-existing Callable into a class with Generic[P, T] where P is a parameter specification type (i.e. ParamsSpec) After figuring out the right way to declare a generic featuring a ParamSpec, I updated the class-resolver package to use the shiny new (and more accurate) annotations.

PythonMypyStatic TypingNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

I’ve been working on applying strict static typing to my Python package class-resolver and ran into an interesting way of using generics in combination with parameter specification variables (i.e., ParamSpecs). Normally, if you want to type annotate a function, you use the Callable, which works like the following: from collections.abc import Callable #: the [int] represents a function that takes in a single integer, #: and returns a single

PythonMypyStatic TypingNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

This post describes an issue I’ve had with writing correct types when using PEP-696 defaults in typing.TypeVar. I posted the exploration in a companion repository on GitHub. The motivation behind this comes from my work in biomedical data integration and the semantic web.

ChEBIChEMBLUBERONExperimental Factor OntologyEFONaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

ChEMBL periodically curates clinical trial information into its DRUG_INDICATION table. However, there’s some weird inconsistencies in the way it references disease concepts in external vocabularies. This blog post is an exploration of that table.

BooksNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

Here’s the books I read in 2024. If I were Dudley Dursley, I’d be very upset that I read one fewer new book than in 2023. But then, I’d remember that I re-read a lot of Cosmere in 2024 to prepare for Wind and Truth , which was great.

WikidataBibliometricsOpen DataNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

I was working on making data about scholarly conferences more FAIR and a big question crossed my mind: what are all the conference venues? This post is about some queries I wrote for Wikidata, data issues I found, and a few drive-by curations that I did while looking for an answer, and my ideas for the future.

FundingOpen SourceNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

This stub post contains my notes about funding for open source software. It doesn’t follow a story like a lot of my posts, and is more like an ever-evolving notes sheet.

ReadingAutomationNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

Brandon Sanderson has been releasing a few chapters a week of his upcoming novel, Wind and Truth, on his publisher’s website leading up to its December 6 th release. This includes the audiobook chapters, but they’re posted to Soundcloud and there’s no good way to listen at 1.6x speed. This post is a note sheet on how to download audio from Soundcloud and prepare it for my audiobook reader.

PythonPackagingCookiecutterDocumentationNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

PEP 735 introduced dependency groups in packaging metadata, which are complementary to optional dependencies in that they might not correspond to features in the package, but rather be something like development or release dependencies. I am slowly working towards updating my cookiecutter template cookiecutter-snekpack to use PEP 735. So far, uv and tox have released support - all that’s left is ReadTheDocs.

PythonGraphVizEnvironmentsNaturwissenschaftenEnglisch
Veröffentlicht
Autor Charles Tapley Hoyt

Graphviz is software for graph visualization written in C. PyGraphviz provides a nice Python wrapper for it. The issue is that getting Python to know about the C headers changes every few months. I’ll try and keep this blog post updated every time there are some changes.