Skip to content

Major Files and Functions

Sugeerth Murugesan edited this page Aug 1, 2016 · 3 revisions

If you are a python geek and would like to tweak your visualizations by changing width, height or size of the displayed graphical elements you can goto the respective rendering functions and change the sizes

Few of the major files and their functions are:

###1) brain-vis/communityDetectionEngine.py###

Function:

 communityLayoutCalculation()

  This is the heart of the layout algorithm. All of the positions are calculated here to render in the graph view. 
  There are two positions here, one for the correlation mode and the other for the community mode
  To scale the visualizations for larger or smaller number of graphical elements change the variable called Factor. 
  A factor of 10 is suitable for 50 nodes, while a factor of 1000 is for few hundreds of nodes. 
  Tweaking this function might be tricky but you may want do a trial and error method 

 Find_InterModular_Edge_correlativity()

  In case you are not happy with the inter-community correlation edge function that we have implemented and you would want 
  something more advanced, this is the function that needs to be tweaked.   

 ModularityBehaviour()

  One of the other interesting analysis that can be done in the tool is to analyze the evolution of modularity 
  and the number of connected components over different threshold values. This function does that and stores 
  the values in a csv file, this then can be used to visualize this values using graphs in excel or python itself.    

Clone this wiki locally