panacus icon indicating copy to clipboard operation
panacus copied to clipboard

how to calculate the #nodes of pangenome info page of the report

Open leeyb9916 opened this issue 11 months ago • 1 comments

In the Pangenome Info page of the html report, on the groups tab, the number of nodes per sample appears to be greater than the total node count in the graph. I don’t quite understand why this is the case.

Could you explain how the node count per sample is calculated on the groups tab in the Pangenome Info page?

leeyb9916 avatar Feb 19 '25 04:02 leeyb9916

The total node count simply consists of every node of the graph.

The node count per sample on the other hand counts the nodes the paths of the sample traverses. So if a path goes through one node 3 times that node results in a +3 for the node count per sample. (This can also happen if two paths of the same sample go through the same node). Therefore, the node count per sample counts the number of steps of all the paths belonging to that sample.

heringerp avatar Feb 19 '25 10:02 heringerp