Skip to content

icwells/elcs

Repository files navigation

ELCS Project scripts

These scripts are meant for the use of the Atkipis lab, Biodesign Institute, Arizona State University

Copyright 2019 by Shawn Rupp

Installation

git clone https://github.com/icwells/elcs.git    

Usage

These scripts are meant to run on a Windows server with no internet access, and must be run in a terminal with Anaconda installed.
All input files are declared within the manifest.py file, and all output will be written to the scripts' parent directory.
update.py will run the entire pipeline.

Scripts

adversity.py: Adds UPDB columns for measures of adversity and calculates adversity score.
censusSummary.py: Calculates summary statistics for census 1940 variables.
erColumn.py: Adds column for ER +/- to UCR file.
getTotals.py: Prints frequencies of adversity measures to csv. Also used to calculate totals for histograms.
histograms.py: Plots historgams of adversity fields by ER status.
impute.py: Replaces empty values in merged file with imputed values.
maD10.py: Counts number of records in file where Ma died before ego age 10.
manifest.py: Input file manifests, most recent file functions, and column class for elcs analyses.
mergeRecords.py: Merges UPDB data with UCR data.
record.py: Deinfes class for storing UPDB records and calculating adversity scores. Imported by adversity.py.
reproduction.py: Determines intervals for categorizing reproductive measures. Imported by adversity.py.
summary.py: Produces sumamry of total/complete entries per column in input file.
test_summary.py: Tests summary script.
twoWayTables.py: Makes csv of table of value A vs value B in merged file.
update.py: Updates all relevant files.
windowspath.py: This script contains common functions for manipulating paths.

About

Scripts for ELCS database project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published