-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
224 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,7 @@ | |
@author: Kailyn Fields, [email protected] | ||
""" | ||
|
||
__version__ = "2" | ||
__atlas__ = "azba_zfish" | ||
|
||
### Import | ||
import csv | ||
import time | ||
|
||
|
@@ -24,18 +22,22 @@ | |
from brainglobe_atlasapi.config import DEFAULT_WORKDIR | ||
from brainglobe_atlasapi.structure_tree_util import get_structures_tree | ||
|
||
### Metadata | ||
__version__ = "2" | ||
|
||
ATLAS_NAME = "azba_zfish" | ||
SPECIES = "Danio rerio" | ||
ATLAS_LINK = "http://www.azba.wayne.edu" | ||
CITATION = "Kenney et al. 2021, https://doi.org/10.7554/elife.69988" | ||
ATLAS_FILE_URL = "http://www.azba.wayne.edu/2021-08-22_AZBA.tar.gz" | ||
ORIENTATION = "las" | ||
ROOT_ID = 9999 | ||
ATLAS_PACKAGER = "Kailyn Fields, [email protected]" | ||
ADDITIONAL_METADATA = {} | ||
RESOLUTION = 4 | ||
|
||
|
||
def create_atlas(working_dir, resolution): | ||
# metadata | ||
ATLAS_NAME = "azba_zfish" | ||
SPECIES = "Danio rerio" | ||
ATLAS_LINK = "http://www.azba.wayne.edu" | ||
CITATION = "Kenney et al. 2021, https://doi.org/10.7554/elife.69988" | ||
ATLAS_FILE_URL = "http://www.azba.wayne.edu/2021-08-22_AZBA.tar.gz" | ||
ORIENTATION = "las" | ||
ROOT_ID = 9999 | ||
ATLAS_PACKAGER = "Kailyn Fields, [email protected]" | ||
ADDITIONAL_METADATA = {} | ||
|
||
working_dir = working_dir | ||
download_path = working_dir / "downloads" | ||
|
@@ -203,8 +205,6 @@ def create_atlas(working_dir, resolution): | |
|
||
|
||
if __name__ == "__main__": | ||
resolution = 4 | ||
|
||
# generated atlas path | ||
bg_root_dir = DEFAULT_WORKDIR / __atlas__ | ||
create_atlas(bg_root_dir, resolution) | ||
bg_root_dir = DEFAULT_WORKDIR / ATLAS_NAME | ||
create_atlas(bg_root_dir, RESOLUTION) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
__version__ = "0" | ||
__atlas__ = "sju_cavefish" | ||
|
||
### Import | ||
import csv | ||
import glob as glob | ||
import time | ||
from pathlib import Path | ||
|
||
|
@@ -22,18 +21,20 @@ | |
from brainglobe_atlasapi.config import DEFAULT_WORKDIR | ||
from brainglobe_atlasapi.structure_tree_util import get_structures_tree | ||
|
||
### Metadata | ||
ATLAS_NAME = "sju_cavefish" | ||
SPECIES = "Astyanax mexicanus" | ||
ATLAS_LINK = "https://a-cavefishneuroevoluti.vev.site/lab-website" | ||
CITATION = "Kozol et al. 2023, https://doi.org/10.7554/eLife.80777" | ||
ATLAS_FILE_URL = "https://cdn.vev.design/private/30dLuULhwBhk45Fm8dHoSpD6uG12/35s9sm-asty-atlas.zip" | ||
ORIENTATION = "sla" | ||
ROOT_ID = 999 | ||
ATLAS_PACKAGER = "Robert Kozol, [email protected]" | ||
ADDITIONAL_METADATA = {} | ||
RESOLUTION = 2, 2, 2 | ||
|
||
def create_atlas(working_dir, resolution): | ||
ATLAS_NAME = "sju_cavefish" | ||
SPECIES = "Astyanax mexicanus" | ||
ATLAS_LINK = "https://a-cavefishneuroevoluti.vev.site/lab-website" | ||
CITATION = "Kozol et al. 2023, https://doi.org/10.7554/eLife.80777" | ||
ATLAS_FILE_URL = "https://cdn.vev.design/private/30dLuULhwBhk45Fm8dHoSpD6uG12/35s9sm-asty-atlas.zip" | ||
ORIENTATION = "sla" | ||
ROOT_ID = 999 | ||
ATLAS_PACKAGER = "Robert Kozol, [email protected]" | ||
ADDITIONAL_METADATA = {} | ||
|
||
def create_atlas(working_dir, resolution): | ||
# setup folder for downloading | ||
|
||
download_dir_path = working_dir / "downloads" | ||
|
@@ -208,9 +209,8 @@ def create_atlas(working_dir, resolution): | |
|
||
|
||
if __name__ == "__main__": | ||
res = 2, 2, 2 | ||
home = str(Path.home()) | ||
bg_root_dir = DEFAULT_WORKDIR / __atlas__ | ||
bg_root_dir = DEFAULT_WORKDIR / ATLAS_NAME | ||
bg_root_dir.mkdir(exist_ok=True, parents=True) | ||
|
||
create_atlas(bg_root_dir, res) | ||
create_atlas(bg_root_dir, RESOLUTION) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.