Commit 600e2f27 authored by Adrien Leger's avatar Adrien Leger
Browse files

test

parent 9b606668
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment