Example #1
0
import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np


dir_index = int(list(sys.argv)[1])
dirs = ["/home/camp/warnert/working/Recordings/2018_general/181205/2018-12-05_18-17-18",
        '/home/camp/warnert/working/Recordings/2019_general/190121/2019-01-21_18-10-30',
        "/home/camp/warnert/working/Recordings/2019_general/190207/2019-02-07_18-31-33",
        "/home/camp/warnert/working/Recordings/2019_general/190211/2019-02-11_16-35-46",
        "/home/camp/warnert/working/Recordings/2019_general/190704/2019-07-04_15-21-04",
        "/home/camp/warnert/working/Recordings/2019_general/190801/2019-08-01_16-38-19"]
chan_counts = [18, 18, 18, 18, 18, 32]

tc = tr.Threshold_Recording(dirs[dir_index], channel_count=chan_counts[dir_index], dat_name='dat_for_jULIE_analysis.dat')

bp_data = tc.set_threshold_crossings(return_bp=True, bp_indiv_chans=True)
tc.set_all_tcs_amplitudes(bp_data=bp_data)
# Unique spike finding for '/home/camp/warnert/working/Recordings/Correlation_project_2019/191008/2019-10-08_13-56-53'

import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm

spike_slice = int(list(sys.argv)[1])
total_slices = int(list(sys.argv)[2])

start_time = spike_slice

tc = tr.Threshold_Recording(
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191008/2019-10-08_13-56-53',
    channel_count=32)

tc.set()

slice_size = tc.rec_length / total_slices
start_time = spike_slice * slice_size
end_time = start_time + slice_size

tc.find_unique_spikes(start_time=start_time, end_time=end_time)
# Unique spike finding for '/home/camp/warnert/working/Recordings/Correlation_project_2019/191009/2019-10-09_14-48-27'

import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm

spike_slice = int(list(sys.argv)[1])
total_slices = int(list(sys.argv)[2])

start_time = spike_slice

tc = tr.Threshold_Recording(
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191009/2019-10-09_14-48-27',
    channel_count=32)

tc.set()

slice_size = tc.rec_length / total_slices
start_time = spike_slice * slice_size
end_time = start_time + slice_size

tc.find_unique_spikes(start_time=start_time, end_time=end_time)
Example #4
0
# Unique spike finding for '/home/camp/warnert/working/Recordings/Correlation_project_2019/190910/2019-09-10_12-42-15'

import sys

sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm

spike_slice = int(list(sys.argv)[1])
total_slices = int(list(sys.argv)[2])

start_time = spike_slice

tc = tr.Threshold_Recording(
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190910/2019-09-10_12-42-15',
    channel_count=32)

tc.set()

slice_size = tc.rec_length / total_slices
start_time = spike_slice * slice_size
end_time = start_time + slice_size

tc.find_unique_spikes(start_time=start_time, end_time=end_time)
import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np

recording_index = int(list(sys.argv)[1])
dirs = [
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190910/2019-09-10_12-42-15',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190911/2019-09-11_15-27-40',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190912/2019-09-12_14-55-50',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191008/2019-10-08_13-56-53',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191009/2019-10-09_14-48-27',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191010/2019-10-10_16-00-06'
]

rec_dir = dirs[recording_index]
rec = tr.Threshold_Recording(rec_dir, 32)
bp_data = rec.set_threshold_crossings(return_bp=True, bp_indiv_chans=True)
rec.set_all_tcs_amplitudes(bp_data=bp_data)
Example #6
0
# Unique spike finding for '/home/camp/warnert/working/Recordings/Correlation_project_2019/191010/2019-10-10_16-00-06'

import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm




spike_slice = int(list(sys.argv)[1])
total_slices = int(list(sys.argv)[2])

start_time = spike_slice

tc = tr.Threshold_Recording('/home/camp/warnert/working/Recordings/Correlation_project_2019/191010/2019-10-10_16-00-06', channel_count=32)

tc.set()

slice_size = tc.rec_length/total_slices
start_time = spike_slice*slice_size
end_time = start_time+slice_size

tc.find_unique_spikes(start_time=start_time, end_time=end_time)
# Unique spike finding for '/home/camp/warnert/working/Recordings/Correlation_project_2019/190912/2019-09-12_14-55-50'

import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm




spike_slice = int(list(sys.argv)[1])
total_slices = int(list(sys.argv)[2])

start_time = spike_slice

tc = tr.Threshold_Recording('/home/camp/warnert/working/Recordings/Correlation_project_2019/190912/2019-09-12_14-55-50', channel_count=32)

tc.set()

slice_size = tc.rec_length/total_slices
start_time = spike_slice*slice_size
end_time = start_time+slice_size

tc.find_unique_spikes(start_time=start_time, end_time=end_time)
Example #8
0
#setting for /home/camp/warnert/working/Recordings/2019_general/190704/2019-07-04_15-21-04

import sys

sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm

spike_slice = int(list(sys.argv)[1])
total_slices = int(list(sys.argv)[2])

start_time = spike_slice

dir = "/home/camp/warnert/working/Recordings/2019_general/190704/2019-07-04_15-21-04"

tc = tr.Threshold_Recording(dir,
                            channel_count=18,
                            dat_name='dat_for_jULIE_analysis.dat')

tc.set()

slice_size = tc.rec_length / total_slices
start_time = spike_slice * slice_size
end_time = start_time + slice_size

tc.find_unique_spikes(start_time=start_time, end_time=end_time)
import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm

recording_index = int(list(sys.argv)[1])
dirs = [
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190910/2019-09-10_12-42-15',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190911/2019-09-11_15-27-40',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190912/2019-09-12_14-55-50',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191008/2019-10-08_13-56-53',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191009/2019-10-09_14-48-27',
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/191010/2019-10-10_16-00-06'
]

tc = tr.Threshold_Recording(dirs[recording_index], channel_count=32)

tc.set()

tc.find_unique_spikes()
# Unique spike finding for '/home/camp/warnert/working/Recordings/Correlation_project_2019/190911/2019-09-11_15-27-40'

import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import os
from tqdm import tqdm

spike_slice = int(list(sys.argv)[1])
total_slices = int(list(sys.argv)[2])

start_time = spike_slice

tc = tr.Threshold_Recording(
    '/home/camp/warnert/working/Recordings/Correlation_project_2019/190911/2019-09-11_15-27-40',
    channel_count=32)

tc.set()

slice_size = tc.rec_length / total_slices
start_time = spike_slice * slice_size
end_time = start_time + slice_size

tc.find_unique_spikes(start_time=start_time, end_time=end_time)