   end
 
   def phenotypes(dataset_name, start, stop) do
-    authorize(dataset_name)
+    authorize_dataset(dataset_name)
     dataset_id =
       case use_type(dataset_name) do
         { :integer, i } -> i

    end
  end

  defp authorize(dataset_name) do
    subq =
      case use_type(dataset_name) do
        { :integer, i } -> "D.id = #{i}"



  def phenotype_info(dataset_name,marker) do
    authorize_dataset(dataset_name)
    # The GN1 querly looks like
    # query = "SELECT Strain.Name, %sData.value from %sData, Strain, %s, %sXRef WHERE %s.Name = '%s' and %sXRef.%sId = %s.Id and %sXRef.%sFreezeId = %d and  %sXRef.DataId = %sData.Id and %sData.StrainId = Strain.Id order by Strain.Id"
    # but it does not pick up the stderr.
