scattered_light_raw
- gwas_tools.algorithms.scattered_light_raw.scattered_light_raw(gps, seconds, target_channel_name, channels_file, out_path, f_lowpass, event='center', fs=256, n_scattering=1, smooth_win=50, save_data=True, check_lock=False)
Analysis for scattered light identification using raw target channel and not its imfs. The script outputs a folder named as the input gps, with inside two files:
most correlated predictor (.predictors, optional)
output.yml, a summary of the analysis’ results
- Parameters:
gps (int) – gps of the event
seconds (int) – how many seconds to analyze in total
target_channel_name (str) – target channel name
channels_file (str) – channels list
out_path (str) – output path where to save results
f_lowpass (float or str) – lowpass filter frequency
event (str) – position of the event’s gps in the analysed period. Can be start, center, or end (default : center)
fs (float, optional) – channels resample frequency (default : 256)
n_scattering (int, optional) – number of signal bounces (default : 1)
smooth_win (int, optional) – signals smoothing window (default : 50)
save_data (bool, optional) – if True, instantaneous amplitudes and predictors are saved to file (defaults : True)
check_lock (bool, optional) – if True, lock channel status is checked, and if it is not always locked, the analysis is not performed (default : False)