# for new nodes ary
for (@new_nodes)
{
+ # TODO: check for new group ref to use
+ # TODO: integrate attr settings into the if..else below
+
if ($is_first_paralog)
{
# print "first paralog...\n";
{
# print "add'l paralog...\n";
# SUB: generate a new DataNode hex id not already in use
+ # update add'l nodes w/ special attributes:
+ # decrement the Z-order
+ # decrement CenterX and CenterY by 10px each
}
- # update new nodes w/ attributes:
+ # update all new nodes w/ attributes...
+
# rename TextLabel (prefix (config), suffix: -alpha or numeric, based on regex)
$_->setAttribute("TextLabel",
$configs{"LabelPrefix"}
$_->insertBefore($new_comment,$_->getFirstChild); # assumes other child nodes
# edit <Xref Database="JGI" ID="Egrandis..." />
- # decrement the Z-order
- # decrement CenterX and CenterY by 10px each
- # change box Width if needed
+ # change box Width
# color the box (<Graphics...Color="4488ff" />)
}
+ # TODO: roll these node statments into the loop above
# replace old node w/ new node(s); do this in place
for (@new_nodes) {
- # replace one
+ # replace one...
$pathway_node->replaceChild($_,$curr_old_gene_node);
# ...and add the others immediately preceding
#insertBefore();
# [later]
# .After PathVisio sanity check, before communication:
- # .remove back-ref TAIR comments
+ # .remove added back-ref TAIR comments (just rerun w/o added <Comment>?)
# [usage example]
# my $nodes = $gpml_doc->getElementsByTagName("DataNode");