示例#1
0
        /// <summary>
        /// This method returns the list of genbankID with its definition.
        /// Throws an exception of any error accessing the database occurs.
        /// </summary>
        public static XmlDocument listDefinitions()
        {
            XmlDocument doc = new XmlDocument();

            doc.AppendChild(dictionaryToXML(GDDL.listDefinitions(), doc));
            return(doc);
        }
示例#2
0
        /// <summary>
        /// This method returns the list of genbankID with its corresponding molecule stand topology.
        /// Throws an exception of any error accessing the database occurs.
        /// </summary>
        public static XmlDocument listStrandTopologies()
        {
            XmlDocument doc = new XmlDocument();

            doc.AppendChild(dictionaryToXML(GDDL.listStrandTopologies(), doc));
            return(doc);
        }
示例#3
0
        public static List <string> getAccessionVersion(string genbankID)
        {
            List <string> accession_version = GDDL.getAccessionVersion(genbankID);

            if (accession_version.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(accession_version);
        }
示例#4
0
        public static List <string> getDefinitions(string genbankID)
        {
            List <string> definition = GDDL.getDefinitions(genbankID);

            if (definition.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(definition);
        }
示例#5
0
        public static List <string> ListNucleotideLocations(string accession_version)
        {
            List <string> nucleotide_locations = GDDL.ListNucleotideSequenceLocations(accession_version);

            if (nucleotide_locations.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(nucleotide_locations);
        }
示例#6
0
        public static List <string> getGenes(string accession_version)
        {
            List <string> genes = GDDL.getGenes(accession_version);

            if (genes.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(genes);
        }
示例#7
0
        public static List <string> getProteinIDs(string accession_version)
        {
            List <string> protein_ids = GDDL.getProteinIDs(accession_version);

            if (protein_ids.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(protein_ids);
        }
示例#8
0
        public static string getStrandType(string genbankID)
        {
            string strand = GDDL.getStrandType(genbankID);

            if (strand == null)
            {
                throw new Exception("No match found");
            }
            return(strand);
        }
示例#9
0
        public static string getStrandTopology(string genbankID)
        {
            string strand_topology = GDDL.getStrandTopology(genbankID);

            if (strand_topology == null)
            {
                throw new Exception("No match found");
            }
            return(strand_topology);
        }
示例#10
0
        /// <summary>
        /// This method returns the name of prokaryote of provided genBankID.
        /// Throws an exception of any error accessing the database occurs.
        /// </summary>
        /// <param name="genbankID">Genbank identifier.</param>
        public static string getProkaryote(string genbankID)
        {
            string prokaryote = GDDL.getProkaryote(genbankID);

            if (prokaryote == null)
            {
                throw new Exception("No match found");
            }
            return(prokaryote);
        }
示例#11
0
        public static string getMoleculeType(string genbankID)
        {
            string molecule = GDDL.getMoleculeType(genbankID);

            if (molecule == null)
            {
                throw new Exception("No match found");
            }
            return(molecule);
        }
示例#12
0
        public static List <string> getTitles(string genbankID)
        {
            List <string> title = GDDL.getTitles(genbankID);

            if (title.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(title);
        }
示例#13
0
        public static string getSequence(string genbankID)
        {
            string sequence = GDDL.getSequence(genbankID);

            if (sequence == null)
            {
                throw new Exception("No match found");
            }
            return(sequence);
        }
示例#14
0
        public static List <string> getJournals(string genbankID)
        {
            List <string> journal = GDDL.getJournals(genbankID);

            if (journal.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(journal);
        }
示例#15
0
        public static List <string> getProjects(string genbankID)
        {
            List <string> project = GDDL.getProjects(genbankID);

            if (project.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(project);
        }
示例#16
0
        public static string getProkaryoteClassLevel(string genbankID)
        {
            string prokaryote_class_level = GDDL.getProkaryoteClassLevel(genbankID);

            if (prokaryote_class_level == null)
            {
                throw new Exception("No match found");
            }
            return(prokaryote_class_level);
        }
示例#17
0
        public static string getNucleotideSequence(string accession_version, string start, string end)
        {
            string nucleotide_sequence = GDDL.getNucleotideSequence(accession_version, start, end);

            if (nucleotide_sequence == null)
            {
                throw new Exception("No match found");
            }
            return(nucleotide_sequence);
        }
示例#18
0
        public static List <string> getGiNumber(string genbankID)
        {
            List <string> ginumber = GDDL.getGiNumber(genbankID);

            if (ginumber.Count < 1)
            {
                throw new Exception("No match found");
            }
            return(ginumber);
        }
示例#19
0
 /// <summary>
 /// This method returns the Lists of the strand code attributes.
 /// Throws an exception of any error accessing the datbase occurs.
 /// </summary>
 public static List <string> listStrandCodeAttributes()
 {
     return(GDDL.listStrandCodeAttributes());
 }
示例#20
0
 /// <summary>
 /// This method returns the Lists of the division code attributes.
 /// Throws an exception of any error accesing the database occurs.
 /// </summary>
 public static List <string> listDivisionCodeAttributes()
 {
     return(GDDL.listDivisionCodeAttributes());
 }
示例#21
0
 /// <summary>
 /// This method returns the Lists of the molecule code attributes.
 /// Throws an exception of any error accessing the datbase occurs.
 /// </summary>
 public static List <string> listMoleculeCodeAttributes()
 {
     return(GDDL.listMoleculeCodeAttributes());
 }
示例#22
0
 /// <summary>
 /// This method returns the Lists of the strand topology attributes.
 /// Throws an exception of any error accessing the datbase occurs.
 /// </summary>
 public static List <string> listStrandTopologyAttributes()
 {
     return(GDDL.listStrandTopologyAttributes());
 }