| 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::JASPAR2 3" |
| 127 |
.TH TFBS::DB::JASPAR2 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::JASPAR2 \- 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::JASPAR2\->connect("dbi:mysql:JASPAR2: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 JASPAR2\-type database named \s-1MYJASPAR2:\s0 |
| 175 |
.Sp |
| 176 |
.Vb 3 |
| 177 |
\& my $db = TFBS::DB::JASPAR2\->create("dbi:mysql:MYJASPAR2: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::JASPAR2\s0 is a read/write database interface module that |
| 191 |
retrieves and stores TFBS::Matrix::* and TFBS::MatrixSet |
| 192 |
objects in a relational database. |
| 193 |
.SH "JASPAR2 DATA MODEL" |
| 194 |
.IX Header "JASPAR2 DATA MODEL" |
| 195 |
\&\s-1JASPAR2\s0 is working name for a relational database model used |
| 196 |
for storing transcriptional factor pattern matrices in a MySQL database. |
| 197 |
It was initially designed to store matrices for the \s-1JASPAR\s0 database of |
| 198 |
high quality eukaryotic transcription factor specificity profiles by |
| 199 |
Albin Sandelin and Wyeth W. Wasserman. Besides the profile matrix itself, |
| 200 |
this data model stores profile \s-1ID\s0 (unique), name, structural class, |
| 201 |
basic taxonomic and bibliographic information |
| 202 |
as well as some additional optional tags. |
| 203 |
.PP |
| 204 |
Due to its data model, which precedeed the design of the |
| 205 |
module, \s-1TFBS::DB::JASPAR2\s0 cannot store arbitrary tags for a matrix. |
| 206 |
.PP |
| 207 |
The supported tags are |
| 208 |
'acc' # (accession number; |
| 209 |
# originally for transcription factor protein seq) |
| 210 |
'seqdb' # sequence database where 'acc' comes from |
| 211 |
'medline' # PubMed \s-1ID\s0 |
| 212 |
'species' # Species name |
| 213 |
'sysgroup' |
| 214 |
'total_ic' # total information content \- redundant, present |
| 215 |
# for historical |
| 216 |
\&\*(L"medline\*(R" => ($self\->_get_medline($ID) or "\*(L"), |
| 217 |
\*(R"species\*(L" => ($self\->_get_species($ID) or \*(R"\*(L"), |
| 218 |
\*(R"sysgroup\*(L"=> ($self\->_get_sysgroup($ID) or \*(R"\*(L"), |
| 219 |
\*(R"type\*(L" => ($self\->_get_type($ID) or \*(R"\*(L"), |
| 220 |
\*(R"seqdb\*(L" => ($self\->_get_seqdb($ID) or \*(R"\*(L"), |
| 221 |
\*(R"acc\*(L" => ($self\->_get_acc($ID) or \*(R"\*(L"), |
| 222 |
\*(R"total_ic"= |
| 223 |
.PP |
| 224 |
\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \s-1ADVANCED\s0 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- |
| 225 |
.PP |
| 226 |
For the developers and the curious, here is the \s-1JASPAR2\s0 data model: |
| 227 |
.PP |
| 228 |
.Vb 12 |
| 229 |
\& CREATE TABLE matrix_data ( |
| 230 |
\& ID varchar(16) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 231 |
\& pos_ID varchar(24) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 232 |
\& base enum(\*(AqA\*(Aq,\*(AqC\*(Aq,\*(AqG\*(Aq,\*(AqT\*(Aq), |
| 233 |
\& position tinyint(3) unsigned, |
| 234 |
\& raw int(3) unsigned, |
| 235 |
\& info float(7,5) unsigned, \-\- calculated |
| 236 |
\& pwm float(7,5) unsigned, \-\- calculated |
| 237 |
\& normalized float(7,5) unsigned, |
| 238 |
\& PRIMARY KEY (pos_ID), |
| 239 |
\& KEY id_index (ID) |
| 240 |
\& ); |
| 241 |
\& |
| 242 |
\& |
| 243 |
\& CREATE TABLE matrix_info ( |
| 244 |
\& ID varchar(16) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 245 |
\& name varchar(15) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 246 |
\& type varchar(8) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 247 |
\& class varchar(20), |
| 248 |
\& phylum varchar (32), \-\- maps to \*(Aqsysgroup\*(Aq tag |
| 249 |
\& litt varchar(40), \-\- not used by this module |
| 250 |
\& medline int(12), |
| 251 |
\& information varchar(20), \-\- not used by this module |
| 252 |
\& iterations varchar(6), |
| 253 |
\& width int(2), \-\- calculated |
| 254 |
\& consensus varchar(25), \-\- calculated |
| 255 |
\& IC float(6,4), \-\- maps to \*(Aqtotal_ic\*(Aq tag |
| 256 |
\& sites int(3) unsigned, \-\- not used by this module |
| 257 |
\& PRIMARY KEY (ID) |
| 258 |
\& ) |
| 259 |
\& |
| 260 |
\& |
| 261 |
\& CREATE TABLE matrix_seqs ( |
| 262 |
\& ID varchar(16) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 263 |
\& internal varchar(8) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 264 |
\& seq_db varchar(15) NOT NULL, |
| 265 |
\& seq varchar(10) NOT NULL, |
| 266 |
\& PRIMARY KEY (ID, seq_db, seq) |
| 267 |
\& ) |
| 268 |
\& |
| 269 |
\& |
| 270 |
\& CREATE TABLE matrix_species ( |
| 271 |
\& ID varchar(16) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 272 |
\& internal varchar(8) DEFAULT \*(Aq\*(Aq NOT NULL, |
| 273 |
\& species varchar(24) NOT NULL, |
| 274 |
\& PRIMARY KEY (ID, species) |
| 275 |
\& ) |
| 276 |
.Ve |
| 277 |
.PP |
| 278 |
It is our best intention to hide the details of this data model, which we |
| 279 |
are using on a daily basis in our work, from most \s-1TFBS\s0 users, simply |
| 280 |
because for historical reasons some table column names are confusing |
| 281 |
at best. Most users should only know the methods to store the data and |
| 282 |
which tags are supported. |
| 283 |
.PP |
| 284 |
\&\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- |
| 285 |
.SH "FEEDBACK" |
| 286 |
.IX Header "FEEDBACK" |
| 287 |
Please send bug reports and other comments to the author. |
| 288 |
.SH "AUTHOR \- Boris Lenhard" |
| 289 |
.IX Header "AUTHOR - Boris Lenhard" |
| 290 |
Boris Lenhard <[email protected]> |
| 291 |
.SH "APPENDIX" |
| 292 |
.IX Header "APPENDIX" |
| 293 |
The rest of the documentation details each of the object |
| 294 |
methods. Internal methods are preceded with an underscore. |
| 295 |
.SS "new" |
| 296 |
.IX Subsection "new" |
| 297 |
.Vb 3 |
| 298 |
\& Title : new |
| 299 |
\& Usage : DEPRECATED \- for backward compatibility only |
| 300 |
\& Use connect() or create() instead |
| 301 |
.Ve |
| 302 |
.SS "connect" |
| 303 |
.IX Subsection "connect" |
| 304 |
.Vb 10 |
| 305 |
\& Title : connect |
| 306 |
\& Usage : my $db = |
| 307 |
\& TFBS::DB::JASPAR2\->connect("dbi:mysql:DATABASENAME:HOSTNAME", |
| 308 |
\& "USERNAME", |
| 309 |
\& "PASSWORD"); |
| 310 |
\& Function: connects to the existing JASPAR2\-type database and |
| 311 |
\& returns a database object that interfaces the database |
| 312 |
\& Returns : a TFBS::DB::JASPAR2 object |
| 313 |
\& Args : a standard database connection triplet |
| 314 |
\& ("dbi:mysql:DATABASENAME:HOSTNAME", "USERNAME", "PASSWORD") |
| 315 |
\& In place of DATABASENAME, HOSTNAME, USERNAME and PASSWORD, |
| 316 |
\& use the actual values. PASSWORD and USERNAME might be |
| •317 |
\& optional, depending on the user access permissions for |
| 318 |
\& the database server. |
| 319 |
.Ve |
| 320 |
.SS "create" |
| 321 |
.IX Subsection "create" |
| 322 |
.Vb 10 |
| 323 |
\& Title : create |
| 324 |
\& Usage : my $newdb = |
| 325 |
\& TFBS::DB::JASPAR2\->create("dbi:mysql:NEWDATABASENAME:HOSTNAME", |
| 326 |
\& "USERNAME", |
| 327 |
\& "PASSWORD"); |
| 328 |
\& Function: connects to the database server, creates a new JASPAR2\-type database and returns a database |
| 329 |
\& object that interfaces the database |
| 330 |
\& Returns : a TFBS::DB::JASPAR2 object |
| 331 |
\& Args : a standard database connection triplet |
| 332 |
\& ("dbi:mysql:NEWDATABASENAME:HOSTNAME", "USERNAME", "PASSWORD") |
| 333 |
\& In place of NEWDATABASENAME, HOSTNAME, USERNAME and |
| 334 |
\& PASSWORD use the actual values. PASSWORD and USERNAME |
| •335 |
\& might be optional, depending on the users access permissions |
| 336 |
\& for the database server. |
| 337 |
.Ve |
| 338 |
.SS "dbh" |
| 339 |
.IX Subsection "dbh" |
| 340 |
.Vb 10 |
| 341 |
\& Title : dbh |
| 342 |
\& Usage : my $dbh = $db\->dbh(); |
| 343 |
\& $dbh\->do("UPDATE matrix_data SET name=\*(AqADD1\*(Aq WHERE NAME=\*(AqSREBP2\*(Aq"); |
| 344 |
\& Function: returns the DBI database handle of the MySQL database |
| 345 |
\& interfaced by $db; THIS IS USED FOR WRITING NEW METHODS |
| 346 |
\& FOR DIRECT RELATIONAL DATABASE MANIPULATION \- if you |
| 347 |
\& have write access AND do not know what you are doing, |
| 348 |
\& you can severely corrupt the data |
| 349 |
\& For documentation about database handle methods, see L<DBI> |
| 350 |
\& Returns : the database (DBI) handle of the MySQL JASPAR2\-type |
| 351 |
\& relational database associated with the TFBS::DB::JASPAR2 |
| 352 |
\& object |
| 353 |
\& Args : none |
| 354 |
.Ve |
| 355 |
.SS "get_Matrix_by_ID" |
| 356 |
.IX Subsection "get_Matrix_by_ID" |
| 357 |
.Vb 10 |
| 358 |
\& Title : get_Matrix_by_ID |
| 359 |
\& Usage : my $pfm = $db\->get_Matrix_by_ID(\*(AqM00034\*(Aq, \*(AqPFM\*(Aq); |
| 360 |
\& Function: fetches matrix data under the given ID from the |
| 361 |
\& database and returns a TFBS::Matrix::* object |
| 362 |
\& Returns : a TFBS::Matrix::* object; the exact type of the |
| 363 |
\& object depending on the second argument (allowed |
| 364 |
\& values are \*(AqPFM\*(Aq, \*(AqICM\*(Aq, and \*(AqPWM\*(Aq); returns undef if |
| 365 |
\& matrix with the given ID is not found |
| 366 |
\& Args : (Matrix_ID, Matrix_type) |
| 367 |
\& Matrix_ID is a string; Matrix_type is one of the |
| 368 |
\& following: \*(AqPFM\*(Aq (raw position frequency matrix), |
| 369 |
\& \*(AqICM\*(Aq (information content matrix) or \*(AqPWM\*(Aq (position |
| 370 |
\& weight matrix) |
| 371 |
\& If Matrix_type is omitted, a PWM is retrieved by default. |
| 372 |
.Ve |
| 373 |
.SS "get_Matrix_by_name" |
| 374 |
.IX Subsection "get_Matrix_by_name" |
| 375 |
.Vb 10 |
| 376 |
\& Title : get_Matrix_by_name |
| 377 |
\& Usage : my $pfm = $db\->get_Matrix_by_name(\*(AqHNF\-1\*(Aq, \*(AqPWM\*(Aq); |
| 378 |
\& Function: fetches matrix data under the given name from the |
| 379 |
\& database and returns a TFBS::Matrix::* object |
| 380 |
\& Returns : a TFBS::Matrix::* object; the exact type of the object |
| 381 |
\& depending on the second argument (allowed values are |
| 382 |
\& \*(AqPFM\*(Aq, \*(AqICM\*(Aq, and \*(AqPWM\*(Aq) |
| 383 |
\& Args : (Matrix_name, Matrix_type) |
| 384 |
\& Matrix_name is a string; Matrix_type is one of the |
| 385 |
\& following: |
| 386 |
\& \*(AqPFM\*(Aq (raw position frequency matrix), |
| 387 |
\& \*(AqICM\*(Aq (information content matrix) or |
| 388 |
\& \*(AqPWM\*(Aq (position weight matrix) |
| 389 |
\& If Matrix_type is omitted, a PWM is retrieved by default. |
| 390 |
\& Warning : According to the current JASPAR2 data model, name is |
| 391 |
\& not necessarily a unique identifier. In the case where |
| 392 |
\& there are several matrices with the same name in the |
| 393 |
\& database, the function fetches the first one and prints |
| 394 |
\& a warning on STDERR. You have been warned. |
| 395 |
.Ve |
| 396 |
.SS "get_MatrixSet" |
| 397 |
.IX Subsection "get_MatrixSet" |
| 398 |
.Vb 10 |
| 399 |
\& Title : get_MatrixSet |
| 400 |
\& Usage : my $matrixset = $db\->get_MatrixSet(%args); |
| 401 |
\& Function: fetches matrix data under for all matrices in the database |
| 402 |
\& matching criteria defined by the named arguments |
| 403 |
\& and returns a TFBS::MatrixSet object |
| 404 |
\& Returns : a TFBS::MatrixSet object |
| 405 |
\& Args : This method accepts named arguments: |
| 406 |
\& \-IDs # a reference to an array of IDs (strings) |
| 407 |
\& \-names # a reference to an array of |
| 408 |
\& # transcription factor names (string) |
| 409 |
\& \-classes # a reference to an array of |
| 410 |
\& # structural class names (strings) |
| 411 |
\& \-species # a reference to an array of |
| 412 |
\& # Latin species names (strings) |
| 413 |
\& \-sysgroups # a reference to an array of |
| 414 |
\& # higher taxonomic categories (strings) |
| 415 |
\& |
| 416 |
\& \-matrixtype # a string, \*(AqPFM\*(Aq, \*(AqICM\*(Aq or \*(AqPWM\*(Aq |
| 417 |
\& \-min_ic # float, minimum total information content |
| 418 |
\& # of the matrix |
| 419 |
.Ve |
| 420 |
.PP |
| 421 |
The five arguments that expect list references are used in database |
| 422 |
query formulation: elements within lists are combined with '\s-1OR\s0' |
| 423 |
operators, and the lists of different types with '\s-1AND\s0'. For example, |
| 424 |
.PP |
| 425 |
.Vb 3 |
| 426 |
\& my $matrixset = $db\->(\-classes => [\*(AqTRP_CLUSTER\*(Aq, \*(AqFORKHEAD\*(Aq], |
| 427 |
\& \-species => [\*(AqHomo sapiens\*(Aq, \*(AqMus musculus\*(Aq], |
| 428 |
\& \-matrixtype => \*(AqPWM\*(Aq); |
| 429 |
.Ve |
| 430 |
.PP |
| 431 |
gives a set of PWMs whose (structural clas is '\s-1TRP_CLUSTER\s0' \s-1OR\s0 |
| 432 |
\&'\s-1FORKHEAD\s0') \s-1AND\s0 (the species they are derived from is 'Homo sapiens' |
| 433 |
\&\s-1OR\s0 'Mus musculus'). |
| 434 |
.PP |
| 435 |
The \-min_ic filter is applied after the query in the sense that the |
| 436 |
matrices profiles with total information content less than specified |
| 437 |
are not included in the set. |
| 438 |
.SS "store_Matrix" |
| 439 |
.IX Subsection "store_Matrix" |
| 440 |
.Vb 9 |
| 441 |
\& Title : store_Matrix |
| 442 |
\& Usage : $db\->store_Matrix($pfm); |
| 443 |
\& Function: Stores the contents of a TFBS::Matrix::DB object in the database |
| 444 |
\& Returns : 0 on success; $@ contents on failure |
| 445 |
\& (this is too C\-like and may change in future versions) |
| 446 |
\& Args : (PFM_object) |
| 447 |
\& A TFBS::Matrix::PFM object |
| 448 |
\& Comment : this is an experimental method that is not 100% bulletproof; |
| 449 |
\& use at your own risk |
| 450 |
.Ve |
| 451 |
.SS "store_MatrixSet" |
| 452 |
.IX Subsection "store_MatrixSet" |
| 453 |
.Vb 9 |
| 454 |
\& Title : store_MatrixSet |
| 455 |
\& Usage : $db\->store_Matrix($matrixset); |
| 456 |
\& Function: Stores the TFBS::DB::PFM object that are part of a |
| 457 |
\& TFBS::MatrixSet object into the database |
| 458 |
\& Returns : 0 on success; $@ contents on failure |
| 459 |
\& (this is too C\-like and may change in future versions) |
| 460 |
\& Args : (MatrixSet_object) |
| 461 |
\& A TFBS::MatrixSet object |
| 462 |
\& Comment : THIS METHOD IS NOT YET IMPLEMENTED |
| 463 |
.Ve |
| 464 |
.SS "delete_Matrix_having_ID" |
| 465 |
.IX Subsection "delete_Matrix_having_ID" |
| 466 |
.Vb 9 |
| 467 |
\& Title : delete_Matrix_having_ID |
| 468 |
\& Usage : $db\->delete_Matrix_with_ID(\*(AqM00045\*(Aq); |
| 469 |
\& Function: Deletes the matrix having the given ID from the database |
| 470 |
\& Returns : 0 on success; $@ contents on failure |
| 471 |
\& (this is too C\-like and may change in future versions) |
| 472 |
\& Args : (ID) |
| 473 |
\& A string |
| 474 |
\& Comment : Yeah, yeah, \*(Aqdelete_Matrix_having_ID\*(Aq is a stupid name |
| 475 |
\& for a method, but at least it should be obviuos what it does. |
| 476 |
.Ve |