VEuPathDB / plot.data

1 stars 0 forks source link

Add Network class #229

Closed asizemore closed 7 months ago

asizemore commented 1 year ago

For correlation app. Updated 10.13

Intakes data that looks like

[{
  data1: string,
  data2: string,
  correlationCoef: number,
  pvalue?: number, // ignore for now - feature upgrade for later
  adjustedPValue?: number, // ignore for now - feature upgrade for later
}] 

and return nodes and links, where links look like

[{
  source: node
  target: node
  weightData?: number
  opacityData?: number
  color: number
}]

nodes look like

[(
  id: string
 }]

and then we have two arrays of nodes column1NodeIDs and column2NodeIDs that let us know which nodes belong to which column.

We'd have the data service correlation bipartitie network plugin tell plot.data how to make this. So like

outWhatever <- bpnetwork(data=data, sourceNodes = 'var1', targetNodes = 'var2', weightData= 'correlationCoef', edgeWeightingScheme = "pos/neg", edgeThreshold=0.9)