Sequence Asesmbler: problem reading the app.config file for Color data
description
NOTE: Reported by dourada
I was able to get #1 working. There was a problem reading the app.config file for Color data. I'm still not entirely sure what the real problem was, there are articles that there is a bug in .net 4.0 as of August 2010 but if that were the case
I wonder how this application ever worked?
And one more question...anyone know why the application is named SilverMap (Actually it is SequenceAssembler but for some reason I thought I saw silvermap and assumed silverlight)? Or is the silvermap the name of the map after performing a BLAST?
Regardless the quick workaround is to read the contents of the app.config using this code in ConsensusCustomView.xaml.cs::ReadColorScheme
var
config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel
.None);
ConfigurationSection
handler = config.GetSection("Colors"
);
XmlDocument
reader = new
XmlDocument();
reader.LoadXml(handler.SectionInformation.GetRawXml());XmlNodeList
colorSchemeNodes = reader.SelectNodes("//Colors/ColorScheme");
then use the code
found in ColorSchemeConfigHandler.cs to do the rest of the work.