# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 2.0
#
# The contents of this file are subject to the Mozilla Public License Version
# 2.0 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/2.0/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is OMA standalone.
#
# The Initial Developer of the Original Code is CBRG Research Group; 
# ETH Zurich; Switzerland.
# Portions created by the Initial Developer are Copyright (C) 2005-2013
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#   Christophe Dessimoz <cdessimoz@inf.ethz.ch>
#   Adrian Altenhoff <adrian.altenhoff@inf.ethz.ch>
#   Stefan Zoller <stefan.zoller@inf.ethz.ch>
#   Adrian Schneider <adrian.schneider@inf.ethz.ch>
#   Alexander Roth <alexander.roth@inf.ethz.ch>
#   Gaston Gonnet <gonnet@inf.ethz.ch>
#
# ***** END LICENSE BLOCK *****
if assigned(libdir) then
    OrthologsLib := libdir:
else
    OrthologsLib := TimedCallSystem('pwd')[2,1..-2].'/lib/':
fi:

MergeOMAGroups := noeval(ReadLibrary( OrthologsLib.'MergeOMAGroups',MergeOMAGroups)):

OrthologousMatrix := noeval(ReadLibrary( OrthologsLib.'OrthologousMatrix',
	OrthologousMatrix)):
GenomeSummary := noeval(ReadLibrary( OrthologsLib.'GenomeSummary',
	GenomeSummary)):

RefinedMatches := noeval(ReadLibrary( OrthologsLib.'RefinedMatches.drw',
        RefinedMatches)):
AssertDatabaseVersionsInSync := noeval(ReadLibrary(OrthologsLib.'RefinedMatches.drw', 
    AssertDatabaseVersionsInSync)):
WriteMatches := noeval(ReadLibrary(OrthologsLib.'RefinedMatches.drw', WriteMatches));
AssertMinScoreParam := noeval(ReadLibrary(OrthologsLib.'RefinedMatches.drw', AssertMinScoreParam));
ReadProgram( OrthologsLib.'Pair');

WriteEspritResults := noeval(ReadLibrary( OrthologsLib.'Esprit.drw',
    WriteEspritResults));
Esprit := noeval(ReadLibrary( OrthologsLib.'Esprit.drw', Esprit));
ObjScaffold := noeval(ReadLibrary( OrthologsLib.'ScaffoldVerification.drw', ObjScaffold));

IdentifyPosition := noeval(ReadLibrary (OrthologsLib.'IdentifyPosition.drw',
    IdentifyPosition));
DistBounds := noeval(ReadLibrary(OrthologsLib.'IdentifyPosition.drw',
    DistBounds));

ConvertGenomes := noeval(ReadLibrary(OrthologsLib.'GenomeConversion', ConvertGenomes));
CleanupSequences := noeval(ReadLibrary(OrthologsLib.'InputGenomePreProcessing', CleanupSequences));
EstablishSpliceMap := noeval(ReadLibrary(OrthologsLib.'InputGenomePreProcessing', EstablishSpliceMap));
FilterBestSplicingMatches := noeval(ReadLibrary(OrthologsLib.'AltSplicing', FilterBestSplicingMatches));

ValidateParameters := noeval(ReadLibrary(OrthologsLib.'CheckParamCompability', ValidateParameters));

Logger := noeval(ReadLibrary(OrthologsLib.'Logging',Logger));
FileExists := noeval(ReadLibrary(OrthologsLib.'FileExists',FileExists));
StoreOrthologMilestone := noeval(ReadLibrary(OrthologsLib.'WriteMileStones',
    StoreOrthologMilestone));
LoadOrthologMilestone := noeval(ReadLibrary(OrthologsLib.'WriteMileStones',
    LoadOrthologMilestone));

CheckExported := noeval(ReadLibrary(OrthologsLib.'FunctionPropagation', CheckExported));
PropagateFunctionByGroup := noeval(ReadLibrary(OrthologsLib.'FunctionPropagation', PropagateFunctionByGroup));
WriteGAF := noeval(ReadLibrary(OrthologsLib.'FunctionPropagation', WriteGAF));

WriteOrthoXML := noeval(ReadLibrary(OrthologsLib.'WriteOrthoXML', WriteOrthoXML));
XMLEscape := noeval(ReadLibrary(OrthologsLib.'WriteOrthoXML', XMLEscape));
WritePhyloXML := noeval(ReadLibrary(OrthologsLib.'WritePhyloxml', WritePhyloXML));
WriteMatrix := noeval(ReadLibrary(OrthologsLib.'WriteMatrix',WriteMatrix));
WriteGroups := noeval(ReadLibrary(OrthologsLib.'WriteMatrix',WriteGroups));
WriteProfileFromHOGs := noeval(ReadLibrary(OrthologsLib.'WriteMatrix',WriteProfileFromHOGs));
WriteProfileFromOGs := noeval(ReadLibrary(OrthologsLib.'WriteMatrix',WriteProfileFromOGs));
WriteFastaGroups := noeval(ReadLibrary(OrthologsLib.'WriteFastaGroups', WriteFastaGroups));
HierarchicalGroups := noeval(ReadLibrary(OrthologsLib.'HierarchicalGroups', HierarchicalGroups));
BuildSpeciesTree := noeval(ReadLibrary(OrthologsLib.'TreeBuilding', BuildSpeciesTree));
RerootWithOutgroups := noeval(ReadLibrary(OrthologsLib.'TreeBuilding', RerootWithOutgroups));

GenerateStableIDs := noeval(ReadLibrary(OrthologsLib.'StableIdentifiers', GenerateStableIDs)):
ParallelInfo := noeval(ReadLibrary(OrthologsLib.'Platforms', ParallelInfo));
DetectParallelInfo := noeval(ReadLibrary(OrthologsLib.'Platforms', DetectParallelInfo));
GetHOGsBottomUp := noeval(ReadLibrary(OrthologsLib.'GetHOGsBottomUp', GetHOGsBottomUp));
FindWarthogs := noeval(ReadLibrary(OrthologsLib.'GetHOGsBottomUp', FindWarthogs));
