Replies: 3 comments 6 replies
-
I think this sounds great Josh, let's do it! Thanks for putting so much thought into it! |
Beta Was this translation helpful? Give feedback.
5 replies
-
@Ovec8hkin is your branch up-to-date? |
Beta Was this translation helpful? Give feedback.
1 reply
-
The main branch should now be fully up to date with Josh's folder organization. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I've been thinking about how best to handle file and folder structure for the assessment so as to keep all of out analyses and outputs organized. I have pushed some code to the 'alt-file-structure' branch of this repository that you can check out that demonstrates a possible directory structure. This is just one of many possible file/folder structures that could be used, but is one that I think keeps everything nicely organized (at least for now).
Full thoughts:
data/
- This directory should hold any and all data that is direct requested from state/federal agencies or pulled from NOAA servers (ie. survey data). Data that gets output from other analyses (ie. a lot of the SS inputs) are stored somewhere else.data/raw/
- This should be completely raw, unedited, data from various data sources. This folder is untracked and is safe to place confidential data in.data/processed/
- This can be used to place processed data from available data sources. This folder IS tracked, so do not place any confidential data here, but rather cleaned datasets ready for analysis. Ideally, every file in this directory should have an equivalent "raw" data file indata/raw
.R/
- This directory should hold R scripts and analyses. These can take the form of either runnable.R
scripts or.Rmd
Rmarkdown documents/notebooks. Note that data outputs/plots should not be stored in this directory. This directory is further broken down into subdirectories based on data type ('bio/', 'comps/', 'discards/', 'landings/', and 'survey/'). Data type specific analyses and script should live in their relevant subdirectories rather than the rootR/
directory.R/utils/
- Any utility functions that may be of use across R analyses can go here. For example, plotting code, or helpful data cleaning functions.model/
- This directory will (in the future) hold the stock synthesis model code.outputs/
- Send all outputs (including plots and potential SS input files) generated by other analyses to this directory. There is no defined directory structure for this directory at this time, so be thoughtful as to directory and file names when you send outputs here.Again, these are just my personal thoughts on a possible directory structure, so they are open to comment and revision. Folder structure is likely change as more analyses are completed and needs change, but I think this is a good starting point for the data preparation stage.
Beta Was this translation helpful? Give feedback.
All reactions