old_contents: #!/usr/bin/env python
  
  #Copyright (C) 2013 by Glenn Hickey
  #
  #Released under the MIT license, see LICENSE.txt
  import unittest
  import sys
  import os
  import argparse
  
  from teHmm.track import TrackData
  from teHmm.hmm import MultitrackHmm
  
  
  def main(argv=None):
      if argv is None:
          argv = sys.argv
  
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Create a teHMM")
  
      parser.add_argument("inputModel", help="Path of teHMM model created with"
                          " teHmmTrain.py")
      
      args = parser.parse_args()
  
      # load model created with teHmmTrain.py
      hmm = MultitrackHmm()
      hmm.load(args.inputModel)
  
      # crappy print method
      print hmm.toText()
      
  if __name__ == "__main__":
      sys.exit(main())
  
new_contents: #!/usr/bin/env python
  
  #Copyright (C) 2013 by Glenn Hickey
  #
  #Released under the MIT license, see LICENSE.txt
  import unittest
  import sys
  import os
  import argparse
  
  from teHmm.track import TrackData
  from teHmm.hmm import MultitrackHmm
  
  
  def main(argv=None):
      if argv is None:
          argv = sys.argv
  
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Print out paramaters of a teHMM")
  
      parser.add_argument("inputModel", help="Path of teHMM model created with"
                          " teHmmTrain.py")
      parser.add_argument("--nameMap", help="Print out name map tables",
                          action="store_true", default=False)
      
      args = parser.parse_args()
  
      # load model created with teHmmTrain.py
      hmm = MultitrackHmm()
      hmm.load(args.inputModel)
  
      # crappy print method
      print hmm.toText()
  
      if args.nameMap is True:
          print "State Maps:"
          trackList = hmm.trackList
          if trackList is None:
              print "TrackList: None"
          else:
              for track in trackList:
                  print "Track: %s" % track.getName()
                  print " map %s " % track.getValueMap().catMap
                  print " pam %s " % track.getValueMap().catMapBack
      
  if __name__ == "__main__":
      sys.exit(main())
  
subject: add view option to look at the name maps