Cytoscape3 Desktop: remove labels for traget nodes only - cytoscape

I'd like to remove the labels for target nodes only (i.e. keep the labels for the source nodes). Style>Edit>Remove Mappings from selected Visual Properties removes the labels for both, target and source nodes.
Thanks

Unfortunately, there is no way to do that directly :-( You could create a column and copy over labels if that node is a source node and then point your mapping to that column, but that could be a fairly big hassle.
-- scooter

Related

Cytoscape Desktop: Order of source nodes if group attributes layout is applied by target node attribute

I am using the Group Attributes Layout on a target node column in Cytoscape Desktop. All target nodes are grouped and sorted as expected. The source nodes are also grouped in a circle which is desired, I just cannot figure out how to get those (source nodes) in a custom order.
Thanks in advance!
Chris
It's pretty easy -- just start by selecting your target nodes, then doing the layout using "Selected Only". That will only layout your target nodes. Then repeat the process for your source nodes.
-- scooter

How to merge KEGG pathways in Cytoscape after editing

For a project, I have learnt to import KEGG pathways to Cytoscape and merge without any edits. I want to differentiate the nodes of each pathways with different colours to understand the pathways of particular gene or molecule. When I try to merge the pathways after editing, only the source is getting merged not the edited one. Could someone please guide me with the tips to merging the edited pathways in Cytoscape in detail?
I assume that when you say "editing" you are referring to editing the visual properties (i.e. color). You are correct that merging networks does not attempt to merge the visual properties. On the other hand, this isn't really hard -- just add a node column in one of your pathways and fill that column with a values (doesn't matter what value). When you do the merge, that column will be preserved. Now since only one of your pathways has values in the that column, you can set up a discrete mapping and change the color of only those nodes with a value in the column. This is covered in the Basic Data Visualization tutorial at https://tutorials.cytoscape.org.

Cytoscape multiple variable for style

I'm using Cytoscape for generating a regulatory network. Are there any option for using multiple variables to set node size?
For example:
I have two groups A and B. The node size of the group be should be defined by the column 'expression' and the node size of the edgecount.
I try to select only the A nodes and set the node size by expression in styles but it change all the data set.
There isn't an easy way to do this in Cytoscape, but I'm not sure I understand what you're trying to achieve. You could create a combination column, but generally using size for two different variables is likely to confuse the viewers. I would suggest

Does Apache Sling have symbolic links for nodes?

I'd like to normalize my repository. I've got a bunch of identical nodes - identical properties and identical child nodes with their identical properties. I'd like to have just one node that defines the properties and children and have the rest just reference it, thereby eliminating a bunch of redundant nodes.
Is there some property that I can add to a node to make it a duplicate of another without having to actually copy it, like a Unix symbolic link?
Have you looked at the x-ref component? It creates a node that points to the original node & renders the original node instead.

Deriving the label names from other node in neo4j

I'm using ne04j 2.1.2 community edition.
I have a nodes with a label called Company and I created these nodes and label by loading CSV file along with the MERGE and CREATE commands.
So in future if my label names changes,say Company to Organization, I wanted to maintain the createddate, UpdatedDate, NewLabelName, OldLabelName values somewhere.
So in order to achieve that I thought of maintaining one master node which holds the label information i.e., it should have the properties like NewLabelName, OldLabelName, CreatedDate, UpdatedDate. So the label name should come from the Master Node to other nodes. Whenever we made any changes to label ,then the corresponding UpdatedDate property value should be updated in the master node and NewLabelName should come from the master node to other nodes (nodes for which that label belongs to) .
Hope you understand the scenario here.
But how can i achieve this ? is it possible to achieve ? if yes, then how can i define the relationship between master and other nodes?
(Here my other nodes are Name of the Companies like Google, Yahoo, Samsung etc.. and those will be having some other child nodes like location)
Please suggest the solution. (I wanted to achieve these using cypher not using java)
Thanks
Although labels can be changed, you should do that rarely (e.g., to recover from a mistake). Changing a large number of labels is very expensive and should never be done as a part of normal processing.
Also, like a Java class name, a label name is not something you'd normally show to end users. So, there is really no reason to ever change them. Just try to pick reasonable label names to start with, and don't plan to change them.

Resources