Пример #1
0
        /// <summary>
        /// Returns a <c>Converter</c> object with
        /// <c>Layout</c> and <c>RenderSpecs</c>
        /// for the SBML string passed. The
        /// <c>Layout</c> may be overwritten with SBGN.
        /// </summary>
        /// <param name="sbmlContent">stroring of
        /// SBML file contents</param>
        /// <param name="useSBGN">boolean indicating
        /// whether the layout should be replaced by
        /// SBGN default</param>
        /// <returns><c>Converter</c> with a
        /// <c>Layout</c> and <c>RenderSpecs</c>
        /// </returns>
        public static Converter FromSBMLContent(string sbmlContent, bool useSBGN)
        {
            var converter = new Converter();

            converter.ReadFromSBMLString(sbmlContent, useSBGN);
            return(converter);
        }
Пример #2
0
 /// <summary>
 /// Returns a <c>Converter</c> object with
 /// <c>Layout</c> and <c>RenderSpecs</c> 
 /// for the SBML string passed. The 
 /// <c>Layout</c> may be overwritten with SBGN. 
 /// </summary>
 /// <param name="sbmlContent">stroring of 
 /// SBML file contents</param>
 /// <param name="useSBGN">boolean indicating 
 /// whether the layout should be replaced by 
 /// SBGN default</param>
 /// <returns><c>Converter</c> with a 
 /// <c>Layout</c> and <c>RenderSpecs</c>
 /// </returns>
 public static Converter FromSBMLContent(string sbmlContent, bool useSBGN)
 {
     var converter = new Converter();
     converter.ReadFromSBMLString(sbmlContent, useSBGN);
     return converter;
 }