Commit b50c79ee authored by matbuoro's avatar matbuoro
Browse files

cleaning

parent aff52a7f
......@@ -4,6 +4,7 @@
/doc
/*/raw
/*/*/Sab
/*/*/Sab/*
# Formats
*.zip
......
......@@ -44,7 +44,7 @@ inits <- list(read.bugsdata(paste("inits/init-",site,"-",stade,year,".txt",sep="
#------------------------MODEL----------------------------------##
model <- paste("model/model_",stade,"-",site,".R",sep="") # path of the model
if(site == "Scorff" && stade == "smolt") {model <- paste("model/",stade,"-",site,"_",year,".R",sep="")} # le modèle Scorrf pour les smolt peut changer tous les ans suivant conditions
if(site == "Scorff" && stade == "smolt") {model <- paste("model/model_",stade,"-",site,"_",year,".R",sep="")} # le modèle Scorrf pour les smolt peut changer tous les ans suivant conditions
model
filename <- file.path(work.dir, model)
......@@ -178,6 +178,6 @@ dev.off()
#------------------------------------------------------------------------------
## SUMMARY
if(site == "Scorff" && stade == "adult") {source("summary_adult.R")}
#if(site == "Scorff" && stade == "adult") {source("summary_adult.R")}
if(site == "Nivelle" && stade == "tacon") {source("analyse_coda_tacon.R")}
......@@ -4,14 +4,14 @@
#SITE=Scorff # Nivelle Oir Bresle
YEAR=2016
BURNIN=5000 # Number of steps to "burn-in" the samplers.
ITER=50000 # Total number of steps in chains to save.
THIN=1 # Number of steps to "thin" (1=keep every step).
ITER=25000 # Total number of steps in chains to save.
THIN=2 # Number of steps to "thin" (1=keep every step).
REPbase="/home/basp-meco88/Documents/RESEARCH/PROJECTS/ORE/Abundance"
#"/media/ORE/Abundance"
for SITE in Bresle #Oir Nivelle Scorff
for SITE in Bresle Oir Nivelle Scorff
do
cd $REPbase/$SITE
......@@ -32,11 +32,11 @@ cd $REPbase/$SITE
sed 's|ITER|'"$ITER"'|g' -i $STADE/analyse_"$STADE".R
sed 's|THIN|'"$THIN"'|g' -i $STADE/analyse_"$STADE".R
#R CMD BATCH --no-save --no-restore $STADE/analyse_"$STADE".R & # analyse dans R
R CMD BATCH --no-save --no-restore $STADE/analyse_"$STADE".R #& # analyse dans R
rm -f $STADE/CODAindex.txt
#rm -f $STADE/CODAindex.txt
#rm -f analyse_"$STADE".R
#rm -f analyse_"$STADE".Rout
rm -f analyse_"$STADE".Rout
fi
done
done
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment