Add day segment parameter to location barnett rule
parent
2c856f1cfc
commit
ccc283db16
|
@ -23,7 +23,9 @@ rule all:
|
||||||
pid=config["PIDS"],
|
pid=config["PIDS"],
|
||||||
call_type=config["CALLS"]["TYPES"],
|
call_type=config["CALLS"]["TYPES"],
|
||||||
segment = config["CALLS"]["DAY_SEGMENTS"]),
|
segment = config["CALLS"]["DAY_SEGMENTS"]),
|
||||||
expand("data/processed/{pid}/location_barnett.csv", pid=config["PIDS"]),
|
expand("data/processed/{pid}/location_barnett_{segment}.csv",
|
||||||
|
pid=config["PIDS"],
|
||||||
|
segment = config["BARNETT_LOCATION"]["DAY_SEGMENTS"]),
|
||||||
expand("data/processed/{pid}/bluetooth_{segment}.csv",
|
expand("data/processed/{pid}/bluetooth_{segment}.csv",
|
||||||
pid=config["PIDS"],
|
pid=config["PIDS"],
|
||||||
segment = config["BLUETOOTH"]["DAY_SEGMENTS"]),
|
segment = config["BLUETOOTH"]["DAY_SEGMENTS"]),
|
||||||
|
|
|
@ -68,7 +68,8 @@ RESAMPLE_FUSED_LOCATION:
|
||||||
TIMEZONE: *timezone
|
TIMEZONE: *timezone
|
||||||
|
|
||||||
BARNETT_LOCATION:
|
BARNETT_LOCATION:
|
||||||
METRICS: ["hometime","disttravelled","rog","maxdiam","maxhomedist","siglocsvisited","avgflightlen","stdflightlen","avgflightdur","stdflightdur","probpause","siglocentropy","minsmissing","circdnrtn","wkenddayrtn"]
|
DAY_SEGMENTS: [daily] # These metrics are only available on a daily basis
|
||||||
|
METRICS: ["hometime","disttravelled","rog","maxdiam","maxhomedist","siglocsvisited","avgflightlen","stdflightlen","avgflightdur","stdflightdur","probpause","siglocentropy","circdnrtn","wkenddayrtn"]
|
||||||
LOCATIONS_TO_USE: ALL # ALL, ALL_EXCEPT_FUSED OR RESAMPLE_FUSED
|
LOCATIONS_TO_USE: ALL # ALL, ALL_EXCEPT_FUSED OR RESAMPLE_FUSED
|
||||||
ACCURACY_LIMIT: 51 # meters, drops location coordinates with an accuracy higher than this. This number means there's a 68% probability the true location is within this radius
|
ACCURACY_LIMIT: 51 # meters, drops location coordinates with an accuracy higher than this. This number means there's a 68% probability the true location is within this radius
|
||||||
TIMEZONE: *timezone
|
TIMEZONE: *timezone
|
||||||
|
|
|
@ -55,9 +55,10 @@ rule location_barnett_metrics:
|
||||||
metrics = config["BARNETT_LOCATION"]["METRICS"],
|
metrics = config["BARNETT_LOCATION"]["METRICS"],
|
||||||
locations_to_use = config["BARNETT_LOCATION"]["LOCATIONS_TO_USE"],
|
locations_to_use = config["BARNETT_LOCATION"]["LOCATIONS_TO_USE"],
|
||||||
accuracy_limit = config["BARNETT_LOCATION"]["ACCURACY_LIMIT"],
|
accuracy_limit = config["BARNETT_LOCATION"]["ACCURACY_LIMIT"],
|
||||||
timezone = config["BARNETT_LOCATION"]["TIMEZONE"]
|
timezone = config["BARNETT_LOCATION"]["TIMEZONE"],
|
||||||
|
day_segment = "{day_segment}"
|
||||||
output:
|
output:
|
||||||
"data/processed/{pid}/location_barnett.csv"
|
"data/processed/{pid}/location_barnett_{day_segment}.csv"
|
||||||
script:
|
script:
|
||||||
"../src/features/location_barnett_metrics.R"
|
"../src/features/location_barnett_metrics.R"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue