Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #72

Merged
merged 246 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
ce762e6
Create manifold_figure.py
mschart Jun 7, 2022
6a121fd
Update manifold_figure.py
mschart Jun 7, 2022
ffefea2
Rename manifold_figure.py to figure_5_manifold.py
mschart Jun 9, 2022
4336843
Update figure_5_manifold.py
mschart Jun 20, 2022
ebe1749
Update figure_5_manifold.py
mschart Jun 24, 2022
8dc6d11
include impostor and pseudo control
mschart Jun 27, 2022
0933654
Update figure_5_manifold.py
mschart Jul 15, 2022
640ee8b
Add files via upload
mschart Jul 19, 2022
6d04781
Rename motor_correlates_prior.py to fig2_motor_correlates_prior.py
mschart Jul 19, 2022
a489852
Rename figure_5_manifold.py to fig6_manifold.py
mschart Jul 19, 2022
d4e89eb
Update fig6_manifold.py
mschart Jul 21, 2022
4c430e2
Update fig6_manifold.py
mschart Jul 25, 2022
4a4e00a
nicer main figure aesthetics; supp figures update
mschart Jul 28, 2022
f7187e4
Update fig6_manifold.py
mschart Aug 11, 2022
ec78daf
Update fig2_motor_correlates_prior.py
mschart Sep 6, 2022
b1d1416
Update and rename fig6_manifold.py to fig_manifold.py
mschart Sep 7, 2022
4563bee
Rename fig2_motor_correlates_prior.py to fig_motor_correlates_prior.py
mschart Sep 7, 2022
dea5580
Update fig_manifold.py
mschart Sep 13, 2022
9ac2eed
Update fig_manifold.py
mschart Sep 14, 2022
aa2e32f
Update fig_manifold.py
mschart Sep 14, 2022
bd15b4a
Update fig_manifold.py
mschart Sep 16, 2022
8b4c33b
update data loading
mschart Sep 20, 2022
db4efc5
Update fig_manifold.py
mschart Sep 21, 2022
92c2119
Add files via upload
yanliangshi Sep 22, 2022
4657707
reverting back to old loaders as bin2d function fails
mschart Sep 22, 2022
97e4e05
Rename brainwidemap/fig_manifold.py to brainwidemap/manifold/fig_mani…
mschart Sep 23, 2022
b150194
Rename brainwidemap/fig_motor_correlates_prior.py to brainwidemap/mot…
mschart Sep 23, 2022
57b4917
Update fig_manifold.py
mschart Sep 26, 2022
9b83916
Update fig_manifold.py
mschart Sep 26, 2022
b46873a
Update fig_manifold.py
mschart Sep 26, 2022
61799b6
Update fig_manifold.py
mschart Sep 26, 2022
7ab3840
Update fig_manifold.py
mschart Sep 27, 2022
5ebf97c
update supp figs
mschart Sep 27, 2022
a5c9161
Update fig_manifold.py
mschart Sep 29, 2022
9fa5292
Add files via upload
mschart Oct 3, 2022
f711578
Update fig_manifold.py
mschart Oct 6, 2022
37038a1
aesthetics, change example regions
mschart Oct 7, 2022
ce43f40
Add files via upload
yanliangshi Oct 11, 2022
d198e24
Delete Working_example_choice.py
yanliangshi Oct 11, 2022
e0acc27
Add files via upload
yanliangshi Oct 11, 2022
efa7ab1
Add files via upload
yanliangshi Oct 11, 2022
69fc277
Delete bwm_sess_regions.csv
mschart Oct 12, 2022
508167d
Add files via upload
mschart Oct 12, 2022
b969173
update stats, plotting, exclude right hemisphere regions
mschart Oct 13, 2022
2bcdee5
Update session loaders
mschart Oct 18, 2022
56a18f0
Update fig_motor_correlates_prior.py
mschart Oct 18, 2022
d0b069e
Update fig_motor_correlates_prior.py
mschart Oct 18, 2022
d6dcd59
Add files via upload
mschart Oct 19, 2022
08b7476
change randomisation to Yanliang's method
mschart Oct 27, 2022
b4f8fbe
Update fig_manifold.py
mschart Oct 27, 2022
08c7909
Update fig_manifold.py
mschart Oct 27, 2022
8d146c2
Update fig_manifold.py
mschart Oct 27, 2022
a561b7e
Update fig2_single_cell_Working_example_choice.py
yanliangshi Oct 31, 2022
685f013
Update fig2_single_cell_Working_example_stimulus.py
yanliangshi Oct 31, 2022
a73feb1
Update fig_manifold.py
mschart Nov 2, 2022
72aca9a
change shuffle method for controls
mschart Nov 3, 2022
92bdecb
fix shuffle counter
mschart Nov 3, 2022
4969242
update plotting
mschart Nov 4, 2022
015233d
Update fig_motor_correlates_prior.py
mschart Nov 7, 2022
4ee33dd
Update meta_BWM.py
mschart Nov 7, 2022
da83bc0
Euclidean distance on full cell space
mschart Nov 14, 2022
f48594c
divide by neuron number
mschart Nov 14, 2022
295d1a2
chunk up processing, clean up paths
mschart Nov 18, 2022
fad9344
Update fig_manifold.py
mschart Nov 18, 2022
546b8a9
Update meta_BWM.py
mschart Nov 21, 2022
bd7c6ac
Update meta_BWM.py
mschart Nov 22, 2022
b724a84
Update meta_BWM.py
mschart Nov 28, 2022
8124799
update p-value computation in PSTH_pseudo
mschart Dec 14, 2022
b935eb3
add grand average figure
mschart Dec 14, 2022
876ef72
Update fig_manifold.py
mschart Dec 14, 2022
5eecebb
Add files via upload
yanliangshi Dec 16, 2022
b72d498
Update BWM_brain_slice_plot.py
yanliangshi Dec 16, 2022
86f1c72
Update fig_manifold.py
mschart Dec 19, 2022
22a60ef
include lick alignment option
mschart Dec 21, 2022
9d5e3fd
Update fig_manifold.py
mschart Jan 9, 2023
0f260fc
Update meta_BWM.py
mschart Jan 9, 2023
253fc26
Update fig_motor_correlates_prior.py
mschart Jan 9, 2023
0fa7fcb
Update fig_motor_correlates_prior.py
mschart Jan 9, 2023
eff3065
Update fig_motor_correlates_prior.py
mschart Jan 10, 2023
4865de2
Merge branch 'main' into develop
oliche Jan 10, 2023
abf503a
add requirements to run imports
oliche Jan 10, 2023
6167e6b
Add files via upload
mschart Jan 11, 2023
4a67c34
Delete 158d5d35-a2ab-4a76-87b0-51048c5d5283_left.npy
mschart Jan 11, 2023
536a7cf
Add files via upload
mschart Jan 11, 2023
8e37fa1
Add files via upload
mschart Jan 11, 2023
3a586df
Add files via upload
mschart Jan 11, 2023
533cc08
Update README.md
mschart Jan 11, 2023
01cdacc
Update README.md
mschart Jan 11, 2023
46050cf
taking Matt's feedback into account
mschart Jan 11, 2023
604dcd4
removed some unused functions; flaked
mschart Jan 13, 2023
330acb5
load image from current directory
mschart Jan 13, 2023
a737726
Update README.md
mschart Jan 13, 2023
b025688
Rename fig_manifold.py to state_space_bwm.py
mschart Jan 17, 2023
96a30ff
Create README.md
mschart Jan 17, 2023
83ef80b
Update README.md
mschart Jan 17, 2023
485a046
Update meta_BWM.py
mschart Jan 18, 2023
ffe8c9f
Update state_space_bwm.py
mschart Jan 21, 2023
ec7873f
Update state_space_bwm.py
mschart Jan 23, 2023
11957ab
Update BWM_brain_slice_plot.py
yanliangshi Jan 23, 2023
4851dd8
Update BWM_brain_slice_plot.py
yanliangshi Jan 23, 2023
970c23b
include grand average metrics in d_var_stacked
mschart Jan 25, 2023
8d00c6b
clean up plot_all, transpose panels
mschart Jan 25, 2023
1ff3d90
clean up unused functions, flake8
mschart Jan 25, 2023
f3af5b8
Update state_space_bwm.py
mschart Jan 25, 2023
b2ada8e
Update state_space_bwm.py
mschart Jan 26, 2023
2165a35
Update BWM_brain_slice_plot.py
yanliangshi Jan 27, 2023
b12aea2
Update fig2_single_cell_Working_example_stimulus.py
yanliangshi Jan 27, 2023
681375f
Update meta_BWM.py
mschart Feb 1, 2023
c01932a
add back swanson supp figure
mschart Feb 1, 2023
61b075d
generalise plot_all to custom splits
mschart Feb 2, 2023
5d81870
Add files via upload
yanliangshi Feb 2, 2023
3aed83b
Update Colormap_example.py
yanliangshi Feb 2, 2023
07b9dd4
add normalisation option to curves, eucn, varn
mschart Feb 2, 2023
6b67237
Update meta_BWM.py
mschart Feb 6, 2023
072a879
Update state_space_bwm.py
mschart Feb 8, 2023
a9ea5d1
Update BWM_brain_slice_plot.py
yanliangshi Feb 9, 2023
dc2fa7a
Update state_space_bwm.py
mschart Feb 16, 2023
c0cf263
include load_trials_and_mask
mschart Feb 23, 2023
0589b09
add colorbars to swansons
mschart Feb 24, 2023
c246e71
Update fig2_single_cell_Working_example_choice.py
yanliangshi Feb 24, 2023
870dcb9
Update fig2_single_cell_Working_example_choice.py
yanliangshi Feb 24, 2023
b69fd4d
Update meta_BWM.py
mschart Mar 1, 2023
3da236d
Update meta_BWM.py
mschart Mar 1, 2023
da7f490
add region illustration plot
mschart Mar 3, 2023
75c59a2
Create BWM_results_preprocessing.ipynb
mschart Mar 7, 2023
2495f67
Add files via upload
mschart Mar 7, 2023
fa161d3
Add files via upload
mschart Mar 7, 2023
79e315e
Rename brainwidemap/meta_BWM.py to brainwidemap/meta/scatter_plots.py
mschart Mar 7, 2023
1c3ddf6
plot_swanson_vector instead of plot_swanson
mschart Mar 7, 2023
166e0ba
Create fig2_single_cell_Working_example_feedback.py
yanliangshi Mar 17, 2023
0f4a430
Add files via upload
mschart Mar 18, 2023
56ca5a9
Delete table.csv
mschart Mar 18, 2023
0ffccb2
Delete bwm_sess_regions.csv
mschart Mar 18, 2023
da5eb29
Add files via upload
mschart Mar 18, 2023
a0ff1a0
Rename table.csv to region_names.csv
mschart Mar 18, 2023
ce068f5
Delete region_names.csv
mschart Mar 18, 2023
27238da
Add files via upload
mschart Mar 18, 2023
dac60d8
Delete table.csv
mschart Mar 18, 2023
94cb851
Add files via upload
mschart Mar 18, 2023
b466a89
restrict to canonical set of cells: restr=True
mschart Mar 29, 2023
6ef7b75
Add files via upload
mschart Apr 12, 2023
7715ec9
Update meta_bwm.py
mschart Apr 18, 2023
0e78e29
use relative path to module so that copy/pasted functions still work
oliche Apr 20, 2023
21063c5
Merge branch 'main' into develop
oliche Apr 20, 2023
3d5d51d
Update fig2_single_cell_Working_example_choice.py
yanliangshi Apr 21, 2023
796bfd6
Update fig2_single_cell_Working_example_block.py
yanliangshi Apr 21, 2023
89a4373
FDR correction of p-values across regions
mschart May 2, 2023
8eec5f3
avoid repro dependence of bin_spike2D
mschart May 2, 2023
5960819
Update state_space_bwm.py
mschart May 2, 2023
2499441
Merge branch 'main' into develop
juhuntenburg May 2, 2023
b6bf0b1
remove duplicate fig2 scripts now in single_cell_stats
juhuntenburg May 2, 2023
b1e57e5
Delete brainwidemap/meta/Results directory
mschart May 3, 2023
efca7e7
Delete BWM_results_preprocessing.ipynb
mschart May 3, 2023
a953452
Delete brainwidemap/meta directory
mschart May 3, 2023
f5317e4
Create meta_bwm.py
mschart May 3, 2023
e14a89d
remove silent=True
chris-langfield May 3, 2023
e85bfa6
use SessionLoader instead of load_dataset
chris-langfield May 3, 2023
aa786e2
Merge branch 'main' into develop
juhuntenburg May 3, 2023
84f43a8
reorganizing
juhuntenburg May 3, 2023
320c772
revert some small changes
juhuntenburg May 3, 2023
d8307a3
set back to main
juhuntenburg May 3, 2023
833c6d4
move intro_figure_example_time_series.py into meta/
chris-langfield May 3, 2023
1e86843
get me from SessionLoader
chris-langfield May 3, 2023
73e3269
SessionLoader instantiation
chris-langfield May 3, 2023
50b8a66
only one SessionLoader
chris-langfield May 3, 2023
e88c814
load trial data from SessionLoader
chris-langfield May 3, 2023
87f765b
example_block_structure use SL
chris-langfield May 3, 2023
fa3886e
wheel with SL
chris-langfield May 3, 2023
5c07b5f
change saving of precomputed arrays with pickle instead of np
chris-langfield May 3, 2023
ca65ccb
add plt.show() calls and call method to create second figure
chris-langfield May 3, 2023
6bc9040
SessionLoader.wheel already interpolates, remove wheel pos interpolat…
chris-langfield May 3, 2023
7f91b10
Add files via upload
mschart May 4, 2023
ba893c9
Add files via upload
mschart May 4, 2023
fda3deb
move fig_motor_correlates_prior to meta/
chris-langfield May 4, 2023
ee78d30
add .npy file for motor correlates figure script to meta/
chris-langfield May 4, 2023
164d205
deleted files instead of moving
chris-langfield May 4, 2023
5d4baa5
move motor correlates files and delete README
chris-langfield May 4, 2023
e0a7e3e
add info from readme to top of script
chris-langfield May 4, 2023
c3b6c09
remove unused method
chris-langfield May 4, 2023
abf437e
put eid at the top of the script
chris-langfield May 4, 2023
711ca87
main example eid passed to functions, qc no longer relies on hitting …
chris-langfield May 4, 2023
c7296c5
update examples and README
juhuntenburg May 4, 2023
9b6419c
Update intro_figure_example_time_series.py
mschart May 5, 2023
10aab18
Make table runnable
mschart May 5, 2023
8f4b419
remove surplus file
juhuntenburg May 5, 2023
7670a11
check for cached behav file before creating
chris-langfield May 5, 2023
315d356
Merge branch 'develop' of github.com:int-brain-lab/paper-brain-wide-m…
chris-langfield May 5, 2023
55fa9be
pass sessionloader as param from main block
chris-langfield May 5, 2023
e0fcf2d
Merge branch 'main' into develop
juhuntenburg May 8, 2023
957fff2
Update bwm_figures.py
mschart May 9, 2023
2354bdc
Update bwm_figures.py
mschart May 9, 2023
94a921b
integrate Brandon's panels
mschart Jun 1, 2023
227fb5c
Update bwm_figs.py
mschart Jun 1, 2023
3558f39
Update bwm_figs.py
mschart Jun 2, 2023
fc0ba19
make it possible to choose qc value for load good units
juhuntenburg Jun 2, 2023
81ab0ba
Merge branch 'develop' of https://github.com/int-brain-lab/paper-brai…
juhuntenburg Jun 2, 2023
3e2cb2b
make tight_layout work, update data loading
mschart Jun 27, 2023
40c4f83
Update bwm_figs.py
mschart Jun 27, 2023
95ceb5c
add panel labels
mschart Jun 27, 2023
156b7b6
Update bwm_figs.py
mschart Jan 25, 2024
e3a9106
Merge pull request #59 from int-brain-lab/mschart-patch-1
mschart Jan 29, 2024
52b470d
Update bwm_figs.py
mschart Jan 29, 2024
d66475f
Update bwm_figs.py
mschart Feb 2, 2024
8a8ce5e
table of granger
mschart Feb 12, 2024
c6311e2
Update bwm_figs.py
mschart Feb 19, 2024
992fe90
Update bwm_figs.py
mschart Feb 27, 2024
3335dbe
Update bwm_figs.py
mschart Feb 28, 2024
fd850a1
Update bwm_figs.py
mschart Mar 1, 2024
d6ad77f
Update bwm_figs.py
mschart Mar 8, 2024
5cfef4c
Update bwm_figs.py
mschart Mar 8, 2024
b62627c
Update bwm_figs.py
mschart Mar 11, 2024
6571fb3
Rename brainwidemap/meta/Results/block.pkl to brainwidemap/meta/Resul…
mschart Mar 12, 2024
8d6504f
Rename brainwidemap/meta/Results/choice.pkl to brainwidemap/meta/Resu…
mschart Mar 12, 2024
573d328
Rename brainwidemap/meta/Results/old/block.pkl to brainwidemap/meta/R…
mschart Mar 12, 2024
fd02290
Rename brainwidemap/meta/Results/fback.pkl to brainwidemap/meta/Resul…
mschart Mar 12, 2024
c242a1c
Rename brainwidemap/meta/Results/stim.pkl to brainwidemap/meta/Result…
mschart Mar 12, 2024
eb6a7c0
Rename brainwidemap/meta/Results/old/old/block.pkl to brainwidemap/me…
mschart Mar 12, 2024
1c71f86
Add files via upload
mschart Mar 12, 2024
0d13b69
Update bwm_figs.py
mschart Mar 12, 2024
f2ab1cc
Update raster to use plt.scatter
mschart Mar 12, 2024
eab55bf
Add all swanson SI plotting
mschart Mar 13, 2024
173802a
better layout
mschart Mar 13, 2024
cfea141
Update bwm_figs.py
mschart Mar 13, 2024
a7d1bc7
Update bwm_figs.py
mschart Mar 22, 2024
037dc4d
add wheel figure
mschart Mar 25, 2024
3e72446
Add slice SI figure function
mschart Mar 26, 2024
4812930
Update bwm_figs.py
mschart Mar 26, 2024
fdea7bc
include Matt's wheel SI
mschart Mar 27, 2024
b437acb
Update bwm_loading.py
mschart May 31, 2024
b58a3ed
Merge remote-tracking branch 'origin/main' into develop
oliche Jun 6, 2024
cecac22
refactor ibllib.atlas to iblatlas and remove deprecation warnings
oliche Jun 4, 2024
d8ef6bc
loading good spikes only now downloads good spikes only
oliche Jun 10, 2024
41c9719
if the qc treshold is lower than one, download the full spikes
oliche Jun 10, 2024
5f30553
add the default aggregate table tag after release of new clusters pqt
oliche Jun 10, 2024
6c2bf11
change default minimum units per session from 10 to 5
oliche Jun 11, 2024
78b3c9d
Update state_space_bwm.py
mschart Jun 24, 2024
7f2859d
Update state_space_bwm.py
mschart Jun 24, 2024
427e7f2
Delete brainwidemap/meta/granger.csv
mschart Jun 28, 2024
680ead2
Add files via upload
mschart Jun 28, 2024
17e08fe
add verification of hash of clusters UUIDs that enforces cluster set
oliche Jul 1, 2024
71abd70
Update bwm_figs.py
mschart Jul 23, 2024
a3c6820
Load using revision last before
k1o0 Jul 20, 2024
89cb7bc
Update bwm_figs.py
mschart Aug 2, 2024
5fde588
Update meta_bwm.py
mschart Aug 7, 2024
9f34222
add inclusion info and statistics according to the paper
oliche Sep 11, 2024
e0b7dd8
Merge pull request #75 from int-brain-lab/freeze_data
k1o0 Jan 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions brainwidemap/bwm_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@

from brainbox.behavior import training
from brainbox.io.one import SpikeSortingLoader, SessionLoader
from ibllib.atlas.regions import BrainRegions
from iblutil.numerical import ismember
from iblatlas.atlas import BrainRegions
from iblutil.numerical import ismember, hash_uuids
from one.alf import spec
from one.remote import aws

import brainwidemap


MODIFIED_BEFORE = '2024-07-10'
"""Load data last modified before this date."""


def bwm_query(one=None, alignment_resolved=True, return_details=False, freeze='2023_12_bwm_release'):
"""
Function to query for brainwide map sessions that pass the most important quality controls. Returns a dataframe
Expand Down Expand Up @@ -137,7 +141,8 @@ def load_good_units(one, pid, compute_metrics=False, qc=1., **kwargs):
eid = kwargs.pop('eid', '')
pname = kwargs.pop('pname', '')
spike_loader = SpikeSortingLoader(pid=pid, one=one, eid=eid, pname=pname)
spikes, clusters, channels = spike_loader.load_spike_sorting()
download_good_units_only = qc >= 1.0
spikes, clusters, channels = spike_loader.load_spike_sorting(revision="2024-05-06", good_units=download_good_units_only)
clusters_labeled = SpikeSortingLoader.merge_clusters(
spikes, clusters, channels, compute_metrics=compute_metrics).to_df()
iok = clusters_labeled['label'] >= qc
Expand Down Expand Up @@ -270,7 +275,7 @@ def load_trials_and_mask(
]

if sess_loader is None:
sess_loader = SessionLoader(one=one, eid=eid)
sess_loader = SessionLoader(one=one, eid=eid, revision=MODIFIED_BEFORE)

if sess_loader.trials.empty:
sess_loader.load_trials()
Expand Down Expand Up @@ -336,7 +341,7 @@ def load_trials_and_mask(
return sess_loader.trials, mask


def download_aggregate_tables(one, target_path=None, type='clusters', tag='2023_Q4_IBL_et_al_BWM_2', overwrite=False):
def download_aggregate_tables(one, target_path=None, type='clusters', tag='2024_Q2_IBL_et_al_BWM', overwrite=False):
"""
Function to download the aggregated clusters information associated with the given data release tag from AWS.

Expand Down Expand Up @@ -525,7 +530,7 @@ def filter_sessions(eids, trials_table, bwm_include=True, min_errors=3, min_tria


def bwm_units(one=None, freeze='2023_12_bwm_release', rt_range=(0.08, 0.2), min_errors=3,
min_qc=1., min_units_sessions=(10, 2)):
min_qc=1., min_units_sessions=(5, 2), enforce_version=True):
"""
Creates a dataframe with units that pass the current BWM inclusion criteria.

Expand All @@ -546,6 +551,7 @@ def bwm_units(one=None, freeze='2023_12_bwm_release', rt_range=(0.08, 0.2), min_
If tuple, the first entry is the minimum of units per session per region for a session to be retained, the
second entry is the minimum number of those sessions per region for a region to be retained.
Default is (10, 2). If None, criterion is not applied
enforce_version: bool (True)

Returns
-------
Expand All @@ -568,6 +574,16 @@ def bwm_units(one=None, freeze='2023_12_bwm_release', rt_range=(0.08, 0.2), min_
clusters_table = download_aggregate_tables(one, type='clusters')
unit_df = filter_units_region(eids, clusters_table=clusters_table, mapping='Beryl', min_qc=min_qc,
min_units_sessions=min_units_sessions)
print(hash_uuids(unit_df['uuids']))
if freeze == '2023_12_bwm_release' and enforce_version:
if 1.0 <= min_qc:
assert hash_uuids(unit_df['uuids']) == 'd16d0b38d392b18c0ce8b615ec89d60d7c901df2eeb3432986b62130af28ef01'
elif 1 / 3 < min_qc <= 2 / 3:
assert hash_uuids(unit_df['uuids']) == '931802298e1a79df49226f4a7ff9d0d865b06102d7d0bedbd76f87f632da8fae'
elif 0 < min_qc <= 1 / 3:
assert hash_uuids(unit_df['uuids']) == 'aef0abbe1e3cb743f24d40e5d9dd3b739b57adca79af66b2d86dc618fc4b9908'
else:
assert hash_uuids(unit_df['uuids']) == '82a43bb2344a960b0f39a5c28fa56406dd5788b7946d0d178cb36205b1029b92'

return unit_df

Expand Down
2 changes: 1 addition & 1 deletion brainwidemap/decoding/functions/decoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from behavior_models.models.utils import format_data as format_data_mut
from behavior_models.models.utils import format_input as format_input_mut

from ibllib.atlas import BrainRegions
from iblatlas.atlas import BrainRegions

from brainwidemap.decoding.functions.balancedweightings import balanced_weighting
from brainwidemap.decoding.functions.process_inputs import build_predictor_matrix
Expand Down
2 changes: 1 addition & 1 deletion brainwidemap/encoding/pipelines/03_gather_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pandas as pd

# IBL libraries
from ibllib.atlas import BrainRegions
from iblatlas.atlas import BrainRegions


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions brainwidemap/encoding/pipelines/04_plot_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import seaborn as sns

# IBL libraries
from ibllib.atlas import BrainRegions
from ibllib.atlas.plots import plot_swanson
from iblatlas.atlas import BrainRegions
from iblatlas.plots import plot_swanson

# Brainwidemap repo imports
from brainwidemap.encoding.params import GLM_FIT_PATH
Expand Down
Loading