gjearevoll / BioDivMapping

A pipeline dedicated to analysing and visualising the biodiversity of different taxa in Norway
GNU General Public License v3.0
5 stars 3 forks source link

overhaul organisation and structure of repository and masterScript #105

Closed RRTogunov closed 7 months ago

RRTogunov commented 7 months ago

Why have changes been made?

This branch is built off of "faster_taxaCheck" branch (PR).

Some scripts did more than they suggested (specifically, taxaImport would initialise the dateAccess working directory, and also define regionGeometry), which could cause issues depending on the order in which scripts are sourced. sourced scripts assumed the location of various files (eg location of focalTaxa, external covariates, and location where external covariates are to be downloaded); these have now been specified in in masterScript. In addition, numerous user-specified parameters were defined within sourced scripts; these have all been moved up front in the masterScript, and are now saved/accessed from the dateAccessed folder.

Main changes: move all user-defined "control parameters" up front in masterScript. Divided taxaImport into initialiseRepository + defineRegionGeometry + taxaImport. initialiseRepository initialises dateAccessed folder and saves copy of control parameters, and files from external folder. Improve saving/loading of files and use of control parameters across files sourced from main (there may be additional sourced files/functions that require modification).

PR should address issues regarding dateAccessed specification and saving/loading of polyphyleticspecies & metadataSummary.

What changes have been made?