   end
 
   def dataset_info(dataset_name) do
-    authorize(dataset_name)
+    authorize_dataset(dataset_name)
     subq =
       case use_type(dataset_name) do
         { :integer, i } -> "D.id = #{i}"

  end

  def phenotype_info(dataset_name,marker,group) do
    authorize(dataset_name)
    [[group_id | _ ] | _] = group_info(group)
    query = """
SELECT DISTINCT Strain.Id, SX.InbredSetId, Strain.Name, V.value, ProbeSetSE.error,



  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.
