Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swain Lab
aliby
alibylite
Commits
dab393d6
Commit
dab393d6
authored
3 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
rm unused imports
parent
70c99a84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extraction/core/extractor.py
+1
-12
1 addition, 12 deletions
extraction/core/extractor.py
with
1 addition
and
12 deletions
extraction/core/extractor.py
+
1
−
12
View file @
dab393d6
import
os
from
pathlib
import
Path
,
PosixPath
from
collections.abc
import
Iterable
import
logging
from
time
import
perf_counter
# from copy import copy
from
typing
import
Union
,
List
,
Dict
,
Callable
from
datetime
import
datetime
import
numpy
as
np
import
pandas
as
pd
from
scipy.sparse
import
dok_matrix
,
vstack
,
issparse
from
tqdm
import
tqdm
from
extraction.core.functions.loaders
import
(
load_funs
,
...
...
@@ -30,15 +21,13 @@ from agora.io.writer import Writer, load_attributes
from
agora.io.cells
import
CellsLinear
from
aliby.tile.tiler
import
Tiler
import
matplotlib.pyplot
as
plt
CELL_FUNS
,
TRAPFUNS
,
FUNS
=
load_funs
()
CUSTOM_FUNS
,
CUSTOM_ARGS
=
load_custom_args
()
RED_FUNS
=
load_redfuns
()
MERGE_FUNS
=
load_mergefuns
()
# Assign datatype depending on the metric used
m2type
=
{
"
mean
"
:
np
.
float32
,
"
median
"
:
np
.
ubyte
,
"
imBackground
"
:
np
.
ubyte
}
#
m2type = {"mean": np.float32, "median": np.ubyte, "imBackground": np.ubyte}
class
ExtractorParameters
(
ParametersABC
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment