Physical Activity Derivation (PAD) Program 

W.Rayner & Aliki-Eleni Farmaki 
Version 1.0 2013-2015

The zip file contains 4 files:
PAD.pl
PAD.ini
README.txt (This file)
Test.txt

To test all is working run the following command.
PAD.pl -f Test.txt  
or
perl PAD.pl -f Test.txt

The program requires the .ini file to run, this file contains the MET values for each
activity. By default this should be in the same directory as PAD.pl but by using the -i
flag a new file and path can be specified.
In future it will be possible to change the column names and time measurements in the 
ini file to reflect the data file rather than the other way round. 

Program options:
-f Input file name and path, required
-i specifies the name and location of the ini file, default is PAD.ini
-o Specifies the output file name and location, default PAD.out
-l Specified the logfile name and location, default PAD.log

The data file must have the following required Columns:

Current_weight
Days_working
Hours_per_working_day
Mins_sitting
Mins_standing
Mins_moving
Hours_transfering_weight
Mins_per_day_transport_work
Mins_per_day_walk_work
Mins_per_day_driving_work
Hours_per_day_sleeping
Hours_per_day_TV_video
Hours_per_week_mild
Hours_per_week_hard
Hours_per_week_reading_PC
Hours_per_week_dancing
Hours_per_week_leisure_sitting_standing
Hours_per_week_leisure_walking
Hours_per_week_activity1
Hours_per_week_activity2
Hours_per_week_activity3
Met_activity1 
Met_activity2 
Met_activity3

There is no limit to the number or name of other columns that can appear in the file 
alongside these.
At the moment these columns are required to have this exact naming, this will be changed
in future versions of the program.

The columns:
Hours_per_week_activity1
Hours_per_week_activity2
Hours_per_week_activity3
and
Met_activity1 
Met_activity2 
Met_activity3
Allow for extra activities to be added to the program with the values being combined in 
order.

Email: wrayner@well.ox.ac.uk or alelfarmaki@gmail.com 
