Exemplo n.º 1
0
        public static MapperUnitType GetMapperUnitType(IImportNode node)
        {
            string mapperUnitTypeString = node.GetString();

            if (!MapperUnitTypes.TryGetValue(mapperUnitTypeString, out var ret))
            {
                throw new InvalidDataException($"Unable to find the specified mapper unit type ({mapperUnitTypeString}) in the MapperUnitType dictionary.");
            }

            return(ret);
        }
Exemplo n.º 2
0
        public static int GetHgncId(this IImportNode node)
        {
            string hgnc = node.GetString();

            if (hgnc != null && hgnc.StartsWith("HGNC:"))
            {
                hgnc = hgnc.Substring(5);
            }

            int hgncId = -1;

            if (hgnc != null)
            {
                hgncId = int.Parse(hgnc);
            }
            return(hgncId);
        }
Exemplo n.º 3
0
 public static BioType GetBiotype(IImportNode node) => BioTypeHelper.GetBioType(node.GetString());