test a new obitools script
This commit is contained in:
@ -179,7 +179,7 @@ if __name__ == '__main__':
|
||||
|
||||
|
||||
writer = sequenceWriterGenerator(options)
|
||||
|
||||
nbseq=0
|
||||
for seq in sequences:
|
||||
|
||||
for s in seq:
|
||||
@ -194,5 +194,7 @@ if __name__ == '__main__':
|
||||
for s in seq:
|
||||
words,wordlist=addSeq2Pattern(s, wordlist, options)
|
||||
st = lookforseq(s, word2seq, seq2word, options)
|
||||
print >>sys.stderr,"\nWrote %d new sequences %s" % (len(st),[x.id for x in st])
|
||||
nbseq+=len(st)
|
||||
ldict=len(wordlist)
|
||||
print >>sys.stderr,"\nWrote %d/%d [wordlist=%d] new sequences (%s)" % (len(st),nbseq,ldict,",".join([x.id for x in st]))
|
||||
writer(st)
|
||||
|
Reference in New Issue
Block a user