Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yoann DUFRESNE
linked reads molecule ordering
Commits
27d8a351
Commit
27d8a351
authored
Apr 02, 2020
by
Yoann Dufresne
Browse files
bugfix: minimize the index size for small d-graph values
parent
51f71fb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
deconvolution/dgraph/VariableDGIndex.py
View file @
27d8a351
...
...
@@ -17,6 +17,6 @@ class VariableDGIndex(AbstractDGIndex):
def
add_dgraph
(
self
,
dg
):
barcodes
=
dg
.
node_set
for
size
in
range
(
len
(
barcodes
)
-
self
.
size
,
len
(
barcodes
)
+
1
):
for
size
in
range
(
max
(
1
,
len
(
barcodes
)
-
self
.
size
)
,
len
(
barcodes
)
+
1
):
for
tup
in
combinations
(
barcodes
,
size
):
self
.
add_value
(
frozenset
(
tup
),
dg
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment