Skip to content

Instantly share code, notes, and snippets.

View apahl's full-sized avatar

Axel Pahl apahl

  • MPI of Molecular Physiology (Dortmund)
  • Germany, Dortmund (work) / Hannover (home)
  • 22:51 (UTC +02:00)
  • Mastodon @apahl@fosstodon.org
View GitHub Profile
@apahl
apahl / tautomers.md
Created September 18, 2023 09:54
Properties and Descriptors influenced by Tautomers

Properties and Descriptors influenced by Tautomers

(non-exhaustive list)

(Thoughts resulting from previous discussions (6374, 6543))

(Please also have a look again at Roger's talk from last year's UGM (direct link to PDF))

Identity / Similarity

  • InChIKey / SMILES (-> identity determination)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# ~/.config/starship.toml
format = """
$username\
${custom.screen}\
$hostname\
$shlvl\
$singularity\
$kubernetes\
$directory\
@apahl
apahl / ecfc_stereo.ipynb
Last active February 12, 2021 13:18
Can RDKit's ECFC4 fingerprint distinguish between stereoisomers? TL;DR: no.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@apahl
apahl / iterrows.ipynb
Last active September 14, 2020 11:28
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@apahl
apahl / nim_magic.py
Last active October 21, 2019 13:53
Nim cell magic for Jupyter and JLab Notebooks
"""
nim_magic.py
Jupyter cell magic for your favorite programming language.
This is now also available as a proper repo:
https://github.com/apahl/nim_magic
All further changes will be tracked there.
Requirements: Nim (https://nim-lang.org), nimpy (`nimble install nimpy`, thanks to @yglukhov for this great library!)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@apahl
apahl / test.nim
Created September 25, 2018 09:13
Do I have to implement a hash for my enum?
import tables
type
Element* {.pure.} = enum
invalid = (-1, "Inv"),
unknown = (0, "*"),
hydrogen = (1, "H"),
boron = (5, "B"),
carbon = (6, "C"),
nitrogen = (7, "N"),
@apahl
apahl / test.nim
Created September 24, 2018 08:25
where would the Table (not TableRef) inside a `ref object` be located? Stack or heap?
import tables
type MyObj = ref object
a: int
t: Table[int, int] # where would this table be located?
when isMainModule:
var obj = MyObj(a: 1, t: {1: 1, 2: 2}.toTable)
echo obj.t