Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LightMotif
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Martin Larralde
LightMotif
Commits
9b24165a
Commit
9b24165a
authored
9 months ago
by
Martin Larralde
Browse files
Options
Downloads
Patches
Plain Diff
Hotfix issue with alignment of data in AVX2 code
parent
ed79dd5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lightmotif/src/pli/platform/avx2.rs
+1
-1
1 addition, 1 deletion
lightmotif/src/pli/platform/avx2.rs
lightmotif/src/pwm.rs
+14
-2
14 additions, 2 deletions
lightmotif/src/pwm.rs
with
15 additions
and
3 deletions
lightmotif/src/pli/platform/avx2.rs
+
1
−
1
View file @
9b24165a
...
...
@@ -151,7 +151,7 @@ unsafe fn score_avx2_permute<A>(
let
x3
=
_mm256_shuffle_epi8
(
x
,
m3
);
let
x4
=
_mm256_shuffle_epi8
(
x
,
m4
);
// load row for current weight matrix position
let
t
=
_mm256_load_ps
(
pssmptr
);
let
t
=
_mm256_load
u
_ps
(
pssmptr
);
// index A/T/G/C/N lookup table with the bases
let
b1
=
_mm256_permutevar8x32_ps
(
t
,
x1
);
let
b2
=
_mm256_permutevar8x32_ps
(
t
,
x2
);
...
...
This diff is collapsed.
Click to expand it.
lightmotif/src/pwm.rs
+
14
−
2
View file @
9b24165a
...
...
@@ -93,6 +93,12 @@ impl<A: Alphabet> CountMatrix<A> {
// }
}
/// The length of the motif encoded in this count matrix.
#[inline]
pub
const
fn
len
(
&
self
)
->
usize
{
self
.data
.rows
()
}
/// Create a new count matrix from the given sequences.
///
/// # Errors
...
...
@@ -233,6 +239,12 @@ impl<A: Alphabet> FrequencyMatrix<A> {
}
}
/// The length of the motif encoded in this frequency matrix.
#[inline]
pub
const
fn
len
(
&
self
)
->
usize
{
self
.data
.rows
()
}
/// Create a new frequency matrix.
///
/// The matrix must contain frequency data, i.e. rows should all sum to 1
...
...
@@ -331,7 +343,7 @@ impl<A: Alphabet> WeightMatrix<A> {
/// The length of the motif encoded in this weight matrix.
#[inline]
pub
fn
len
(
&
self
)
->
usize
{
pub
const
fn
len
(
&
self
)
->
usize
{
self
.data
.rows
()
}
...
...
@@ -445,7 +457,7 @@ impl<A: Alphabet> ScoringMatrix<A> {
/// The length of the motif encoded in this scoring matrix.
#[inline]
pub
fn
len
(
&
self
)
->
usize
{
pub
const
fn
len
(
&
self
)
->
usize
{
self
.data
.rows
()
}
...
...
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