diff --git a/python/obitools3/commands/ngsfilter.pyx b/python/obitools3/commands/ngsfilter.pyx old mode 100755 new mode 100644 index d09eae9..c7ea1e9 --- a/python/obitools3/commands/ngsfilter.pyx +++ b/python/obitools3/commands/ngsfilter.pyx @@ -335,13 +335,18 @@ cdef tuple annotate(sequences, infos, no_tags, verbose=False): final_sequence[b'reverse_match']=match.seq # Keep only paired reverse primer - infos = infos[directmatch[0]] + infos = infos[directmatch[0]] + rev_prim = list(infos.keys())[0] # If not aligned, look for other match in already computed matches (choose the one that makes the biggest amplicon) if not_aligned: i=1 # TODO comment - while i1: - final_sequence[b'error']=b'multiple samples match tags' + final_sequence[b'error']=b'Did not found reverse tag' return False, final_sequence else: sample=None @@ -455,13 +460,13 @@ cdef tuple annotate(sequences, infos, no_tags, verbose=False): if len(s)==1: sample=s[0] elif len(s)>1: - final_sequence[b'error']=b'multiple samples match tags' + final_sequence[b'error']=b'Did not found forward tag' return False, final_sequence else: sample=None if sample is None: - final_sequence[b'error']=b"Cannot assign sequence to a sample" + final_sequence[b'error']=b"No tags found" return False, final_sequence final_sequence.update(sample) diff --git a/python/obitools3/version.py b/python/obitools3/version.py index bb3af35..09a07ad 100755 --- a/python/obitools3/version.py +++ b/python/obitools3/version.py @@ -1,5 +1,5 @@ major = 3 minor = 0 -serial= '0-beta1' +serial= '0-beta2' version ="%d.%02d.%s" % (major,minor,serial) diff --git a/setup.py b/setup.py index c599f22..6a83703 100755 --- a/setup.py +++ b/setup.py @@ -83,7 +83,7 @@ def findPackage(root,base=None): PACKAGE = "OBITools3" -VERSION = "3.0.0-beta1" +VERSION = "3.0.0-beta2" AUTHOR = 'Celine Mercier' EMAIL = 'celine.mercier@metabarcoding.org' URL = "http://metabarcoding.org/obitools3"