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
49f3bc44
Commit
49f3bc44
authored
1 year ago
by
pswain
Browse files
Options
Downloads
Plain Diff
Merge branch 'picker' of gitlab.com:aliby/aliby into picker
parents
4a547de7
4b5775ee
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
src/agora/utils/indexing.py
+5
-2
5 additions, 2 deletions
src/agora/utils/indexing.py
with
5 additions
and
2 deletions
src/agora/utils/indexing.py
+
5
−
2
View file @
49f3bc44
...
@@ -19,9 +19,11 @@ def validate_association(
...
@@ -19,9 +19,11 @@ def validate_association(
"""
"""
Identify matches between two arrays by comparing rows.
Identify matches between two arrays by comparing rows.
We match lineage data on mother-bud pairs with all the cells identified to specialise to only those cells in mother-bud pairs.
We use broadcasting for speed.
We use broadcasting for speed.
Both mother and bud in association must be in indices.
Both
a
mother and bud in association must be in indices.
Parameters
Parameters
----------
----------
...
@@ -30,7 +32,8 @@ def validate_association(
...
@@ -30,7 +32,8 @@ def validate_association(
or
or
a 3D array, which is an array of 2 X 2 arrays comprising [[trap_id, mother_label], [trap_id, daughter_label]].
a 3D array, which is an array of 2 X 2 arrays comprising [[trap_id, mother_label], [trap_id, daughter_label]].
indices : np.ndarray
indices : np.ndarray
A 2D array where each column is a different level, such as (trap_id, cell_label). This array should not include mother_label.
A 2D array where each column is a different level, such as (trap_id, cell_label), which typically is an index of a Signal
dataframe. This array should not include mother_label.
match_column: int
match_column: int
If 0, matches indicate mothers from mother-bud pairs;
If 0, matches indicate mothers from mother-bud pairs;
If 1, matches indicate daughters from mother-bud pairs;
If 1, matches indicate daughters from mother-bud pairs;
...
...
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