annotate commons/core/sql/ITablePathAdaptator.py @ 16:6135c3075bc5

Deleted selected files
author m-zytnicki
date Mon, 22 Apr 2013 11:09:41 -0400
parents 769e306b7933
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
1 # Copyright INRA (Institut National de la Recherche Agronomique)
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
2 # http://www.inra.fr
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
3 # http://urgi.versailles.inra.fr
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
4 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
5 # This software is governed by the CeCILL license under French law and
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
6 # abiding by the rules of distribution of free software. You can use,
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
7 # modify and/ or redistribute the software under the terms of the CeCILL
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
8 # license as circulated by CEA, CNRS and INRIA at the following URL
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
9 # "http://www.cecill.info".
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
10 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
11 # As a counterpart to the access to the source code and rights to copy,
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
12 # modify and redistribute granted by the license, users are provided only
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
13 # with a limited warranty and the software's author, the holder of the
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
14 # economic rights, and the successive licensors have only limited
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
15 # liability.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
16 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
17 # In this respect, the user's attention is drawn to the risks associated
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
18 # with loading, using, modifying and/or developing or reproducing the
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
19 # software by the user in light of its specific status of free software,
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
20 # that may mean that it is complicated to manipulate, and that also
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
21 # therefore means that it is reserved for developers and experienced
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
22 # professionals having in-depth computer knowledge. Users are therefore
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
23 # encouraged to load and test the software's suitability as regards their
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
24 # requirements in conditions enabling the security of their systems and/or
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
25 # data to be ensured and, more generally, to use and operate it in the
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
26 # same conditions as regards security.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
27 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
28 # The fact that you are presently reading this means that you have had
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
29 # knowledge of the CeCILL license and that you accept its terms.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
30
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
31
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
32 ## Interface for TablePathAdaptator
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
33 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
34 class ITablePathAdaptator (object):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
35
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
36 ## Give the data contained in the table as a list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
37 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
38 # @return lPaths list of path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
39 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
40 def getListOfAllPaths( self ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
41 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
42
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
43 ## Give a list of Path instances having the same identifier
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
44 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
45 # @param id integer identifier number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
46 # @return lPath a list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
47 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
48 # @warning old name was getPathList_from_num
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
49 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
50 def getPathListFromId( self, id ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
51 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
52
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
53 ## Give a list of Path instances according to the given list of identifier numbers
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
54 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
55 # @param lId integer list
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
56 # @return lPath a list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
57 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
58 # @warning old name was getPathList_from_numlist
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
59 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
60 def getPathListFromIdList( self, lId ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
61 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
62
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
63 ## Give a list of Path instances having the same given query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
64 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
65 # @param query string name of the query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
66 # @return lPath a list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
67 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
68 # @warning old name was getPathList_from_query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
69 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
70 def getPathListFromQuery( self, query ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
71 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
72
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
73 ## Give a list with all the distinct identifiers corresponding to the query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
74 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
75 # @param query string name of the query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
76 # @return lId a list of integer
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
77 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
78 # @warning old name was getPathList_from_query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
79 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
80 def getIdListFromQuery( self, query ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
81 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
82
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
83 ## Give a list with all the distinct identifiers corresponding to the subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
84 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
85 # @param subject string name of the subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
86 # @return lId a list of integer
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
87 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
88 # @warning old name was getPathList_from_subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
89 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
90 def getIdListFromSubject( self, subject ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
91 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
92
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
93 ## Insert a path instance
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
94 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
95 # @param obj a path instance
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
96 # @param delayed boolean indicating if the insert must be delayed
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
97 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
98 # @note data are inserted such that the query is always on the direct strand
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
99 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
100 # @warning old name was insAPath
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
101 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
102 def insert(self, obj, delayed = False):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
103 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
104
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
105 ## Insert a list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
106 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
107 # @param l a list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
108 # @param delayed boolean
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
109 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
110 # @warning old name was insPathList
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
111 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
112 def insertList(self, l, delayed = False):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
113 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
114
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
115 ## Give a list of the identifier number contained in the table
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
116 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
117 # @return l integer list
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
118 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
119 # @warning old name was getPath_num
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
120 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
121 def getIdList(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
122 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
123
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
124 ## Give a list of Path instances having the same given subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
125 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
126 # @param subject string name of the subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
127 # @return lPath a list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
128 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
129 # @warning old name was getPath_num
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
130 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
131 def getPathListFromSubject( self, subject ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
132 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
133
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
134 ## Give a list of the distinct subject names present in the table
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
135 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
136 # @return lDistinctTypeNames string list
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
137 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
138 # @warning old name was getListDistinctSubjectName
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
139 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
140 def getSubjectList(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
141 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
142
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
143 ## Give a list of the distinct query names present in the table
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
144 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
145 # @return lDistinctQueryNames string list
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
146 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
147 # @warning old name was getListDistinctQueryName
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
148 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
149 def getQueryList(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
150 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
151
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
152 ## Give a list of Set instance list from the path contained on a query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
153 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
154 # @param queryName string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
155 # @return lSet list of set instance
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
156 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
157 def getSubjectListFromQuery (self, queryName):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
158 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
159
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
160 ## Give a list of Path instances with the given query and subject, both on direct strand
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
161 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
162 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
163 # @param subject string subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
164 # @return lPaths list of path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
165 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
166 # @warning old name was getListPathsWithDirectQueryDirectSubjectPerQuerySubject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
167 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
168 def getPathListWithDirectQueryDirectSubjectFromQuerySubject( self, query, subject ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
169 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
170
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
171 ## Give a list of Path instances with the given query on direct strand and the given subject on reverse strand
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
172 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
173 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
174 # @param subject string subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
175 # @return lPaths list of path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
176 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
177 # @warning old name was getListPathsWithDirectQueryReverseSubjectPerQuerySubject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
178 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
179 def getPathListWithDirectQueryReverseSubjectFromQuerySubject( self, query, subject ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
180 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
181
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
182 ## Give the number of Path instances with the given query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
183 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
184 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
185 # @return pathNb integer the number of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
186 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
187 # @warning old name was getNbPaths_from_query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
188 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
189 def getNbPathsFromQuery( self, query ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
190 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
191
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
192 ## Give the number of Path instances with the given subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
193 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
194 # @param subject string subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
195 # @return pathNb integer the number of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
196 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
197 # @warning old name was getNbPaths_from_subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
198 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
199 def getNbPathsFromSubject( self, subject ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
200 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
201
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
202 ## Give the number of distinct path identifiers
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
203 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
204 # @return idNb integer the number of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
205 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
206 # @warning old name was getNbAllPathsnums
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
207 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
208 def getNbIds( self ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
209 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
210
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
211 ## Give the number of distinct path identifiers for a given subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
212 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
213 # subjectName string subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
214 # @return idNb integer the number of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
215 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
216 # @warning old name was getNbPathsnums_from_subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
217 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
218 def getNbIdsFromSubject( self, subjectName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
219 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
220
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
221 ## Give the number of distinct path identifiers for a given query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
222 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
223 # @param queryName string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
224 # @return idNb integer the number of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
225 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
226 # @warning old name was getNbPathsnums_from_query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
227 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
228 def getNbIdsFromQuery( self, queryName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
229 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
230
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
231 ## Give a list of Path instances overlapping a given region
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
232 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
233 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
234 # @param start integer start coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
235 # @param end integer end coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
236 # @return lPath list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
237 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
238 def getPathListOverlappingQueryCoord( self, query, start, end ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
239 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
240
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
241 ## Give a list of Set instances overlapping a given region
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
242 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
243 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
244 # @param start integer start coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
245 # @param end integer end coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
246 # @return lSet list of Set instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
247 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
248 # @warning old name was getSetList_from_qcoord
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
249 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
250 def getSetListOverlappingQueryCoord(self, query, start, end):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
251 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
252
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
253 ## Give a list of Path instances included in a given query region
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
254 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
255 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
256 # @param start integer start coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
257 # @param end integer end coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
258 # @return lPaths list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
259 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
260 # @warning old name was getIncludedPathList_from_qcoord
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
261 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
262 def getPathListIncludedInQueryCoord( self, query, start, end ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
263 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
264
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
265 ## Give a list of Set instances included in a given region
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
266 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
267 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
268 # @param start integer start coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
269 # @param end integer end coordinate
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
270 # @return lSet list of Set instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
271 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
272 # @warning old name was getInSetList_from_qcoord
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
273 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
274 def getSetListIncludedInQueryCoord(self, query, start, end):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
275 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
276
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
277 ## Give a a list of Path instances sorted by query coordinates
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
278 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
279 # @return lPaths list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
280 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
281 # @warning old name was getListOfPathsSortedByQueryCoord
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
282 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
283 def getPathListSortedByQueryCoord( self ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
284 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
285
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
286 ## Give a a list of Path instances sorted by query coordinates for a given query
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
287 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
288 # @param queryName string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
289 # @return lPaths list of Path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
290 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
291 def getPathListSortedByQueryCoordFromQuery( self, queryName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
292 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
293
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
294 ## Give a list of path instances sorted by increasing E-value
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
295 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
296 # queryName string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
297 # @return lPaths list of path instances
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
298 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
299 def getPathListSortedByIncreasingEvalueFromQuery( self, queryName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
300 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
301
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
302 ## Give a cumulative length of all paths (fragments) for a given subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
303 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
304 # @param subjectName string subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
305 # @return nb Cumulative length for all path
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
306 # @warning doesn't take into account the overlaps !!
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
307 # @warning old name was getCumulPathLength_from_subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
308 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
309 def getCumulLengthFromSubject( self, subjectName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
310 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
311
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
312 ## Give a list of the length of all chains of paths for a given subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
313 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
314 # @param subjectName string name of the subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
315 # @return lChainLengths list of lengths per chain of paths
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
316 # @warning doesn't take into account the overlaps !!
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
317 # @warning old name was getListChainLength_from_subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
318 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
319 def getChainLengthListFromSubject( self, subjectName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
320 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
321
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
322 ## Give a list of identity of all chains of paths for a given subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
323 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
324 # @param subjectName string name of the subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
325 # @return lChainIdentities list of identities per chain of paths
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
326 # @warning doesn't take into account the overlaps !!
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
327 # @warning old name was getListChainIdentity_from_subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
328 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
329 def getChainIdentityListFromSubject( self, subjectName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
330 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
331
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
332 ## Give a list of Path lists sorted by weighted identity.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
333 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
334 # @param qry query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
335 # @return lChains list of chains
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
336 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
337 def getListOfChainsSortedByAscIdentityFromQuery( self, qry ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
338 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
339
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
340 ## Give a list of the length of all paths for a given subject name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
341 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
342 # @param subjectName string name of the subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
343 # @return lPathLengths list of lengths per path
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
344 # @warning doesn't take into account the overlaps !!
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
345 # @warning old name was getListPathLength_from_subject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
346 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
347 def getPathLengthListFromSubject( self, subjectName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
348 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
349
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
350 ## Give a a list with all distinct identifiers for a given subject sorted in decreasing order according to the length of the chains
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
351 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
352 # @return lPathNums a list of paths Id
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
353 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
354 # @warning old name was getPathNumListSortedByDecreasingChainLengthFromSubject
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
355 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
356 def getIdListSortedByDecreasingChainLengthFromSubject( self, subjectName ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
357 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
358
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
359 ## Give a list of Set instance list from the path contained on a query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
360 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
361 # @param query string query name
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
362 # @return lSet list of set instance
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
363 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
364 # @warning old name was getSetList_from_contig
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
365 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
366 def getSetListFromQuery(self, query):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
367 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
368
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
369 ## Delete path corresponding to a given identifier number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
370 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
371 # @param id integer identifier number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
372 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
373 # @warning old name was delPath_from_num
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
374 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
375 def deleteFromId(self,id):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
376 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
377
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
378 ## Delete path corresponding to a given list of identifier number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
379 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
380 # @param lId list of identifier number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
381 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
382 # @warning old name was delPath_from_numlist
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
383 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
384 def deleteFromIdList(self,lId):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
385 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
386
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
387 ## Join two path by changing id number of id1 and id2 path to the least of id1 and id2
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
388 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
389 # @param id1 integer path number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
390 # @param id2 integer path number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
391 # @return newId integer id used to join
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
392 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
393 # @warning old name was joinPath
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
394 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
395 def joinTwoPaths(self,id1,id2):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
396 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
397
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
398 ## Get a new id number
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
399 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
400 # @return newId integer new id
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
401 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
402 def getNewId(self):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
403 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
404
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
405 ## Test if table is empty
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
406 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
407 def isEmpty( self ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
408 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
409
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
410 ## Create a 'pathRange' table from a 'path' table.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
411 # The output table summarizes the information per identifier.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
412 # The min and max value are taken.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
413 # The identity is averaged over the fragments.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
414 # It may overwrite an existing table.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
415 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
416 # @param outTable string name of the output table
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
417 # @return outTable string Table which summarizes the information per identifier
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
418 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
419 def path2PathRange( self, outTable="" ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
420 pass
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
421
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
422 ## Return the number of times a given instance is present in the table
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
423 # The identifier is not considered,
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
424 # only coordinates, score, E-value and identity.
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
425 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
426 # @return nbOcc integer
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
427 #
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
428 def getNbOccurrences( self, iPath ):
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
429 pass