Skip to main content

cooplot

PyPI version

Analysis of co-op between members and subgroups.

Example Gallery

Cluster of Excellence – Machine Learning for Science

import cooplot
palette = {
    "Life Science": "#61859e",
    "Norms": "#e0aa41",
    "Human Science": "#5fb4d0",
    "ML": "#bc3b2f",
    "Physical Science": "#608dd2",
}

_, people = cooplot.load_csv("excelclust.csv", delimiter=";")
pubs = cooplot.scrape(
    people,
    name_col="name",
    scholar_col="scholar_id",
    semantic_col="semantic_id",
    cache_dir=".cache/excelclust",
)
mats = cooplot.build(pubs, windows=["2014-2018", "2019-2023"], name_col="name", group_col="group")
fig = cooplot.show(mats, group_col="group", style="circle", heatmap_counts=True, palette=palette)
fig.savefig("../.github/excelclust.png", dpi=300)

AG Berens

import cooplot
header, people = cooplot.load_csv("agberens.csv", delimiter=";")
pubs = cooplot.scrape(
    people,
    name_col="name",
    scholar_col="scholar_id",
    semantic_col="semantic_id",
    cache_dir=".cache/hai",
    drop_subtitle=False,
    fallback_semantic_if_empty=True,  # try Semantic if GS had 0 pubs
)


mats = cooplot.build(pubs, windows=["2016-2025"], name_col="name", group_col="group")
fig = cooplot.show(mats, group_col="group", style="both", heatmap_counts=True, figsize=(18,10))

You can also generate a list of reference highlighting the cross-group collaboration:

groups = cooplot.aggregate(pubs, name_col="name", cache_dir=".cache/agberens-group")
_ = cooplot.cross_group_publications(groups, year_from=2016, year_to=2025, out_path=".cache/agberens-coop.csv", enrich_crossref=True)
cooplot.cross_group_report(".cache/agberens-coop.csv", out_path=".cache/agberens-coop-ref.txt", verbose=True)

which will give you

...

Schmors, L., Kotkat, A. H., Bauer, Y., Huang, Z., Crombie, D., Meyerolbersleben, L. S., Sokoloski, S., Berens, P., & Busse, L. (2025). Effects of corticothalamic feedback depend on visual responsiveness and stimulus type. IScience, 28(6), 112481. https://doi.org/10.1016/j.isci.2025.112481
Collaboration: All (Philipp Berens, Ziwei Huang) and Neural (Lisa Schmors, Sacha Sokoloski).

Gervelmeyer, J., Müller, S., Huang, Z., & Berens, P. (2025). Fundus Image Toolbox: A Python package for fundus image processing. Journal of Open Source Software, 10(108), 7101. https://doi.org/10.21105/joss.07101
Collaboration: All (Philipp Berens, Ziwei Huang) and MedML (Julius Gervelmeyer, Sarah Müller).

Schmidt, G., Heidrich, H., Berens, P., & Müller, S. (2025). Learning Disease State from Noisy Ordinal Disease Progression Labels. Medical Image Computing and Computer Assisted Intervention – MICCAI 2025, 284–293. https://doi.org/10.1007/978-3-032-04971-1_27
Collaboration: All (Philipp Berens) and MedML (Sarah Müller).

Ofosu Mensah, S., Djoumessi, K., & Berens, P. (2025). Prototype-Guided and Lightweight Adapters for Inherent Interpretation and Generalisation in Federated Learning. Medical Image Computing and Computer Assisted Intervention – MICCAI 2025, 464–473. https://doi.org/10.1007/978-3-032-04981-0_44
Collaboration: All (Philipp Berens) and MedML (Kerol Djoumessi, Samuel Ofosu Mensah).

Oesterle, J., Ran, Y., Stahr, P., Kerr, J. N. D., Schubert, T., Berens, P., & Euler, T. (2025). Task-specific regional circuit adaptations in distinct mouse retinal ganglion cells. Science Advances, 11(17). https://doi.org/10.1126/sciadv.adp7075
Collaboration: All (Philipp Berens) and Neural (Jonathan Oesterle).

Installation

uv pip install cooplot

or

git clone git@github.com:berenslab/cooplot.git
cd cooplot
uv pip install -e ".[dev]"

Usage

See the example notebook for a complete usage example.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cooplot-0.1.2.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cooplot-0.1.2-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file cooplot-0.1.2.tar.gz.

File metadata

  • Download URL: cooplot-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cooplot-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4d9b911c8ce52516fc8915838160e3847c813e5ec814173b3daf445fe6f02722
MD5 eafb01ed59eb923fae13988b4d6f7e9a
BLAKE2b-256 49dac17fbeb9ca2e4038830e05af23a8577f1daa298eb2736dcf71819b15f452

See more details on using hashes here.

Provenance

The following attestation bundles were made for cooplot-0.1.2.tar.gz:

Publisher: python-publish.yml on berenslab/cooplot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cooplot-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cooplot-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cooplot-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e4443e9521349d2039f17e7ef83aaadc483e73202e5ab293dde49dac540648
MD5 cdce02a10d72e3fc7e36e2ecfee708ac
BLAKE2b-256 ee29f865a50857174c53b899860598c0757bfb81ca58a9fd681bb95609a4d5e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for cooplot-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on berenslab/cooplot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page