Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
fda0edd0d8 | |||
382e37a6ae | |||
5cc3e29f75 | |||
a8e2aee281 | |||
13adb479d3 | |||
8ba7acdfe1 | |||
38051b1e4f | |||
52a2e21b38 |
@ -184,7 +184,7 @@ def Filter_generator(options, tax_filter, i_view):
|
|||||||
invert_selection = options["invert_selection"]
|
invert_selection = options["invert_selection"]
|
||||||
id_set = None
|
id_set = None
|
||||||
if "id_list" in options:
|
if "id_list" in options:
|
||||||
id_set = set(x.strip() for x in open(options["id_list"]))
|
id_set = set(x.strip() for x in open(options["id_list"], 'rb'))
|
||||||
|
|
||||||
# Initialize the regular expression patterns
|
# Initialize the regular expression patterns
|
||||||
seq_pattern = None
|
seq_pattern = None
|
||||||
|
@ -24,10 +24,6 @@ from cpython.exc cimport PyErr_CheckSignals
|
|||||||
from io import BufferedWriter
|
from io import BufferedWriter
|
||||||
|
|
||||||
|
|
||||||
#REVERSE_SEQ_COLUMN_NAME = b"REVERSE_SEQUENCE" # used by alignpairedend tool
|
|
||||||
#REVERSE_QUALITY_COLUMN_NAME = b"REVERSE_QUALITY" # used by alignpairedend tool
|
|
||||||
|
|
||||||
|
|
||||||
__title__="Assigns sequence records to the corresponding experiment/sample based on DNA tags and primers"
|
__title__="Assigns sequence records to the corresponding experiment/sample based on DNA tags and primers"
|
||||||
|
|
||||||
|
|
||||||
|
@ -442,7 +442,7 @@ def addOptions(parser):
|
|||||||
default=20,
|
default=20,
|
||||||
type=int,
|
type=int,
|
||||||
help="Maximum length of tuples. "
|
help="Maximum length of tuples. "
|
||||||
"Default: 50")
|
"Default: 20")
|
||||||
|
|
||||||
group.add_argument('--max_ini_col_count','-o',
|
group.add_argument('--max_ini_col_count','-o',
|
||||||
action="store", dest="test:maxinicolcount",
|
action="store", dest="test:maxinicolcount",
|
||||||
@ -455,7 +455,7 @@ def addOptions(parser):
|
|||||||
group.add_argument('--max_line_nb','-l',
|
group.add_argument('--max_line_nb','-l',
|
||||||
action="store", dest="test:maxlinenb",
|
action="store", dest="test:maxlinenb",
|
||||||
metavar='<MAX_LINE_NB>',
|
metavar='<MAX_LINE_NB>',
|
||||||
default=10000,
|
default=1000,
|
||||||
type=int,
|
type=int,
|
||||||
help="Maximum number of lines in a column. "
|
help="Maximum number of lines in a column. "
|
||||||
"Default: 1000")
|
"Default: 1000")
|
||||||
|
@ -805,7 +805,7 @@ cdef class Line :
|
|||||||
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return bytes2str(self).repr_bytes()
|
return bytes2str(self.repr_bytes())
|
||||||
|
|
||||||
|
|
||||||
cpdef repr_bytes(self):
|
cpdef repr_bytes(self):
|
||||||
|
@ -23,9 +23,8 @@ cdef class TabFormat:
|
|||||||
if self.first_line:
|
if self.first_line:
|
||||||
self.tags = [k for k in data.keys()]
|
self.tags = [k for k in data.keys()]
|
||||||
|
|
||||||
for k in self.tags:
|
|
||||||
|
|
||||||
if self.header and self.first_line:
|
if self.header and self.first_line:
|
||||||
|
for k in self.tags:
|
||||||
if isinstance(data.view[k], Column_multi_elts):
|
if isinstance(data.view[k], Column_multi_elts):
|
||||||
keys = data.view[k].keys()
|
keys = data.view[k].keys()
|
||||||
keys.sort()
|
keys.sort()
|
||||||
@ -33,7 +32,11 @@ cdef class TabFormat:
|
|||||||
line.append(tobytes(k)+b':'+tobytes(k2))
|
line.append(tobytes(k)+b':'+tobytes(k2))
|
||||||
else:
|
else:
|
||||||
line.append(tobytes(k))
|
line.append(tobytes(k))
|
||||||
else:
|
r = self.sep.join(value for value in line)
|
||||||
|
r += b'\n'
|
||||||
|
line = []
|
||||||
|
|
||||||
|
for k in self.tags:
|
||||||
value = data[k]
|
value = data[k]
|
||||||
if isinstance(data.view[k], Column_multi_elts):
|
if isinstance(data.view[k], Column_multi_elts):
|
||||||
keys = data.view[k].keys()
|
keys = data.view[k].keys()
|
||||||
@ -53,7 +56,12 @@ cdef class TabFormat:
|
|||||||
else:
|
else:
|
||||||
line.append(self.NAString)
|
line.append(self.NAString)
|
||||||
|
|
||||||
|
if self.header and self.first_line:
|
||||||
|
r += self.sep.join(value for value in line)
|
||||||
|
else:
|
||||||
|
r = self.sep.join(value for value in line)
|
||||||
|
|
||||||
if self.first_line:
|
if self.first_line:
|
||||||
self.first_line = False
|
self.first_line = False
|
||||||
|
|
||||||
return self.sep.join(value for value in line)
|
return r
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
major = 3
|
major = 3
|
||||||
minor = 0
|
minor = 0
|
||||||
serial= '0b37'
|
serial= '0b41'
|
||||||
|
|
||||||
version ="%d.%d.%s" % (major,minor,serial)
|
version ="%d.%d.%s" % (major,minor,serial)
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
bool volatile keep_running;
|
extern bool volatile keep_running;
|
||||||
void sig_handler(int signum);
|
void sig_handler(int signum);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user