PRG_NAME = "mse"
PRG_VERSION = "1.02"
PRG_DESC = "extraction of sequences by name from multiple multi-sequence ('fasta') files"
- PRG_DATE = "2012.07.20"
- COPYRIGHT = "2008-2012 Christian M Zmasek"
+ PRG_DATE = "130322"
+ COPYRIGHT = "2008-2013 Christian M Zmasek"
CONTACT = "phylosoft@gmail.com"
- WWW = "www.phylosoft.org"
+ WWW = "https://sites.google.com/site/cmzmasek/home/software/forester"
HELP_OPTION_1 = 'help'
HELP_OPTION_2 = 'h'
per_species_counter.to_i
- ids_map_writer.write( normalized_id + ": " + seq.get_name + Constants::LINE_DELIMITER )
+ ids_map_writer.write( normalized_id + "\t" + seq.get_name + Constants::LINE_DELIMITER )
orig_name = nil
if seq != nil
# $Id: phylogenies_decorator.rb,v 1.34 2010/12/13 19:00:11 cmzmasek Exp $
#
# Environment variable FORESTER_HOME needs to point to the appropriate
-# directory (e.g. setenv FORESTER_HOME $HOME/SOFTWARE_DEV/ECLIPSE_WORKSPACE/forester-atv/)
+# directory (e.g. setenv FORESTER_HOME $HOME/SOFTWARE_DEV/ECLIPSE_WORKSPACE/forester/)
require 'lib/evo/util/constants'
require 'lib/evo/util/util'
PRG_VERSION = "1.02"
COPYRIGHT = "2012 Christian M Zmasek"
CONTACT = "phylosoft@gmail.com"
- WWW = "www.phylosoft.org"
+ WWW = "https://sites.google.com/site/cmzmasek/home/software/forester"
IDS_ONLY_OPTION = "n"
DOMAINS_ONLY_OPTION = "d"
cmd = decorator + ' ' + DECORATOR_OPTIONS_DOMAINS + ' ' +
'-f=d ' + phylogeny_file + ' ' +
domains_mapfile_name + ' ' + my_outfile
+ puts cmd
execute_cmd( cmd, log )
end
cmd = decorator + ' ' + DECORATOR_OPTIONS_SEQ_NAMES + ' ' +
'-f=n ' + my_infile + ' ' +
ids_mapfile_name + ' ' + outfile
+ puts cmd
execute_cmd( cmd, log )
end
class TaxonomyProcessor
PRG_NAME = "tap"
- PRG_DATE = "2013.03.20"
+ PRG_DATE = "2013.03.22"
PRG_DESC = "replacement of species names in multiple sequence files"
- PRG_VERSION = "2.00"
+ PRG_VERSION = "2.001"
COPYRIGHT = "2013 Christian M Zmasek"
CONTACT = "phylosoft@gmail.com"
WWW = "https://sites.google.com/site/cmzmasek/home/software/forester"
def modify_name( desc, counter, file, extract_taxonomy )
new_desc = nil
+ desc.gsub!( /\s+/, ' ' )
if desc =~ /^>?\s*\S{1,10}_(([A-Z9][A-Z]{2}[A-Z0-9]{2})|RAT|PIG|PEA|CAP)/
new_desc = counter.to_s( 16 ) + "_" + $1
elsif extract_taxonomy
else
new_desc = counter.to_s( 16 )
end
- file.print( new_desc + ": " + desc + "\n" )
+ file.print( new_desc + "\t" + desc + "\n" )
new_desc
end