Added OBIView_line_selection class to make new line selections
associated with the view to clone, and improved and renamed method closing a view
This commit is contained in:
@ -4,9 +4,9 @@ from obitools3.parsers.fasta import fastaIterator
|
||||
from obitools3.parsers.fastq import fastqIterator
|
||||
from obitools3.obidms._obidms import OBIDMS
|
||||
|
||||
|
||||
import time
|
||||
|
||||
|
||||
__title__="Counts sequences in a sequence set"
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ def addOptions(parser):
|
||||
|
||||
# TODO: Handling of NA values
|
||||
def run(config):
|
||||
#pb = ProgressBar(35000000, config, seconde=5)
|
||||
pb = ProgressBar(35000000, config, seconde=5)
|
||||
|
||||
inputs = uopen(config['import']['filename'])
|
||||
|
||||
@ -113,7 +113,7 @@ def run(config):
|
||||
|
||||
i = 0
|
||||
for seq in iseq:
|
||||
#pb(i)
|
||||
pb(i)
|
||||
view[i].set_id(seq['id'])
|
||||
view[i].set_definition(seq['definition'])
|
||||
view[i].set_sequence(seq['sequence'])
|
||||
@ -125,7 +125,7 @@ def run(config):
|
||||
|
||||
print(view.__repr__())
|
||||
|
||||
view.save_and_close()
|
||||
view.close()
|
||||
d.close()
|
||||
|
||||
print("Done.")
|
||||
|
Reference in New Issue
Block a user