-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are "Reversible" and "Weighted" arrows mutually exclusive? #9
Comments
The way the code's currently written it would be mutually exclusive. Otherwise it would be tough to indicate which way the flux was flowing if you had arrowheads in both directions. I think some papers use different sized arrowheads to indicate direction and reversibility, which is something I could look into. If you knew a bit of javascript, you're welcome to send in a PR :) d3flux/d3flux/templates/d3flux.js Lines 481 to 503 in 24430e9
dummy arrowheads get added everywhere, and then I selectively show them based on some logic here d3flux/d3flux/templates/d3flux.js Lines 203 to 206 in 24430e9
You'd probably need to code in some logic about scaling the reverse arrowheads to be some fraction of the forward direction's size? That would involve changing how the markers are scaled, since I do them all at once here. Not sure why I don't just scale them in the code above when they're created... d3flux/d3flux/templates/d3flux.js Lines 792 to 796 in 24430e9
|
I was trying to add the fluxes to the reactions by adding the "solution" dictionary to the "flux_dict" parameter. I did get the weighted links, but lost all the reversible links (with arrows on both sides). The cobrapy model and the .json file for the representation still have the "reversibility" property as "true", though. So, is there any workaround?
The text was updated successfully, but these errors were encountered: