This file is indexed.

/usr/share/hyphy/TemplateBatchFiles/queryTree.bf is in hyphy-common 2.2.6+dfsg-3build3.

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
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
if (_WRAP_PASSTHROUGH_FLAG_)
{
	fscanf (stdin,"String", treeString);
	if (_DO_TREE_REBALANCE_)
	{
		treeString = RerootTree (treeString,0);
	}			
	if (_KEEP_I_LABELS_)
	{
		INTERNAL_NODE_PREFIX = "intNode";
	}
	
	Tree givenTree = treeString;
	if (_KEEP_I_LABELS_)
	{
		INTERNAL_NODE_PREFIX = "Node";
	}
}
else
{
	if (IS_TREE_PRESENT_IN_DATA)
	{
		fprintf (stdout, "\n\nA tree was found in the data file:\n",DATAFILE_TREE,"\n\nWould you like to use it:(Y/N)?");
		fscanf (stdin, "String", response);
		if ((response=="n")||(response=="N"))
		{
			IS_TREE_PRESENT_IN_DATA = 0;
		}
		else
		{
			if (_DO_TREE_REBALANCE_)
			{
				treeString = RerootTree (DATAFILE_TREE,0);
			}
			else
			{
				treeString = DATAFILE_TREE;
			}
			
			if (_KEEP_I_LABELS_)
			{
				INTERNAL_NODE_PREFIX = "intNode";
			}
			Tree givenTree = treeString;
			if (_KEEP_I_LABELS_)
			{
				INTERNAL_NODE_PREFIX = "Node";
			}
			IS_TREE_PRESENT_IN_DATA = 1;
		}
		fprintf (stdout, "\n\n");

	}

	if (!IS_TREE_PRESENT_IN_DATA)
	{
		SetDialogPrompt ("Please select a tree file for the data:");

		fscanf (PROMPT_FOR_FILE, REWIND, "Raw", treeString);
		
		treeStringPattern = treeString$"^#NEXUS";
		if (treeStringPattern[0]>=0)
		{
			ExecuteCommands (treeString);
			if (IS_TREE_PRESENT_IN_DATA == 0)
			{
				fprintf (stdout, "\nThis NEXUS file doesn't contain a valid tree block");
				return 1;
			}
			if (Rows(NEXUS_FILE_TREE_MATRIX)>1)
			{
			
				ChoiceList (treeChoice,"Select a tree",1,SKIP_NONE, NEXUS_FILE_TREE_MATRIX);
				if (treeChoice < 0)
				{
					return 1;
				}
				treeString = NEXUS_FILE_TREE_MATRIX[treeChoice][1];
			}
			else
			{
				treeString = NEXUS_FILE_TREE_MATRIX[0][1];
			}
		}
		else
		{
			treeStringPattern = treeString$"\\(";
			if (treeStringPattern[0]<0)
			{
				fprintf (stdout, "\nThis doesn't seem to be a valid Newick string file. Can't find the opening parenthesis.\nHad:",treeString).
				return 1;
			}
			else
			{
				parenCounter = 1;
				strlength = Abs (treeString);
				cp = treeStringPattern[0]+1;
				while ( cp < strlength && parenCounter )
				{
					cpc = treeString[cp];
					if (cpc == "(")
					{
						parenCounter = parenCounter + 1;
					}
					else
					{
						if (cpc == ")")
						{
							parenCounter = parenCounter - 1;
						}
					}
					cp = cp+1;
				}
				
				if (parenCounter)
				{
					fprintf (stdout, "\nThis doesn't seem to be a valid Newick string file. Can't match the parentheses.\nHad:",treeString).
					return 1;	
				}
				
				treeStringPattern = treeStringPattern[0];
				treeString = treeString[treeStringPattern][cp-1];
		}
		}
			
		if (_DO_TREE_REBALANCE_)
		{
			treeString = RerootTree (treeString,0);
		}
			
		if (_KEEP_I_LABELS_)
		{
			INTERNAL_NODE_PREFIX = "intNode";
		}
		
		Tree givenTree = treeString;
		if (_KEEP_I_LABELS_)
		{
			INTERNAL_NODE_PREFIX = "Node";
		}
	}
}