<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Demo of how to use the program for deconvolving your data.

The demo is using a small dataset of 110 neurons, recorded simultaneously in a single FOV.
Recording rate: 28 Hz (resonant scanning).
Brain area: area Dp (piriform cortex homolog) and area Dl (hippocampal homolog) in adult zebrafish (brain explant, room temperature).
Calcium indicator: GCaMP6f, expressed using a NeuroD promotor fragment (https://www.osapublishing.org/boe/abstract.cfm?uri=boe-7-5-1656 for details).
Recording duration: ca. 3 minutes.
Only spontaneous activity.

@author: <NAME>, <EMAIL>
"""

import numpy as np
import scipy.io as sio
import matplotlib.pyplot as plt
from elephant.utils2 import extract_stats, genhurst, map_between_spaces
from elephant.c2s_preprocessing import preprocess, percentile_filter


# PART 0. Preliminaries.


#_____Load data_____________________________________________________
# Load your calcium imaging data (modify according to your needs)

# load dataset as a simple 2D matrix, here using a mat file
trace = sio.loadmat('demo_dataset/Adult_zebrafish_110neurons.mat')['FFF']<commit_msg>Typo correction<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Demo of how to use the program for deconvolving your data.

The demo is using a small dataset of 110 neurons, recorded simultaneously in a single FOV.
Recording rate: 28 Hz (resonant scanning).
Brain area: area Dp (piriform cortex homolog) and area Dl (hippocampal homolog) in adult zebrafish (brain explant, room temperature).
Calcium indicator: GCaMP6f, expressed using a NeuroD promotor fragment (https://www.osapublishing.org/boe/abstract.cfm?uri=boe-7-5-1656 for details).
Recording duration: ca. 3 minutes.
Only spontaneous activity.

@author: <NAME>, <EMAIL>
"""

import numpy as np
import scipy.io as sio
import matplotlib.pyplot as plt
from elephant.utils2 import extract_stats, genhurst, map_between_spaces
from elephant.utils import norm
from elephant.c2s_preprocessing import preprocess, percentile_filter


# PART 0. Preliminaries.


#_____Load data_____________________________________________________
# Load your calcium imaging data (modify according to your needs)

# load dataset as a simple 2D matrix, here using a mat file
trace = sio.loadmat('demo_dataset/Adult_zebrafish_110neurons.mat')['FFF']
{'fraction_non_alphanumeric': 0.0818490245971162, 'fraction_numerical': 0.018659881255301103, 'mean_word_length': 5.3584905660377355, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1702137', 'n_tokens_mistral': 769, 'n_tokens_neox': 685, 'n_words': 266}