ibllib.pipes.misc

Functions

behavior_exists

check_create_raw_session_flag

check_transfer

cli_ask_default

cli_ask_options

confirm_ephys_remote_folder

confirm_video_remote_folder

copy_wiring_files

Run after moving files to probe folders

create_alyx_probe_insertions

create_custom_ephys_wirings

create_ephys_flags

create_ephys_transfer_done_flag

create_ephyspc_params

create_video_transfer_done_flag

create_videopc_params

get_iblscripts_folder

get_new_filename

get_new_filename is system agnostic (3A, 3B1, 3B2).

load_ephyspc_params

load_params_dict

load_videopc_params

move_ephys_files

move_ephys_files is system agnostic (3A, 3B1, 3B2).

rename_ephys_files

rename_ephys_files is system agnostic (3A, 3B1, 3B2).

rename_session

transfer_folder

cli_ask_default(prompt: str, default: str)[source]
cli_ask_options(prompt: str, options: list, default_idx: int = 0) → str[source]
behavior_exists(session_path: str) → bool[source]
check_transfer(src_session_path: str, dst_session_path: str)[source]
rename_session(session_path: str) → pathlib.Path[source]
transfer_folder(src: pathlib.Path, dst: pathlib.Path, force: bool = False) → None[source]
load_params_dict(params_fname: str) → dict[source]
load_videopc_params()[source]
load_ephyspc_params()[source]
create_videopc_params(force=False, silent=False)[source]
create_ephyspc_params(force=False, silent=False)[source]
confirm_video_remote_folder(local_folder=False, remote_folder=False, force=False)[source]
confirm_ephys_remote_folder(local_folder=False, remote_folder=False, force=False, iblscripts_folder=False)[source]
create_alyx_probe_insertions(session_path: str, force: bool = False, one: object = None, model: str = None, labels: list = None)[source]
create_ephys_flags(session_folder: str)[source]
create_ephys_transfer_done_flag(session_folder: str) → None[source]
create_video_transfer_done_flag(session_folder: str) → None[source]
check_create_raw_session_flag(session_folder: str) → None[source]
rename_ephys_files(session_folder: str) → None[source]

rename_ephys_files is system agnostic (3A, 3B1, 3B2). Renames all ephys files to Alyx compatible filenames. Uses get_new_filename.

Parameters

session_folder (str) – Session folder path

Returns

None - Changes names of files on filesystem

Return type

None

get_new_filename(filename: str) → str[source]

get_new_filename is system agnostic (3A, 3B1, 3B2). Gets an alyx compatible filename from any spikeglx ephys file.

Parameters

filename (str) – Name of an ephys file

Returns

New name for ephys file

Return type

str

move_ephys_files(session_folder: str) → None[source]

move_ephys_files is system agnostic (3A, 3B1, 3B2). Moves all properly named ephys files to appropriate locations for transfer. Use rename_ephys_files function before this one.

Parameters

session_folder (str) – Session folder path

Returns

None - Moves files on filesystem

Return type

None

create_custom_ephys_wirings(iblscripts_folder: str)[source]
get_iblscripts_folder()[source]
copy_wiring_files(session_folder, iblscripts_folder)[source]

Run after moving files to probe folders