Added properties for Nuc_Seq cython classes (and updated commands using
them)
This commit is contained in:
@ -67,16 +67,16 @@ def run(config):
|
||||
for seq in iview :
|
||||
pb(i)
|
||||
|
||||
toprint = ">"+seq.get_id()+" "
|
||||
toprint = ">"+seq.id+" "
|
||||
|
||||
for col_name in seq :
|
||||
if col_name not in special_columns :
|
||||
toprint = toprint + col_name + "=" + str(seq[col_name]) + "; "
|
||||
|
||||
if DEFINITION_COLUMN in seq :
|
||||
toprint = toprint + seq.get_definition()
|
||||
toprint = toprint + seq.definition
|
||||
|
||||
nucseq = bytes2str(seq.get_sequence())
|
||||
nucseq = bytes2str(seq.nuc_seq)
|
||||
|
||||
if config['export']['format'] == "fasta" :
|
||||
nucseq = re.sub("(.{60})", "\\1\n", nucseq, 0, re.DOTALL)
|
||||
|
Reference in New Issue
Block a user