Skip to content

Commit

Permalink
add CarveMe version to model description
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanielmachado committed Jan 15, 2018
1 parent 4d47671 commit a78bbb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/carve
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

from carveme import config, project_dir
from carveme import __version__ as version
from carveme.reconstruction.carving import carve_model, build_ensemble
from carveme.reconstruction.eggnog import load_eggnog_data
from carveme.reconstruction.gapfilling import multiGapFill
Expand Down Expand Up @@ -138,6 +139,8 @@ def main(inputfile, input_type='protein', outputfile=None, diamond_args=None, un
else:
print 'Error: medium {} not in media database.'.format(init)

universe_model.metadata['Description'] = 'This model was built with CarveMe version ' + version

if ensemble_size is None or ensemble_size <= 1:
if verbose:
print 'Reconstructing a single model'
Expand Down

0 comments on commit a78bbb6

Please sign in to comment.