Skip to content

Commit

Permalink
ENH: Config setup re: marbl#206
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Mar 28, 2022
1 parent cab9bbc commit 96c24f1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions metagenomescope/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,22 @@
# More info on these available at www.graphviz.org/doc/info/attrs.html

NODE_ORIENTATION_TO_SHAPE = {"+": "invhouse", "-": "house"}
# See https://github.com/marbl/MetagenomeScope/issues/206. Nodes that we
# duplicate due to being on the boundary of a bubble will have different
# shapes to illustrate that these are really one node split up.
# The keys used in this dictionary ("+1", "+2", "-1", "-2") are defined as
# follows, in the context of assigning a shape to an arbitrary node that has
# been duplicated. The first character in the refers to this node's orientation
# (+ or -); note that orientation does not change when we duplicate a node.
# The second character refers to whether this node has an outgoing edge to
# its duplicate (1) or has an incoming edge from its duplicate (2).
# (...And no, you can't have both types of adjacent edges at once.)
BOUNDARY_NODE_TYPE_TO_SHAPE = {
"+1": "rect",
"+2": "invtriangle",
"-1": "rect",
"-2": "triangle",
}

### Global graph settings (applied to every node/edge/etc. in the graph) ###
#
Expand Down

0 comments on commit 96c24f1

Please sign in to comment.