This file is indexed.

/usr/share/hyphy/ChartAddIns/Select Cells By Index is in hyphy-common 2.2.7+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
fprintf (stdout, "Selection criterion (row_index and col_index will be replaced with actual cell row and column - both 0 based):");
fscanf  (stdin,  "String", cell_populator);

cell_populator = "cell_selector:=" + cell_populator;

ExecuteCommands (cell_populator);

selection_Size = 0;

for (row_index=0; row_index < CHART_DIMENSIONS[0]; row_index = row_index+1)
{
	for (col_index=0; col_index < CHART_DIMENSIONS[1]; col_index = col_index+1)
	{
		if (cell_selector)
		{
			selection_Size = selection_Size+1;	
		}
	}
}

if (selection_Size)
{
	SELECTED_CHART_ROWS    = {1,selection_Size};
	SELECTED_CHART_COLS	   = {1,selection_Size};
	
	selection_Size = 0;

	for (row_index=0; row_index < CHART_DIMENSIONS[0]; row_index = row_index+1)
	{
		for (col_index=0; col_index < CHART_DIMENSIONS[1]; col_index = col_index+1)
		{
			if (cell_selector)
			{
				SELECTED_CHART_ROWS[selection_Size] = row_index;		
				SELECTED_CHART_COLS[selection_Size] = col_index;		
				selection_Size = selection_Size+1;			
			}
		}
	}

	UPDATE_CHART_SELECTION = 1;
}
else
{
	fprintf (stdout, "\nNo matches found!\n");
}