These are some scripts from the GenomeProperties system written by Dan Haft that I altered to suit my purposes, most notably working in a more flat-file manner. This was part of an effort to install GenomeProperties locally, which is documented at: http://wcnjournalclub.blogspot.com/2015/05/installing-jcvis-genomeproperties.html
See: Daniel H. Haft, Jeremy D. Selengut, Roland A. Richter, Derek Harkins, Malay K. Basu, and Erin Beck. TIGRFAMs and Genome Properties in 2013 Nucleic Acids Res. 2013 Jan; 41(Database issue): D387–D395. Published online 2012 Nov 28. doi: 10.1093/nar/gks1234 PMCID: PMC3531188