Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Zelenka
prasopes
Commits
0910b01b
Commit
0910b01b
authored
Dec 05, 2019
by
3Yan
Browse files
Fix in annotation sequence
parent
ba099848
Changes
2
Hide whitespace changes
Inline
Side-by-side
prasopes/__init__.py
View file @
0910b01b
...
...
@@ -12,7 +12,7 @@ from . import zcetools
from
.
import
zcetools_help
__version__
=
"0.0.1
6
"
__version__
=
"0.0.1
7
"
__all__
=
[
'config'
,
'datatools'
,
'docks'
,
'drltools'
,
'filetools'
,
...
...
prasopes/graphtools.py
View file @
0910b01b
...
...
@@ -349,11 +349,11 @@ def ann_spec(ms_spec, msdata, ann_limit=0.01):
reduced to a representation of the important ones by the sub_peaks
function"""
def
sub_peaks
(
peakz
,
hardpeaks
,
xrange
,
yrange
,
coef_x
=
1
0
,
coef_y
=
1
0
):
def
sub_peaks
(
peakz
,
hardpeaks
,
xrange
,
yrange
,
coef_x
=
1
5
,
coef_y
=
2
0
):
"""Returns reasonable subselection of local maximas"""
hardxy
=
np
.
array
([
i
.
xy
for
i
in
hardpeaks
],
dtype
=
[
(
'x'
,
np
.
float32
),
(
'y'
,
np
.
float32
)])
sort_peaks
=
np
.
flipud
(
np
.
sort
(
np
.
array
(
peakz
))).
copy
()
sort_peaks
=
np
.
flipud
(
np
.
sort
(
np
.
array
(
peakz
)
,
order
=
'y'
)).
copy
()
red_x
=
xrange
/
coef_x
red_y
=
yrange
/
coef_y
big_peaks
=
np
.
array
([],
dtype
=
[(
'x'
,
np
.
float32
),
(
'y'
,
np
.
float32
)])
...
...
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