Carissa Bleker
Carissa Bleker
Any recommended forks?
Here is my solution to allowing an invitation to be used only once: In my models file (last line is relevant): ```python class UserInvitation(db.Model): __tablename__ = 'user_invite' id = db.Column(db.Integer,...
Using a [CustomUserManager](https://flask-user.readthedocs.io/en/latest/api_user_manager.html#usermanagerclass), you can over ride the default invitation view which is here: https://github.com/lingthio/Flask-User/blob/5c652e6479036c3d33aa1626524e4e65bd3b961e/flask_user/user_manager__views.py#L317-L320 and add the roles_required decorator ```python class CustomUserManager(UserManager): @login_required @roles_required('specialrole') def invite_user_view(self): """ Allows users...
Hi, In case the following is helpful for anyone. Here's a function I use to add png's per node.: https://github.com/NIB-SI/skm-tools/blob/d29f104e03f88fb38737e924e3a430c68e848963/skm_tools/cytoscape_utils.py#L366C1-L396C1 ```python import pandas as pd import py4cytoscape as p4c def...
I haven't tried it, but that should be possible, since Cytoscape does support SVG images as annotations.
Hi Barry, Thanks for the fast fix and detailed discussion! In my case, I did not change the nodeSizeLocked setting, and in the GUI the "Lock node width and height"...
In case you want to keep with colorbrewer, the developers there have responded and made the repository public here: https://github.com/hoffmangroup/colorbrewer It seems they plan to update it.
Seems all good now! ```bash conda create -n p4c-1.12.0 python=3.13 conda activate p4c-1.12.0 pip install "py4cytoscape @ git+ssh://[email protected]/cytoscape/[email protected]" ``` > ... > Successfully installed backoff-2.2.1 certifi-2025.1.31 chardet-5.2.0 charset-normalizer-3.4.1 colorbrewer-0.3 colour-0.1.5...
An alternative method I use to set the x and y position of nodes, utilising a temporary visual style and `map_visual_property` is here: https://github.com/NIB-SI/skm-tools/blob/2d44bcb05a39155c6d815f393a7d8346f278dad9/skm_tools/cytoscape_utils.py#L384-L409 I think it's maybe a bit...
@bdemchak Of course! Glad to contribute 😀