Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
adrien
pyFastq
Commits
600e2f27
Commit
600e2f27
authored
Apr 02, 2015
by
Adrien Leger
Browse files
test
parent
9b606668
Changes
1
Hide whitespace changes
Inline
Side-by-side
FastqSeq.py
View file @
600e2f27
...
...
@@ -42,12 +42,15 @@ class FastqSeq (object):
if
type
(
qual
)
==
str
:
self
.
qual
=
np
.
array
([
ord
(
x
)
-
33
for
x
in
qual
])
print
(
"Str type"
)
elif
type
(
qual
)
==
np
.
ndarray
:
self
.
qual
=
qual
print
(
"ndarray type"
)
elif
type
(
qual
)
==
list
:
self
.
qual
=
np
.
array
(
qual
)
print
(
"list type"
)
else
:
raise
TypeError
(
"qual is not a valid type : str, numpy.ndarray or list of int"
)
...
...
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