BIOLOGICAL DATA PROCESSING

Abstract: A multi-database query system which queries a plurality of databases and servers, including an input which receives queries in a structured form and a translation server which translates at least a part of a received query into commands recognized by a data manipulation server.

Description: BIOLOGICAL DATA PROCESSING FIELD OF THE INVENTION The present invention relates to automated database searching and in particular to automated access to biological databases. BACKGROUND OF THE INVENTION One of the tasks performed in biological research is comparison of newly discovered biological data with data stored in databases. Over two hundred public biological databases are available around the world, many on the Internet. In general, databases include a plurality of records which have the form of an object class. The object class is formed of a plurality of fields, often in a hierarchy in which an object class includes one or more sub-object classes which in turn may include sub-sub object classes. The records may represent, for example, gene sequences and may have fields which include various data about the sequences, such as their length, origin and a view of the sequence. Information is extracted from databases by querying a management system associated with the database. A simple query includes a request to display one or more fields of records which fulfill a certain criteria. The existing databases have different organization methodologies, e.g., different fields in each record and different query schemes. In order to access these databases with ease, an Object Protocol Model (OPM) suite of tools was developed. An OPM processor mediates between a user and databases associated with the OPM suite. A common organization methodology is used to represent the data in all the databases accessed via the OPM processor. Queries addressed to databases via the OPM processor are provided, by a user to the OPM processor, in a structured form expressed in accordance with the common organization methodology. The OPM processor translates the queries from the structured OPM form to query forms compatible with the management systems of the specific databases to which the queries are addressed. The results from the specific databases are returned to the OPM processor which translates the results back to the organization methodology of the OPM suite. Not only does the OPM suite allow a user to access a plurality of different databases in different forms, it also allows the user to access a plurality of databases using a single query. For example, a complex query may request to display the records from a first database which have a gene length greater than of corresponding records of a second database which represent the same organism. The use of a common organization methodology across databases allows using special tools for more easily generating queries and/or performing more complex queries. For example, a graphic user interface (GUI) of the OPM suite allows the user to prepare a query in a structured manner. Some of the forms of biological data are complex data structures, such as gene sequences, which require special procedures for manipulation, for example, for performing comparisons. Homology search engines, such as BLAST, are used to compare gene sequences. When a user wants to compare, for example, all the gene sequences classified in a certain month to one or more groups of gene sequences, the user retrieves all the desired classified gene sequences using OPM. Then, the user passes the retrieved data to a homology sequence server which performs the sequence comparison. SUMMARY OF THE INVENTION One aspect of some embodiments of the invention provides a method for accessing data manipulation servers using a structured query format used to query databases. Optionally, the accessing of manipulation servers is integrated with the accessing of database information, for example by manipulating the results of the data access and/or by using the results of the data manipulation as data to be accessed or for restricting queries. One aspect of some embodiments of the present invention relates to a multi-database query system which receives queries which relate to both database and data manipulation servers, such as homology search engines. The queries relate to the data manipulation servers as if they are database servers, allowing use of any tool of the multi-database query system developed for database queries, on queries which access data manipulation servers. Such tools include, for example, database linking tools, graphic query preparation tools and query optimization tools. By relating to databases and data manipulation servers from a single query, the data manipulation server may process results from the database as they are provided before the database runs through all its records. Alternatively or additionally, the results of a data manipulation step may be further queried. Thus, the response time required for a complex query may be substantially reduced. Alternatively or additionally, the amount of traffic on a network may be reduced and/or better spread out in time. Also, complex operations may require less of a user intervention. In some embodiments of the present invention, the input to and/or output from of the data manipulation servers are modeled by structured objects. The modeled input objects may result from processing other sections of the query. The modeled output objects may be further processed by other sections of the query or even further manipulated by other (or the same) manipulation servers. In some embodiments of the invention, each data manipulation server associated with the query system has a translation server which mediates between the data manipulation server and the query system. The translation server receives commands from the server in a structured query form used by the query system and translates the commands to a form in which the data manipulation server receives commands. The translation server optionally also receives results from the data manipulation server and presents the results to the query system in objects organized according to structured object classes used by the query system. There is thus provided in accordance with an embodiment of the invention, a multi- database query system which queries a plurality of databases and servers, including an input which receives queries in a structured form, and a translation server which translates at least a part of a received query into commands recognized by a data manipulation server. Optionally, the system comprises a processor which parses the received query into parts according to the databases and servers to which they relate. Alternatively or additionally, the structured form comprises a form used to query databases. Alternatively or additionally, the input receives a query which relates to at least one database and at least one data manipulation server. Alternatively or additionally, the translation server models results from the data manipulation server into database objects. Alternatively or additionally, the data manipulation server comprises a server which receives input from a least two different sources. Optionally, the data manipulation server comprises a homology comparison engine. There is also provided in accordance with an embodiment of the invention, a method of accessing a data manipulation server from a multi-database query system, including providing the query system with a query which includes a first directive assigning a value to at least one field of an input object associated with the data manipulation server and a second directive which determines a value of at least one field of an output object associated with the data manipulation server, and invoking the data manipulation server responsive to the second directive. Optionally, providing the query comprises preparing the query using a graphical interface designed for querying structured databases. Alternatively or additionally, the data manipulation server comprises a homology engine. There is also provided in accordance with an embodiment of the invention, a method of performing a database search using a multi-database query system, including providing the query system with a query which includes at least one directive related to a database and at least one directive related to a data manipulation server, wherein the directives are stated in an identical structural format, translating the directives into commands recognized by the database and the data manipulation server, and submitting the commands respectively to the data manipulation server and to the database. Optionally, the data manipulation server comprises a homology comparison engine. Alternatively or additionally, translating the directives comprises identifying, by a query processor, the directives directed to the database and the directives directed to the data manipulation server. Optionally, translating the directives comprises passing the directives to translation servers associated with the database or data manipulation server to which the directives are directed. Alternatively or additionally, the method comprises determining an order for the directives to be processed in and submitting the translated directives to the data manipulation server and to the database according to the determined order. In some embodiments, the method comprises receiving results from said submission and translating the results into structured objects. Optionally, translating the results into structured objects comprises translating the results to structured objects related to the directives. Alternatively or additionally, providing a query comprises providing a query in an Object Protocol Model (OPM)-like language. BRIEF DESCRIPTION OF FIGURES Particular embodiments of the invention will be described with reference to the following description of embodiments in conjunction with the figures, wherein identical structures, elements or parts which appear in more than one figure are preferably labeled with a same or similar number in all the figures in which they appear, in which: Fig. 1 is a schematic illustration of a multi-database query system, in accordance with an embodiment of the invention; and Fig. 2 is a flowchart of the actions performed by the multi-database query system of Fig. 1, in accordance with an embodiment of the present invention. DETAILED DESCRIPTION OF EMBODIMENTS Fig. 1 is a schematic illustration of a multi-database query system 20, in accordance with an embodiment of the invention. System 20 mediates between an end-user 22, and a plurality of service providers which include databases 24 and one or more data manipulation servers, such as a homology search engine 26. Error detection processes are another example of data manipulation servers. Engine 26 is a data manipulation server in that it provides processing services and is not primarily used for storing and providing information. In some embodiments of the invention, engine 26 does not store information and a user requesting processing services must provide the information to be processed or must provide a link to a database or file containing the information. Data manipulation servers may receive a single input of data, e.g., error detection processes which receive a single sequence, or a plurality of inputs, e.g., homology engines which compare sequences from two different sources. One of the objects of some embodiments of the invention is to allow end-user 22 to relate to homology engine 26 and/or to other data manipulation servers as if they were databases 24. Databases 24 may be organized differently from each other and are not generally controllable by a supervisor of system 20. End user 22 provides system 20 with queries in a query-language of system 20, for example a structured query language, such as OPM. In some embodiments of the invention, a single query may be directed to more than one service provider. For example, a single query may be directed to a plurality of databases 24 and to homology engine 26. In some embodiments of the invention, system 20 comprises a graphical user interface 28 which receives queries in a graphical form and translates them into the system's query language. Alternatively or additionally, system 20 comprises a command-line interface 30 which receives commands from end-user 22 directly in the system's query language or possibly using natural language. Further alternatively or additionally, system 20 comprises a remote-unit interface 32 which receives queries from remote computer units. System 20 further comprises a multi-database query processor 34 which receives queries from interfaces 28, 30 and/or 32 and processes them, as described hereinbelow. In some embodiments of the invention, query processor 34 and interfaces 28, 30 and/or 32 are implemented in software on a single computer 36 accessible to end-user 22. Alternatively, a distributed configuration is used. In some embodiments of the invention, system 20 further comprises, for each database 24, an OPM translation server 38 that mediates between processor 34 and the respective service provider. In some embodiments of the invention, translation servers 38 translate queries from the query language of system 20 into query languages supported by the respective database 24. Optionally, translation servers 38 translate query results received from the databases 24 into the structural object classes of system 20. In a similar manner, system 20 comprises an OPM translation server 42 which mediates between processor 34 and homology engine 26. In some embodiments of the invention, translation server 42 translates query portions from the query language of system 20 into commands supported by homology engine 26. That is, the OPM language allows, in accordance with embodiments of the invention, phrasing queries that access homology engine 26 as a database. Translation server 42 translates query directives, such as limitations, into commands to be performed by homology engine 26. In addition, translation server 42 optionally translates the output from homology engine 26 into structural objects, in accordance with the query language used by system 20. An exemplary structural definition of objects used to access a homology engine from the OPM suite is described in Table 1. Table 1 SCHEMA blast_srv DESCRIPTION: "The OPM schema for a queryable blast server" CONTROLLED VALUE CLASS BlastEngine Cv { "wu blast 2.0", "ncbi_blast 2.0" } DEFAULT: "wu_blast 2.0" CONTROLLED VALUE CLASS BlastProgram Cv {"blastn", "blastx", "blastp", "tblastn", "tblastx"} DEFAULT: "blastn" CONTROLLED VALUE CLASS Strand_Cv {"top", "bottom", "both"} DEFAULT: "both" CONTROLLED VALUE CLASS SortBy_Cv {"pvalue", "count", "highscore", "totalscore"} DEFAULT: "pvalue" CONTROLLED VALUE CLASS GenCode Cv { ("Standard or Universal", 1), ("Vertebrate Mitochondrial", 2), ("Yeast Mitochondrial", 3), ("Mold, Protozan, .. ",4), ("Invertebrate Mitochondrial", 5), ("Ciliate Macronuclear", 6), ("Encinodermate Mitochondrial",9), ("Alternative Ciliate Macronuclear", 10), ("Eubactrial", 11), ("Alternative Yeast", 12), ("Ascidian Mitochondrial", 13), ("Flatworm Mitochondrial", 14) } DEFAULT: "Standard or Universal" CODE_TYPE: SMALLLNT CONTROLLED VALUE CLASS Filter Cv { ("none", 0), ("seg", 1), ("xnu", 2), ("seg+xnu", 3), ("dust", 4) } DEFAULT: "none" CODE_TYPE: SMALLLNT CONTROLLED VALUE CLASS Matrix Cv { ("blosum62", 0), ("blosum35", 1), ("blosum40", 2), ("blosum45", 3), ("blosum50", 4), ("blosum65", 5), ("blosum70", 6), ("blosum75", 7), ("blosum80", 8), ("blosum85", 9), ("blosum95", 10), ("blosumlOO", 11), ("GONNET", 12), ("pamlO", 13), ("pam20", 14), ("pam30", 15), ("pam40", 16), ("pam50", 17), ("pam60", 18), ("pam70", 19), ("pam80", 20), ("pam90", 21), ("pamlOO", 22), ("paml l0", 23), ("paml20", 24), ("paml30", 25), ("paml40", 26), ("paml50", 27), ( * 'paml60", 28), ("paml70", 29), ("paml80", 30), ("paml90", 31), ("pam200", 32), ("pam210", 33), ("pam220", 34), ("pam230", 35), ("pam240", 36), ("pam250", 37), ("pam260", 38), ("pam270", 39), ("pam280", 40), ("pam290", 41), ("pam300", 42), ("pam310", 43), "pam320", 44), "pam330", 45), "pam340", 46), ;"pam350", 47), "pam360", 48), "pam370", 49), "pam380", 50), "pam390", 51), "pam400", 52), "pam410", 53), "pam420", 54), "pam430", 55), "pam440", 56), "pam450", 57) DEFAULT: "blosum62" CODE_TYPE: SMALLLNT CONTROLLED VALUE CLASS DB Cv { "testdb", "localdb", "dbest" } DEFAULT: "testdb" OBJECT CLASS Blast_Call DESCRIPTION: "A blast call object represents a particular homology search using a blast engine" ID: callld ATTRIBUTE callld : INTEGER REQUIRED ATTRIBUTE engine : BlastEngine Cv REQUIRED ATTRIBUTE program : BlastProgram_Cv REQUIRED ATTRIBUTE query : VARCHAR(2000) REQUIRED ATTRIBUTE datasource: DB Cv REQUIRED ATTRIBUTE output: set-of [1,] Blast Output REQUIRED ATTRIBUTE matrix: Matrix Cv OPTIONAL ATTRIBUTE strand: Strand_Cv OPTIONAL ATTRIBUTE sortby: SortBy_Cv OPTIONAL ATTRIBUTE dbgcode: GenCode_Cv OPTIONAL ATTRIBUTE filter: Filter Cv OPTIONAL ATTRIBUTE threshold: REAL OPTIONAL ATTRIBUTE alignments: INTEGER OPTIONAL ATTRIBUTE scores: INTEGER OPTIONAL ATTRIBUTE param E: REAL OPTIONAL ATTRIBUTE param_S: REAL OPTIONAL ATTRIBUTE param_E2: REAL OPTIONAL ATTRIBUTE param_S2: REAL OPTIONAL ATTRIBUTE param W: INTEGER OPTIONAL ATTRIBUTE param T: INTEGER OPTIONAL ATTRIBUTE param X: INTEGER OPTIONAL ATTRIBUTE param N: INTEGER OPTIONAL ATTRIBUTE param M: INTEGER OPTIONAL ATTRIBUTE param B: INTEGER OPTIONAL ATTRIBUTE param_V: INTEGER OPTIONAL OBJECT CLASS Blast_Output DESCRIPTION: "The output of a specific blast call" ID: runld ATTRIBUTE runld: INTEGER REQUIRED ATTRIBUTE program: VARCHAR(8) REQUIRED ATTRIBUTE version: VARCHAR(20) REQUIRED ATTRIBUTE revision: VARCHAR(20) REQUIRED ATTRIBUTE build: VARCHAR(40) REQUIRED ATTRIBUTE queryld : VARCHAR(20) REQUIRED ATTRIBUTE querySeq : VARCHAR(2000) REQUIRED ATTRIBUTE queryLength: INTEGER REQUIRED ATTRIBUTE database : DB Cv REQUIRED ATTRIBUTE hits: set-of [1,] BlastHits REQUIRED ATTRIBUTE dbSize_Seqs : INTEGER REQUIRED ATTRIBUTE dbSizeJLetters : INTEGER REQUIRED ATTRIBUTE dbFile : VARCHAR(80) REQUIRED ATTRIBUTE dbReleased : VARCHAR(40) REQUIRED ATTRIBUTE dbPosted : VARCHAR(40) REQUIRED ATTRIBUTE hitSatE : INTEGER REQUIRED ATTRIBUTE searchTime : VARCHAR(40) REQUIRED ATTRIBUTE totalTime : VARCHAR(40) REQUIRED ATTRIBUTE runDate : VARCHAR(40) REQUIRED ATTRIBUTE parameters: set-of [1,] OutputParameters REQUIRED OBJECT CLASS OutputParameters ID: paramld ATTRIBUTE paramld: INTEGER REQUIRED ATTRIBUTE strand: VARCHAR(IO) REQUIRED ATTRIBUTE frame: VARCHAR( 10) REQUIRED ATTRIBUTE matrixld: VARCHAR(IO) REQUIRED ATTRIBUTE matrixName: VARCHAR(IO) REQUIRED ATTRIBUTE lamdba_Used: VARCHAR(IO) REQUIRED ATTRIBUTE K Used: VARCHAR(IO) REQUIRED ATTRIBUTE HJ sed: VARCHAR( 10) REQUIRED ATTRIBUTE lamdba Computed: VARCHAR(IO) REQUIRED ATTRIBUTE K_Computed: VARCHAR(IO) REQUIRED ATTRIBUTE H_Computed: VARCHAR(IO) REQUIRED ATTRIBUTE param El: VARCHAR(IO) REQUIRED ATTRIBUTE param S 1 : VARCHAR( 10) REQUIRED ATTRIBUTE param_Wl: VARCHAR(IO) REQUIRED ATTRIBUTE param_Tl : VARCHAR(IO) REQUIRED ATTRIBUTE param_Xl: VARCHAR(IO) REQUIRED ATTRIBUTE param_E2: VARCHAR(IO) REQUIRED ATTRIBUTE param_S2: VARCHAR(IO) REQUIRED OBJECT CLASS BlastHeader DESCRIPTION: "The header section of BLAST output" ID: headerld ATTRIBUTE headerld: INTEGER REQUIRED ATTRIBUTE program: VARCHAR(8) REQUIRED ATTRIBUTE version: VARCHAR(20) REQUIRED ATTRIBUTE revision: VARCHAR(20) REQUIRED ATTRIBUTE build: VARCHAR(40) REQUIRED ATTRIBUTE queryld : VARCHAR(20) REQUIRED ATTRIBUTE querySeq : VARCHAR(2000) REQUIRED ATTRIBUTE database : DB_Cv REQUIRED ATTRIBUTE numOfSequences : INTEGER REQUIRED ATTRIBUTE numOfLetters : INTEGER REQUIRED OBJECT CLASS BlastHits DESCRIPTION: "Blast Hits" ID: accession ATTRIBUTE accession : VARCHAR(12) REQUIRED ATTRIBUTE description : VARCHAR(255) REQUIRED ATTRIBUTE score : INTEGER REQUIRED ATTRIBUTE pvalue : REAL REQUIRED ATTRIBUTE num : INTEGER REQUIRED ATTRIBUTE length : INTEGER OPTIONAL ATTRIBUTE hsp : set-of [1,] BlastHSP OPTIONAL OBJECT CLASS BlastHSP ID: hspld ATTRIBUTE hspld : INTEGER REQUIRED ATTRIBUTE score : INTEGER REQUIRED ATTRIBUTE expect: REAL REQUIRED ATTRIBUTE pvalue: REAL REQUIRED ATTRIBUTE strandl : VARCHAR(l) REQUIRED ATTRIBUTE strand2: VARCHAR(l) REQUIRED ATTRIBUTE identities : REAL REQUIRED ATTRIBUTE positives : REAL REQUIRED query sequence, eg n, en : (VARCHAR(500) REQUIRED, INTEGER REQUIRED, INTEGER REQUIRED) ATTRIBUTE target (sequence, begin, end) : (VARCHAR(500) REQUIRED, INTEGER REQUIRED, INTEGER REQUIRED) ATTRIBUTE align : VARCHAR(500) REQUIRED ATTRIBUTE t5_begin : INTEGER REQUIRED ATTRIBUTE t5_end : INTEGER REQUIRED The structural definition of Table 1 is written in a language used to define OPM objects, described for example in Chen, I.A.; Kosky, A.S.; Markowitz, V.M.; Szeto, E.; and Topaloglou, T., 1998. "Advanced Query Mechanisms for Biological Databases" in Proceedings of the 6 International Conference on Intelligent systems for Molecular biology (ISMB'98), the disclosure of which is incorporated herein by reference. Alternatively or additionally, a single translation server 38 may be used for more than one service provider. Alternatively or additionally, OPM processor 34 performs some or all of the translation tasks of translation servers 38 and 42. In some embodiments of the invention, OPM servers 38 and 42 are situated on the same computer as their respective service providers 24 and 26. Alternatively, OPM servers 38 and 42 are located on computers proximal to their respective service providers 24 and 26, although translation servers may be located substantially anywhere. In some embodiments of the invention, a multi-database directory 40 is used by processor 34 to determine to which service provider 24 and 26, the portions of a query are directed. Directory 40 summarizes the contents, organization methodologies and capabilities of databases 24 and engines 26. In some embodiments, a single directory is used for a plurality of query processors 34, such that adding additional service providers to system 20 requires only preparing a respective OPM server for the additional service providers and updating directory 40, while no changes are needed in processors 34. In some embodiments of the present invention, the various components of system 20 interact using a distributed-object technology, such as, the Common Object Request Broker Architecture (CORBA) which is described, for example, in the Web Site of the "Object Management Group" (OMG) at www.omg.org and was available on June 27, 1999. The disclosure of this web site is incorporated herein by reference. In some embodiments of the invention, a plurality of different CORBA interfaces are used in system 20 for different types of interactions between the components of system 20. In one example, a first CORBA interface is used for programming and a second interface is used for object transfer and/or sharing. Optionally, remote-unit interface 32 also comprises a CORBA interface. Alternatively or additionally, other distributed-object technologies, such as, Microsoft's Component Object Model (COM) or the UNIX environment Remote procedure call (RPC), may be used to allow remote and/or non-remote components of system 20 to interact. Further alternatively or additionally, system 20 may be implemented in its entirety by a single process and/or on a single processor. Table 2 (1) SELECT 1 = r.fragld, a =h.accessor (2) FROM r in local fragments (3) be in blast:Blast_Call (4) bo in be. output (5) h = bo.summary.sequence (6) WHERE r.fmished = "today" and (7) bc.querySeq = r.sequence and (8) be. command = "blastn" and (9) bc.dataSource = "dbEST" and (10) h.length > 300 Table 2 illustrates a sample query received by query processor 34 from any of interfaces 28, 30 and 32. The query in table 2 is written according to the OPM query language described, for example, in the ISMB'98 publication referenced hereinabove. This OPM query language allows accessing a plurality of databases 24 from a single query. The query of table 2 relates to both a database 24 and an homology engine 26, the homology engine being accessed as if it were a database. The query in table 2 is built of three sections. A first section labeled SELECT states the fields which are to appear in the output generated responsive to the query. In table 2 these fields are a "fragld" field of a variable r, and an "accessor" field of a variable h (the variables r and h are defined in the second section). A second section, labeled WHERE, defines the variables mentioned in the query by stating the database object classes to which they relate. That is, the second section states which objects are candidates for fulfilling the query. In table 2, the variable r, for example, corresponds to a "Fragments" object class in a database named "local". In the same way, a dummy variable "be" corresponds to an object class named "Blast_Call" in a pseudo database "blast". However, unlike variable r which represents an actual field of data in a database 24, variable "be" does not represent any such field, and a database "blast" does not actually exist. Rather, when the "blast" database is referred to in a query, processor 34 refers to homology engine 26. In some embodiments of the invention, translation server 42 performs any required translations to the input and output of homology engine 26, such that the homology engine appears to processor 34 as a database. In an exemplary embodiment of the present invention, the entire interface with homology engine 26 is structured in a single translation object, for example, in accordance with the "Blast_Call" object class in table 2, which is defined in Table 1. The translation object includes the input to and output from homology engine 26. For example, the "Blast_Call" object class has fields which relate to the commands to engine 26, such as, a "command" field which states the type of command performed by engine 26, a "querySeq" field which states an input sequence to be compared by the engine and a "dataSource" field which states a database of sequences to which the input sequence is compared. In addition, the "Blast_Call" object class has an "output" field into which the output from homology engine 26 is preferably structurally stored. In the query of table 2, a dummy variable, "bo", refers to the sub-object "output", thus simplifying the query statements. When a query relates to an action, such as a search or a filter to be performed in a pseudo database, processor 34 first has the respective engine 26 perform any required commands to fill up the output fields of the object representing the pseudo database, e.g., "Blast_Call", and only then the search is performed. Alternatively or additionally, as the output records become available from homology engine 26 they are sent for further processing. In some cases, the records can be processed even before all the fields are available from engine 26. One example of a query optimization as applied to data manipulation servers is that the query translator instructs the engine to prepare only those result fields which are actually required for further processing or display. Another example of optimization is allowing some of the fields to be provided at a later time than other fields. Modifying the order of generation of fields, even between records, may be useful if the some fields are required for further data manipulation or for a querying against a slow database and are thus time critical. For some types of data manipulation, it may even be useful to start the manipulation with only part of the fields and then repeat the manipulation with the rest of the fields. One example where it is useful to start manipulating before all the fields are available is where the manipulation can be carried out, at least to some extent, without the field or where the value of the field or the range of possible values of the field can be known. Thus, for example, a DNA homology can be failed based on both of the strands not matching, even before it is known which strand needs to be matched. Once the strand information is available, the group of accepted matches can be further limited using that information. Thus, system 20 can have different parts of a query evaluated in parallel, in particular, time consuming parts performed by data manipulation servers. For example, homology engine 26 may begin to operate as records from another part of a query become available, and/or the output from engine 26 may be processed as it is provided, without waiting for all the results. This parallelism is possible because homology engine 26 is accessed from within the query. An advantage of some embodiments of the invention is the savings in response time and in communication and CPU resources of complex queries due to this parallelism. In some cases, such parallel processing of data manipulation may require the data manipulation server or the data manipulation program itself to be modified to take the timing information into account. In one example, a blast server may associate the actual partial information used with a result record set, so that it can further limit the search results after the fact. A third section of the query, labeled WHERE, states the conditions to be fulfilled by those objects selected by the query. In table 2 these conditions include that a field named "finished" of the variable r must have a value "today", a field "querySeq" of the variable be must have a value equal to the value of the field "sequence" of variable r, etc. In this section, the conditions on database objects and on pseudo database objects are stated substantially in the same way. Fig. 2 is a flowchart of the actions performed in processing a query by system 20, in accordance with an embodiment of the present invention. Upon receiving a query, such as the query in table 2, processor 34 divides (60) the query into parts which are performed by the various service providers 24 and 26. Processor 34 determines, for example using methods known in the art, to which service provider each line in the query is directed. In an exemplary embodiment of the present invention, the determination is performed by reference to directory 40. In the query of table 2, processor 34 determines from the second line that variable r is to be searched in the database 24 named "local". From the third line it is determined that variable be is to be "searched" in engine 26 named "blast". Therefore, lines 2 and 6 of the query are directed to the database "local" and lines 3, 7, 8 and 9 are directed to homology engine 26. Lines 1, 4, 5 and 10 do not refer to any database and therefore they are processed by processor 34. Processor 34 then determines (62) the cross-dependence of the parts of the query, i.e., which parts require data from other parts and therefore must receive the data from the other parts before they are performed. In table 2, it is determined from the line 7 that the query part directed to homology engine 26 requires output from another query part. Thereafter, processor 34 sends (64) to OPM translation servers 38 and/or 42 a first round of query parts belonging to their respective service providers 24 and 26. The query parts sent in the first round are those which do not require results from other queries. In table 2, the part relating to variable r, i.e., lines 2 and 6, are sent to the OPM server 38 of database "local". These lines designate a query for all the Fragment objects in the database which have a value "today" in their "finished" field. The OPM server translates (66) the received query part into a language recognized by database "local". The translated query part is passed to the database 24 which processes (68) the query and returns (70) the results of the query to the respective OPM server 38. The OPM server 38 translates (72) the results received from the database 24 into the OPM result format and passes the translated results to processor 34. If (74) the query includes additional query parts which were not performed yet, e.g., query parts dependent on results from other queries, steps 64, 66, 68, 70 and 72 are repeated for the additional query parts. In the example of table 2, the query part formed of lines 3, 7, 8 and 9 is passed to the translation server 42 of homology engine 26. The translation server 42 translates (66) the query part into commands performed by homology engine 26. For each sequence of variable r in the output of database "local", translation server 42 sends a "blastn" command to engine 26 to perform a homology comparison between the sequence and the database "dbEST". The results received from engine 26 are summarized (72) by translation server 42 in the "output" field of the "Blast_Call" object. In some embodiments of the present invention, system 20 begins a second round of processing query parts before a first round on which the second round depends, is finished. Rather, as the first round provides records as results, the second round can manipulate them. Once all the query parts were handled by their respective service providers 24 and 26, processor 34 performs (76) any remaining operations in the queries and provides (78) the user with the results required in the SELECT section of the query. In the example of table 2, processor 34 performs the comparison in line 10 of the query. Variable h refers to the field "sequence" of the sub-object "summary" of the object "output", which represents the results from the blast comparison. Sequences having a length greater than 300 are selected from the blast results. The user is then provided with the value of the "accessor" field of the variable h and with the value of the "fragld" field of the variable r, for all the objects which fulfill the query. The above description has focused on BLAST as a homology method, however, other types of homology servers may also be used, for example BLASTX, BLASTN and BLASTP. Additionally, other types of data manipulation may be provided, for example, error correction, in which a sequence is corrected for various types of errors. Another type of data manipulation server is for example a server which guesses a ternary structure of a protein from its sequence, for example the number of alpha helixes or the protein's affinity to a certain DNA sequence. Alternatively to guessing the structure, the server may provide a grading facility which grades a list of provided sequences for affinity to the protein (or for similarity of their derived protein) or which selects those sequences which have a certain affinity. As can be appreciated, some of these data manipulation servers require only one input record set while others, require more than one input record set. For example, a homology search can compare a first set of records against records in a second database (fixed value) or against a second set of provided records. In some cases, three or more inputs may be provided, for example where a third record set includes a list of rules which apply when comparing the two record sets. In some cases, all the record sets need to be fully specified before the manipulation can be performed. In other cases, only one or possibly not even one of the record sets needs to be fully specified before starting the manipulation. The considerations for optimizing and performing in parallel can be applied to the availability of record sets as well. In some embodiments of the invention, the definitions of how the data manipulation server operates in the absence of data and/or the relative computation time for different tasks thereby are stored in directory 40, optionally along with other information useful for optimizing queries which include data manipulation. An advantage of some of the above embodiments is that it is possible to use substantially any tool developed for manipulation of databases to access data manipulation servers. For example, graphic interface 28 may be an interface developed solely for preparing queries for database servers, as described, for example, in Kosky, A.S., Chen, LA., Markowitz, V.M., and Szeto, E. "Exploring Heterogeneous Biological Databases: Tools and Applications", Proceedings of the 6th International Conference on Extending Database Technology (EDBT'98), Lecture Notes in Computer Science, Vol. 1377, Springer- Verlag, 1998, pp. 499- 513, the disclosure of which is incorporated herein by reference. A user may use this interface to prepare sophisticated queries which include access to data manipulation servers, such as homology search engines. Likewise, optimization tools designed for database queries may be applied, in accordance with the above embodiments, to queries which include reference to data manipulation servers. Such optimization is especially important for queries which reference data manipulation servers because usually these servers require substantially more processing time than databases. Furthermore, the results of the queries are optionally provided in a single common format which allows use of a single standard output interface to display the results. In addition, variables representing database and pseudo database objects may be linked together using methods for linking databases described, for example, in the EDBT'98 publication referenced hereinabove. These linking methods allow simpler statement of queries and hence more transparency to the user who does not need to know the structure of the various servers used. Although the above described embodiments refer to queries which relate to data manipulation servers as to databases, some embodiments of the invention relate to queries which include commands to be performed by data manipulation servers, not necessarily in the same manner in which databases are searched. For example, a query may include an explicit command to be carried out by a data manipulation server, e.g., homology engine 26. Such commands are referred to herein as application specific data type (ASDT) commands. Table 3 (1) SELECT 1 = r.fragld, a =h.accessor (2) FROM r in local fragments (3) b in blast:Output (4) h = bo. summary, sequence (5) WHERE r.fmished = "today" and (6) r.sequence.blast("dbEST") and (7) b. query = r.sequence and (8) h.length > 300 Table 3 shows a query similar to the query of table 2 in which homology engine 26 is activated using explicit commands written in a format acceptable by OPM processor 34. Line 6 in table 3 is a command to perform "blast" on the "sequence" fields of the possible values of variable r. The blast is performed against a database "dbEST". The results from performing the blast command appear in a variable b which is defined in line 3 of table 3. In an embodiment of the present invention, when processor 34 encounters an ASDT command, such as the "blast" command on line 6, it first checks with the database involved, i.e., the "local" database, whether the database supports the command in the specific syntax. Then, processor 34 consults directory 40 to determine a server which has the routine invoked by the command. Processor 34 passes the ASDT command, with whatever data objects to which the command relates, directly to the determined server. Alternatively, the command is passed through translation server 42. The output from the server is optionally passed to processor 34 in a structured form, as described above, so as to allow easy manipulation of the results. In this embodiment, processor 34 does not model homology engine 26 as a database 24, but does access the homology engine from within a complex query which accesses databases. The ASDT commands do not necessarily appear in the WHERE section of the query. Table 4 shows a query in which a command appears in the SELECT section of the query. The command is processed after the query is evaluated, at a stage of presenting the results of the query. T Taabbllee 44 (1) SELECT x. gelid 1 J x.image.crop(0,0,200,400).display() (3) FROM x in Gel ( (44)) W WHHEERREE x.gelld = "gel_000111" In table 4, an "image" field of the variables x which satisfy the query are passed to a routine "crop", which returns a piece of an image having specified coordinates. The results from the routine "crop" are passed to a routine "display" which displays the result in any desired manner. The routines referenced by the ASDT commands may be evaluated by a data manipulation server as described above with reference to the blast command evaluated by homology engine 26. Alternatively or additionally, some routines may be situated within processor 34 or in directory 40. The statement of the commands within a query rather than invoking the commands on the results received from a query, is simpler to the user. In addition, invoking the commands from within the query allows performing the command before the results are passed to end-user 22. In many cases this conserves substantial communication resources. In some cases users accessing databases are frequently interested in attributes which may be extracted from the image of a complex data field, for example, a gel. Such attributes include, for example, the length of an image of the gel, its average intensity or specific lanes of the image. Therefore, some databases have redundant data fields which have values for these attributes. By using ASDT commands these redundant fields are not needed. The routines invoked by the ASDT commands may be stored in the database 24, on a separate data manipulation server, in directory 40 and/or in processor 34. It is noted that the ASDT commands may be invoked implicitly as described above with reference to Fig. 2. In some embodiments of the invention, for each command, a command data object is defined which includes input and output fields of the command. An access to an output field of the object is translated by system 20 as an implicit invocation of the command. It will be appreciated that the above described methods may be varied in many ways, including, changing the order of steps, and the exact implementation used. It should also be appreciated that the above described description of methods and apparatus are to be interpreted as including apparatus for carrying out the methods and methods of using the apparatus. Especially, the above methods should be interpreted to describe software for carrying out a complete method as described above, a part thereof or software which modifies an existing software to perform as described above. In addition, the scope of the invention includes such software stored in a computer readable media, such as a disk, stored in a memory or executing on a computer. The present invention has been described using non-limiting detailed descriptions of embodiments thereof that are provided by way of example and are not intended to limit the scope of the invention. It should be understood that features and/or steps described with respect to one embodiment may be used with other embodiments and that not all embodiments of the invention have all of the features and/or steps shown in a particular figure or described with respect to one of the embodiments. Variations of embodiments described will occur to persons of the art. It is noted that some of the above described embodiments describe the best mode contemplated by the inventors and therefore include structure, acts or details of structures and acts that may not be essential to the invention and which are described as examples. Structure and acts described herein are replaceable by equivalents which perform the same function, even if the structure or acts are different, as known in the art. Therefore, the scope of the invention is limited only by the elements and limitations as used in the claims. When used in the following claims, the terms "comprise", "include", "have" and their conjugates mean "including but not limited to".

Claims: CLAIMS 1. A multi-database query system which queries a plurality of databases and servers, comprising: an input which receives queries in a structured form; and a translation server which translates at least a part of a received query into commands recognized by a data manipulation server. 2. A system according to claim 1, comprising a processor which parses the received query into parts according to the databases and servers to which they relate. 3. A system according to claim 1 or claim 2, wherein the structured form comprises a form used to query databases. 4. A system according to any of claims 1-3, wherein the input receives a query which relates to at least one database and at least one data manipulation server. 5. A system according to any of claims 1-4, wherein the translation server models results from the data manipulation server into database objects. 6. A system according to any of claims 1-5, wherein the data manipulation server comprises a server which receives input from a least two different sources. 7. A system according to claim 6, wherein the data manipulation server comprises a homology comparison engine. 8. A method of accessing a data manipulation server from a multi-database query system, comprising: providing the query system with a query which includes a first directive assigning a value to at least one field of an input object associated with the data manipulation server and a second directive which determines a value of at least one field of an output object associated with the data manipulation server; and invoking the data manipulation server responsive to the second directive. 9. A method according to claim 8, wherein providing the query comprises preparing the query using a graphical interface designed for querying structured databases. 10. A system according to claim 8 or claim 9, wherein the data manipulation server comprises a homology engine. 11. A method of performing a database search using a multi-database query system, comprising: providing the query system with a query which includes at least one directive related to a database and at least one directive related to a data manipulation server, wherein the directives are stated in an identical structural format; translating the directives into commands recognized by the database and the data manipulation server; and submitting the commands respectively to the data manipulation server and to the database. 12. A method according to claim 11, wherein the data manipulation server comprises a homology comparison engine. 13. A method according to claim 11 or claim 12, wherein translating the directives comprises identifying, by a query processor, the directives directed to the database and the directives directed to the data manipulation server. 14. A method according to claim 13, wherein translating the directives comprises passing the directives to translation servers associated with the database or data manipulation server to which the directives are directed. 15. A method according to claim 13 or claim 14, comprising determining an order for the directives to be processed in and submitting the translated directives to the data manipulation server and to the database according to the determined order. 16. A method according to claim 11, comprising receiving results from said submission and translating the results into structured objects. 17. A method according to claim 16, wherein translating the results into structured objects comprises translating the results to structured objects related to the directives. 18. A method according to any of claims 11-17, wherein providing a query comprises providing a query in an Object Protocol Model (OPM)-like language.

Inventors: TOPALOGLOU THODOROS, TOPALOGLOU, THODOROS
Applicants: GENE LOGIC INC, TOPALOGLOU THODOROS, GENE LOGIC INC., TOPALOGLOU, THODOROS
Application year: 2000
Main classification: G06F17
IPC codes: G06F17, G06F19