Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
O
OptiMap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Akdel
OptiMap
Commits
44301e03
Commit
44301e03
authored
Nov 26, 2018
by
Akdel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no parallel
parent
4420483d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
OptiMap/pairwise.py
OptiMap/pairwise.py
+4
-4
No files found.
OptiMap/pairwise.py
View file @
44301e03
...
...
@@ -68,7 +68,7 @@ def get_multiple_products(fft_subject_molecules, fft_subject_rev_molecules, fft_
return
multiple_corr_maxes
@
nb
.
njit
(
parallel
=
Tru
e
)
@
nb
.
njit
(
parallel
=
Fals
e
)
def
numba_get_corr_maxes
(
corr_products
,
corr_maxes
):
for
i
in
nb
.
prange
(
corr_maxes
.
shape
[
0
]):
max_forward
=
np
.
max
(
corr_products
[
0
,
i
,:])
...
...
@@ -78,7 +78,7 @@ def numba_get_corr_maxes(corr_products, corr_maxes):
corr_maxes
[
i
]
=
current_max
+
difference
@
nb
.
njit
(
parallel
=
Tru
e
)
@
nb
.
njit
(
parallel
=
Fals
e
)
def
numba_get_products
(
fft_subject
,
fft_subject_rev
,
fft_molecules
,
fft_products
):
for
i
in
nb
.
prange
(
fft_molecules
.
shape
[
0
]):
numba_product
(
fft_products
[
0
][
i
],
fft_subject
,
fft_molecules
[
i
])
...
...
@@ -94,13 +94,13 @@ def numpy_ifft(fft_products):
return
np
.
fft
.
ifft
(
fft_products
).
astype
(
np
.
float64
)
@
nb
.
njit
(
parallel
=
Tru
e
)
@
nb
.
njit
(
parallel
=
Fals
e
)
def
numba_arg_sort
(
correlation_scores
,
results_array
,
limit
,
shift
):
for
i
in
nb
.
prange
(
correlation_scores
.
shape
[
0
]):
results_array
[
i
]
=
np
.
argsort
(
correlation_scores
[
i
])[::
-
1
][:
limit
]
+
shift
@
nb
.
njit
(
parallel
=
Tru
e
)
@
nb
.
njit
(
parallel
=
Fals
e
)
def
numba_normalize_molecule_correlation_array
(
correlation_array
,
maxes
,
max_range
,
mol_range
,
normalized_array
):
max_segment
=
maxes
[
max_range
[
0
]:
max_range
[
1
]]
for
i
in
nb
.
prange
(
correlation_array
.
shape
[
0
]):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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