Added DMS method to create a DMS if it doesn't already exists, otherwise

opens it
This commit is contained in:
Celine Mercier
2017-07-28 09:55:43 +02:00
parent da48a9d1af
commit adf5cbef97
3 changed files with 27 additions and 19 deletions

View File

@ -147,11 +147,8 @@ def run(config):
inputs = uopen(config['import']['filename'])
# Create or open DMS
try:
d = DMS.test_open(config['obi']['defaultdms'])
except :
d = DMS.new(config['obi']['defaultdms'])
d = DMS.open_or_new(config['obi']['defaultdms'])
get_quality = False
NUC_SEQS_view = False
if config['import']['seqinformat']=='fasta':