#### Definition of the verbose mode ####
# Verbosity may provide useful complementary information on the processes
# But it also increases the run-time
# Uncomment the next line to use verbose
V='-v'

#### Include artefacts ####
# Artefacts are basics compounds needed for a stoichiometric gapfill
# They are added to the seeds given as growth medium to create seeds_with_artefacts.txt
# Uncomment the next lines to add artefacts or comment the lines to only use originals seeds
# It is possible to use your own set artefacts bu changing the pathname (without extension) 
WITH_ARTEFACTS=TRUE
ARTEFACTS=growth_medium/default_artefacts_metacyc_20.0

#### Definition of the database of reference ####
# to get all available database, use the cmd: 'make getdb'
# to use your own database, put your padmet file in the folder database of your run and set DATA_BASE=/home/*MY_RUN_ID*/database/*my_db_name* (without extension)
#DATA_BASE=database/metacyc_23.0
DATA_BASE=/home/data/database/BIOCYC/METACYC/23.0/metacyc_23.0

#### Definition of the methods used during the workflow ####
# Available orthology based reconstruction methods: 'orthofinder', 'OMCL' (for orthoMCL)
ORTHOLOGY_METHOD=orthofinder
# Available annotation based reconstruction methods: 'pathwaytools'*
# * Pathwaytools is not installed inside AuReMe for license reasons but the output is managed within AuReMe 
ANNOTATION_METHOD=pathwaytools
# Available gap filling methods: 'meneco', 'psamm'
GAP_FILLING_METHOD=meneco

#---------------------------------------------
#				 PARAMETERS
#
# These parameters MUST NOT be changed unless
# you are sure of what you do !
#---------------------------------------------
#This makefile represent the rules to run the workflow:
WORKFLOW=AuReMe
#ID of the current run, If the folder name is manually modified, this id should be also changed
RUN_ID=fibrobacter
#Uncomment this to recover all the reactions within the different networks (also those not in the database) 
ALL_RXN='-f'

#Definition of some useful paths
PROGRAMS=/programs
PADMET_U=$(PROGRAMS)/padmet-utils/padmet_utils

#VAR for folders:
BASE=/shared/$(RUN_ID)
NETWORKS_FOLDER=$(BASE)/networks
ANNOTATION_OUTPUT_FOLDER=$(BASE)/networks/output_annotation_based_reconstruction
ORTHOLOGY_OUTPUT_FOLDER=$(BASE)/networks/output_orthology_based_reconstruction
EXTERNAL_FOLDER=$(BASE)/networks/external_network
ORTHOLOGY_MODEL_FOLDER=$(BASE)/orthology_based_reconstruction
ANNOTATION_FOLDER=$(BASE)/annotation_based_reconstruction
CURATION_DATA_FOLDER=$(BASE)/manual_curation
GENOMIC_FOLDER=$(BASE)/genomic_data
WIKI_PAGES=$(BASE)/analysis/wiki_pages
REPORT_DIR=$(BASE)/analysis/report
ASKOMICS=$(BASE)/analysis/askomics

#----
#Var for all
NEW_NETWORK=$(NETWORK)

#def sbml lvl
LVL=3

# Genomic data
#FAA_STUDY: the proteom of the studied organism, will be used for the research of orthologous genes
FAA_STUDY=$(GENOMIC_FOLDER)/$(RUN_ID).faa
#GBK_STUDY: the gbk of the studied organism, will be used to create the FAA_STUDY (if not given) and to run annotation based reconstruction
GBK_STUDY=$(GENOMIC_FOLDER)/$(RUN_ID).gbk


#Pathwaytools output (for one specific pathwaytools_run)
# In futur version, allow to install pathwaytools inside aureme and run a pre-configured command.
PWYTOOLS_INSTALLED=FALSE
NO_ORPHAN="--no-orphan"

PATHWAYTOOLS_OUTPUT=$(NETWORKS_FOLDER)/output_annotation_based_reconstruction/pathwaytools/output_pathwaytools

#VAR for Inparanoid, Orthomcl and Pantograph
#PANTOGRAPH_RUN correspond to the folder were to run pantogrpah (ex: orthology_based_reconstruction/model_a/)
# Definition of the model organism #
CUTOFF=0.70
DICT_GENES=$(MODEL_FOLDER)/dict_genes.txt

#orthfinder
ORTHOFINDER_WORKDIR=$(ORTHOLOGY_MODEL_FOLDER)/orthofinder_wd
orthofinder_output=$(ORTHOFINDER_WORKDIR)/Orthologues
REMOVE_ORTHO_WORKDIR=TRUE

#Var for seeds & targets
SEEDS=growth_medium/seeds
SEEDS_ARTEFACTS=growth_medium/seeds_artefacts
TARGETS=targets_compounds/targets

#Var for networks
DRAFT=$(NETWORKS_FOLDER)/draft

#Var for meneco
MENECO_SEEDS=$(SEEDS)
meneco_original_output=$(BASE)/gapfilling/original_output/meneco_output_$(NETWORK).txt
meneco_solution=$(BASE)/gapfilling/gapfilling_solution_with_meneco_$(NETWORK).csv

#Var for manual curation
REACTION_TO_ADD_DELETE=manual_curation/data/reaction_to_add_delete.csv
NEW_REACTION_DATA=manual_curation/data/reaction_creator.csv
HISTORY_REACTION_TO_ADD_DELETE=manual_curation/history/history_reaction_to_add_delete.csv
HISTORY_NEW_REACTION_DATA=manual_curation/history/history_reaction_creator.csv

#Var for mapping
TO_MAP=reaction
MNX_FOLDER=/home/data/database/MNX/2018
MNX_RXN=$(MNX_FOLDER)/reac_xref.tsv
MNX_CPD=$(MNX_FOLDER)/chem_xref.tsv
MNX_CPD_PROP=$(MNX_FOLDER)/chem_prop.tsv



