Code, datasets and figures associated to the manuscript:
Published in the Canada Journal of Fisheries and Aquatic Science (CJFAS)
Authorship:
Emma M Atkinson, Bruno S Carturan, Clare P Atkinson, Andrew W Bateman, Katrina Connors, Eric Hertz, Stephanie J Peacock
This repository does not contain all the input datasets needed to fully reproduce the analyses. The entire repository containing all the files is available on Zenodo. By downloading the latter, one does not have to bring the input files in the correct subfolders.
We provide below the detail of the input files needed to complete the different steps of the analyses that are not present in the subfolder on this Github repository.
-
script: a_nuseds_collation.Rmd; Supplement A - Part 1
-
Files to place in the
/data_inputfolder:-
all_areas_nuseds_2025-02-21.csv : the downloaded all_areas_nuseds.csv (NUSEDS) from DFO
-
conservation_unit_system_sites_2025-02-20.csv : the downloaded conservation_unit_system_sites.csv (CUSS) from DFO
-
DFO_All_Streams_Segments_20240408.xlsx : stream - GFE_ID data file from DFO (emailed by Wu Zhipeng, DFO, 09/04/2024)
-
PSF_modified_SEP_releases_2023.xlsx : DFO's Hatchery dataset to access additional GFE_IDs (emailed by Brock Ramshaw, DFO, 03/07/2023)
-
/pse_conservation_units/pse_conservation_units.gdb : shape files of the conservation unites as defined in the PSE
-
/se_boundary_regions/se_boundary_regions.shp : shape files for the Region boundaries as defined in the PSE
-
-
Files to place in the
/data_outputfolder:-
all_areas_nuseds_noNAs_TEMP.csv # NUSEDS after removing the time series only made of NAs (used in paper)
-
all_areas_nuseds_noNA0s_TEMP.csv # NUSEDS after removing the time series only made of NAs and/or 0s (not used in paper)
-
trackRecord_noNAs_TEMP.csv # all the time series in CUSS not in NUSEDS using all_areas_nuseds_noNAs_TEMP.csv (used in paper)
-
trackRecord_noNA0s_TEMP.csv # all the time series in CUSS not in NUSEDS using all_areas_nuseds_noNA0s_TEMP.csv (not used in paper)
-
Note: these four files are intermediate files to save computation time. The option is provided at the start of the script to use those intermediate files or not.
-
script: b_nuseds_cuid_pse.Rmd; Supplement A - Part 2
-
Files to place in the
/data_inputfolder:- streamlocationids.csv : names, coordinates and identification number of streams defined in the PSE
-
Files to place in the
/data_outputfolder:- 1_NuSEDS_escapement_data_collated_2025-04-15.csv : the cleaned combined NUSEDS and CUSS dataset with time series containing only NAs removed
-
script: 0_assign-regions.R
-
Files to place in the
/data_inputfolder:- /gshhg-shp-2.3.7/GSHHS_shp/f/GSHHS_f_L1.shp : the shape files for the shorelines, to download from OAA, Global Self-consistent, Hierarchical, High-resolution Geography Database (GSHHG) access
-
Files to place in the
/data_outputfolder:- nuseds_cuid_streamid_2025-04-15.csv : the cleaned NuSEDS data available here and here: /data_output
-
script: 1_datasets.R
-
Files to place in the
/data_inputfolder:- All the needed files are present in the folder
-
Files to place in the
/data_outputfolder:- nuseds_cuid_streamid_2025-04-15.csv : the cleaned NuSEDS data available here and here: /data_output
-
script: 2_analyses.R
-
Files to place in the
/data_inputfolder:- All the needed files are present in the folder
-
Files to place in the
/data_outputfolder:- nuseds_cuid_streamid_2025-04-15.csv : the cleaned NuSEDS data available here and here: /data_output
Supplementary figures, details of the GLM analyses and summary of the NuSEDS cleaning procedure (Supplement B)
-
script: 3_Supplement_B.Rmd; Supplement_B
-
Files to place in the
/data_inputfolder:- All the needed files are present in the folder
-
Files to place in the
/data_outputfolder:- All the needed files are present in the folder