Debian Codegraph @

blib/man3/TFBS::DB::JASPAR4.3pm

raw ◀ ▶
1 Debian patch touch this file
1 .\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings. \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote. \*(C+ will
21 .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 . ds -- \(*W-
28 . ds PI pi
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
31 . ds L" ""
32 . ds R" ""
33 . ds C` ""
34 . ds C' ""
35 'br\}
36 .el\{\
37 . ds -- \|\(em\|
38 . ds PI \(*p
39 . ds L" ``
40 . ds R" ''
41 'br\}
42 .\"
43 .\" Escape single quotes in literal strings from groff's Unicode transform.
44 .ie \n(.g .ds Aq \(aq
45 .el .ds Aq '
46 .\"
47 .\" If the F register is turned on, we'll generate index entries on stderr for
48 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
49 .\" entries marked with X<> in POD. Of course, you'll have to process the
50 .\" output yourself in some meaningful fashion.
51 .ie \nF \{\
52 . de IX
53 . tm Index:\\$1\t\\n%\t"\\$2"
54 ..
55 . nr % 0
56 . rr F
57 .\}
58 .el \{\
59 . de IX
60 ..
61 .\}
62 .\"
63 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
64 .\" Fear. Run. Save yourself. No user-serviceable parts.
65 . \" fudge factors for nroff and troff
66 .if n \{\
67 . ds #H 0
68 . ds #V .8m
69 . ds #F .3m
70 . ds #[ \f1
71 . ds #] \fP
72 .\}
73 .if t \{\
74 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
75 . ds #V .6m
76 . ds #F 0
77 . ds #[ \&
78 . ds #] \&
79 .\}
80 . \" simple accents for nroff and troff
81 .if n \{\
82 . ds ' \&
83 . ds ` \&
84 . ds ^ \&
85 . ds , \&
86 . ds ~ ~
87 . ds /
88 .\}
89 .if t \{\
90 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
91 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
92 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
93 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
94 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
95 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
96 .\}
97 . \" troff and (daisy-wheel) nroff accents
98 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
99 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
100 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
101 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
102 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
103 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
104 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
105 .ds ae a\h'-(\w'a'u*4/10)'e
106 .ds Ae A\h'-(\w'A'u*4/10)'E
107 . \" corrections for vroff
108 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
109 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
110 . \" for low resolution devices (crt and lpr)
111 .if \n(.H>23 .if \n(.V>19 \
112 \{\
113 . ds : e
114 . ds 8 ss
115 . ds o a
116 . ds d- d\h'-1'\(ga
117 . ds D- D\h'-1'\(hy
118 . ds th \o'bp'
119 . ds Th \o'LP'
120 . ds ae ae
121 . ds Ae AE
122 .\}
123 .rm #[ #] #H #V #F C
124 .\" ========================================================================
125 .\"
126 .IX Title "TFBS::DB::JASPAR4 3"
127 .TH TFBS::DB::JASPAR4 3 "2005-01-04" "perl v5.12.4" "User Contributed Perl Documentation"
128 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
129 .\" way too many mistakes in technical documents.
130 .if n .ad l
131 .nh
132 .SH "NAME"
133 TFBS::DB::JASPAR4 \- interface to MySQL relational database of pattern matrices
134 .SH "SYNOPSIS"
135 .IX Header "SYNOPSIS"
136 .IP "\(bu" 4
137 creating a database object by connecting to the existing JASPAR2\-type database
138 .Sp
139 .Vb 3
140 \& my $db = TFBS::DB::JASPAR4\->connect("dbi:mysql:JASPAR4:myhost",
141 \& "myusername",
142 \& "mypassword");
143 .Ve
144 .IP "\(bu" 4
145 retrieving a TFBS::Matrix::* object from the database
146 .Sp
147 .Vb 2
148 \& # retrieving a PFM by ID
149 \& my $pfm = $db\->get_Matrix_by_ID(\*(AqM0079\*(Aq,\*(AqPFM\*(Aq);
150 \&
151 \& #retrieving a PWM by name
152 \& my $pwm = $db\->get_Matrix_by_name(\*(AqNF\-kappaB\*(Aq, \*(AqPWM\*(Aq);
153 .Ve
154 .IP "\(bu" 4
155 retrieving a set of matrices as a TFBS::MatrixSet object according to various criteria
156 .Sp
157 .Vb 4
158 \& # retrieving a set of PWMs from a list of IDs:
159 \& my @IDlist = (\*(AqM0019\*(Aq, \*(AqM0045\*(Aq, \*(AqM0073\*(Aq, \*(AqM0101\*(Aq);
160 \& my $matrixset = $db\->get_MatrixSet(\-IDs => \e@IDlist,
161 \& \-matrixtype => "PWM");
162 \&
163 \& # retrieving a set of ICMs from a list of names:
164 \& my @namelist = (\*(Aqp50\*(Aq, \*(Aqp53\*(Aq, \*(AqHNF\-1\*(Aq. \*(AqGATA\-1\*(Aq, \*(AqGATA\-2\*(Aq, \*(AqGATA\-3\*(Aq);
165 \& my $matrixset = $db\->get_MatrixSet(\-names => \e@namelist,
166 \& \-matrixtype => "ICM");
167 \&
168 \& # retrieving a set of all PFMs in the database
169 \& # derived from human genes:
170 \& my $matrixset = $db\->get_MatrixSet(\-species => [\*(AqHomo sapiens\*(Aq],
171 \& \-matrixtype => "PFM");
172 .Ve
173 .IP "\(bu" 4
174 creating a new JASPAR4\-type database named \s-1MYJASPAR4:\s0
175 .Sp
176 .Vb 3
177 \& my $db = TFBS::DB::JASPAR4\->create("dbi:mysql:MYJASPAR4:myhost",
178 \& "myusername",
179 \& "mypassword");
180 .Ve
181 .IP "\(bu" 4
182 storing a matrix in the database (currently only PFMs):
183 .Sp
184 .Vb 2
185 \& #let $pfm is a TFBS::Matrix::PFM object
186 \& $db\->store_Matrix($pfm);
187 .Ve
188 .SH "DESCRIPTION"
189 .IX Header "DESCRIPTION"
190 \&\s-1TFBS::DB::JASPAR4\s0 is a read/write database interface module that
191 retrieves and stores TFBS::Matrix::* and TFBS::MatrixSet
192 objects in a relational database. The interface is nearly identical
193 to the JASPAR2interface, while the underlying data model is different
194 .SH "JASPAR2 DATA MODEL"
195 .IX Header "JASPAR2 DATA MODEL"
196 \&\s-1JASPAR4\s0 is working name for a relational database model used
197 for storing transcriptional factor pattern matrices in a MySQL database.
198 It was initially designed (\s-1JASPAR2\s0) to store matrices for the \s-1JASPAR\s0 database of
199 high quality eukaryotic transcription factor specificity profiles by
200 Albin Sandelin and Wyeth W. Wasserman. Besides the profile matrix itself,
201 this data model stores profile \s-1ID\s0 (unique), name, structural class,
202 basic taxonomic and bibliographic information
203 as well as some additional opseqdbtional tags.
204 .PP
205 Tags that are commonly used in the actual \s-1JASPAR\s0 database include
206 'medline' # PubMed \s-1ID\s0
207 'species' # Species name
208 'superclass' #Species supergroup, eg 'vertebrate', 'plant' etc
209 'total_ic' # total information content \- redundant, present
210 # for historical
211 'type' #experimental nethod
212 'acc' #accession number for \s-1TF\s0 protein sequence
213 'seqdb' #corresponding database name
214 .PP
215 but any tag is storable and searchable.
216 .PP
217 \&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \s-1ADVANCED\s0 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
218 .PP
219 For the developers and the curious, here is the \s-1JASPAR4\s0 data model:
220 .PP
221 It is our best intention to hide the details of this data model, which we
222 are using on a daily basis in our work, from most \s-1TFBS\s0 users.
223 Most users should only know the methods to store the data and
224 which tags are supported.
225 .PP
226 \&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
227 .SH "FEEDBACK"
228 .IX Header "FEEDBACK"
229 Please send bug reports and other comments to the author.
230 .SH "AUTHOR \- Boris Lenhard"
231 .IX Header "AUTHOR - Boris Lenhard"
232 Boris Lenhard <[email protected]>
233 .SH "APPENDIX"
234 .IX Header "APPENDIX"
235 The rest of the documentation details each of the object
236 methods. Internal methods are preceded with an underscore.
237 .SS "new"
238 .IX Subsection "new"
239 .Vb 3
240 \& Title : new
241 \& Usage : DEPRECATED \- for backward compatibility only
242 \& Use connect() or create() instead
243 .Ve
244 .SS "connect"
245 .IX Subsection "connect"
246 .Vb 10
247 \& Title : connect
248 \& Usage : my $db =
249 \& TFBS::DB::JASPAR4\->connect("dbi:mysql:DATABASENAME:HOSTNAME",
250 \& "USERNAME",
251 \& "PASSWORD");
252 \& Function: connects to the existing JASPAR4\-type database and
253 \& returns a database object that interfaces the database
254 \& Returns : a TFBS::DB::JASPAR4 object
255 \& Args : a standard database connection triplet
256 \& ("dbi:mysql:DATABASENAME:HOSTNAME", "USERNAME", "PASSWORD")
257 \& In place of DATABASENAME, HOSTNAME, USERNAME and PASSWORD,
258 \& use the actual values. PASSWORD and USERNAME might be
•259 \& optional, depending on the user\*(Aqs access permissions for
260 \& the database server.
261 .Ve
262 .SS "dbh"
263 .IX Subsection "dbh"
264 .Vb 10
265 \& Title : dbh
266 \& Usage : my $dbh = $db\->dbh();
267 \& $dbh\->do("UPDATE matrix_data SET name=\*(AqADD1\*(Aq WHERE NAME=\*(AqSREBP2\*(Aq");
268 \& Function: returns the DBI database handle of the MySQL database
269 \& interfaced by $db; THIS IS USED FOR WRITING NEW METHODS
270 \& FOR DIRECT RELATIONAL DATABASE MANIPULATION \- if you
271 \& have write access AND do not know what you are doing,
272 \& you can severely corrupt the data
273 \& For documentation about database handle methods, see L<DBI>
274 \& Returns : the database (DBI) handle of the MySQL JASPAR2\-type
275 \& relational database associated with the TFBS::DB::JASPAR2
276 \& object
277 \& Args : none
278 .Ve
279 .SS "store_Matrix"
280 .IX Subsection "store_Matrix"
281 .Vb 11
282 \& Title : store_Matrix
283 \& Usage : $db\->store_Matrix($matrixobject);
284 \& Function: Stores the contents of a TFBS::Matrix::DB object in the database
285 \& Returns : 0 on success; $@ contents on failure
286 \& (this is too C\-like and may change in future versions)
287 \& Args : (PFM_object)
288 \& A TFBS::Matrix::PFM, FBS::Matrix::PWM or FBS::Matrix::ICM object.
289 \& PFM object are recommended to use, as they are eaily converted to
290 \& other formats
291 \& Comment : this is an experimental method that is not 100% bulletproof;
292 \& use at your own risk
293 .Ve
294 .SS "get_Matrix_by_ID"
295 .IX Subsection "get_Matrix_by_ID"
296 .Vb 9
297 \& Title : get_Matrix_by_ID
298 \& Usage : my $pfm = $db\->get_Matrix_by_ID(\*(AqM00034\*(Aq, \*(AqPFM\*(Aq);
299 \& Function: fetches matrix data under the given ID from the
300 \& database and returns a TFBS::Matrix::* object
301 \& Returns : a TFBS::Matrix::* object; the exact type of the
302 \& object depending on what form the matrix is stored
303 \& in the database (PFM is default)
304 \& Args : (Matrix_ID)
305 \& Matrix_ID is a string;
306 .Ve
307 .SS "get_Matrix_by_name"
308 .IX Subsection "get_Matrix_by_name"
309 .Vb 8
310 \& Title : get_Matrix_by_name
311 \& Usage : my $pfm = $db\->get_Matrix_by_name(\*(AqHNF\-1\*(Aq);
312 \& Function: fetches matrix data under the given name from the
313 \& database and returns a TFBS::Matrix::* object
314 \& Returns : a TFBS::Matrix::* object; the exact type of the object
315 \& depending on what form the matrix object was stored in
316 \& the database (default PFM))
317 \& Args : (Matrix_name)
318 \&
319 \& Warning : According to the current JASPAR4 data model, name is
320 \& not necessarily a unique identifier. In the case where
321 \& there are several matrices with the same name in the
322 \& database, the function fetches the first one and prints
323 \& a warning on STDERR. You\*(Aqve been warned.
324 .Ve
325 .SS "get_MatrixSet"
326 .IX Subsection "get_MatrixSet"
327 .Vb 10
328 \& Title : get_MatrixSet
329 \& Usage : my $matrixset = $db\->get_MatrixSet(%args);
330 \& Function: fetches matrix data under for all matrices in the database
331 \& matching criteria defined by the named arguments
332 \& and returns a TFBS::MatrixSet object
333 \& Returns : a TFBS::MatrixSet object
334 \& Args : This method accepts named arguments, corresponding to arbitrary tags.
335 \& Note that this is different from JASPAR2. As any tag is supported for
336 \& database storage, any tag can be used for information retrieval.
337 \& Additionally, arguments as \*(Aqname\*(Aq and \*(Aqclass\*(Aq can be used (even though
338 \& they are not tags.
339 \& As with get_Matrix methods, it is important to realize taht any matrix
340 \& format can be stored in the database: the TFBS::MatrixSet might therefore
341 \& consist of PFMs, ICMs and PWMS, depending on how matrices are stored,
342 \&
343 \& Examples include
344 \& \-ID # a reference to an array of IDs (strings)
345 \& \-name # a reference to an array of
346 \& # transcription factor names (string)
347 \& \-class # a reference to an array of
348 \& # structural class names (strings)
349 \& \-species # a reference to an array of
350 \& # Latin species names (strings)
351 \& \-sysgroup # a reference to an array of
352 \& # higher taxonomic categories (strings)
353 \&
354 \&
355 \& \-min_ic # float, minimum total information content
356 \& # of the matrix. IMPORTANT:if retrieved matrices are in PWM
357 \& format there is no way to measureinformation content.
358 \& \-matrixtype #string describing type of matrix to retrieve. If left out, the format
359 \& will revert to the database format. Note that this option only works
360 \& if the database format is pfm
361 .Ve
362 .PP
363 The arguments that expect list references are used in database
364 query formulation: elements within lists are combined with '\s-1OR\s0'
365 operators, and the lists of different types with '\s-1AND\s0'. For example,
366 .PP
367 .Vb 3
368 \& my $matrixset = $db\->(\-class => [\*(AqTRP_CLUSTER\*(Aq, \*(AqFORKHEAD\*(Aq],
369 \& \-species => [\*(AqHomo sapiens\*(Aq, \*(AqMus musculus\*(Aq],
370 \& );
371 .Ve
372 .PP
373 gives a set of TFBS::Matrix::PFM objects (given that the matrix models are stored as such)
374 whose (structural clas is '\s-1TRP_CLUSTER\s0' \s-1OR\s0'\s-1FORKHEAD\s0') \s-1AND\s0 (the species they are derived
375 from is 'Homo sapiens'\s-1OR\s0 'Mus musculus').
376 .PP
377 The \-min_ic filter is applied after the query in the sense that the
378 matrices profiles with total infromation content less than specified
379 are not included in the set.
380 .SS "delete_Matrix_having_ID"
381 .IX Subsection "delete_Matrix_having_ID"
382 .Vb 9
383 \& Title : delete_Matrix_having_ID
384 \& Usage : $db\->delete_Matrix_with_ID(\*(AqM00045\*(Aq);
385 \& Function: Deletes the matrix having the given ID from the database
386 \& Returns : 0 on success; $@ contents on failure
387 \& (this is too C\-like and may change in future versions)
388 \& Args : (ID)
389 \& A string
390 \& Comment : Yeah, yeah, \*(Aqdelete_Matrix_having_ID\*(Aq is a stupid name
391 \& for a method, but at least it should be obviuos what it does.
392 .Ve