1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
|
.\"
.\" $Id: xpsa.5,v 1.5 2003/08/11 12:09:14 vflegel Exp $
.\" Copyright (c) 2003 SIB Swiss Institute of Bioinformatics <pftools@sib.swiss>
.\" Process this file with
.\" groff -man -Tascii <name>
.\" for ascii output or
.\" groff -man -Tps <name>
.\" for postscript output
.\"
.TH XPSA 5 "July 2003" "pftools 2.3" "File formats"
.\" ------------------------------------------------
.\" Name section
.\" ------------------------------------------------
.SH NAME
xpsa \- extended psa header
.\" ------------------------------------------------
.\" Description section
.\" ------------------------------------------------
.SH DESCRIPTION
.B xpsa
is an extension of the
.BR psa (5)
file format used by the
.B pftools
package to describe and store biological sequences.
.PP
.B xpsa
uses
.IR keyword = value
pairs in the header to include information about the sequence or the alignment
between the sequence and a
.I PROSITE
profile (or any other kind of motif). The syntax is therefore easily extensible. In this man-page, we focus on
the keywords defined and used by the
.B pftools
package.
.PP
In the following text we will use the more general term
.RI ' motif '
when in fact our discussion refers specifically to
.IR "PROSITE profiles" .
Nevertheless the keywords defined here can be used by any kind of sequence analysis tool
to store and transfer information.
.PP
None of the defined keywords are mandatory and analysis tools have often a length limit imposed
on the header line. In order to keep the header line reasonably short and user readable,
these tools can easily remove individual
.IR keyword = value
pairs which are not important to the specific task at hand.
.\" ------------------------------------------------
.\" Syntax section
.\" ------------------------------------------------
.SH SYNTAX
The general syntax of the
.B xpsa
header is given below. For examples please refer to the corresponding
.I examples
section.
.PP
The biological sequence itself starts on the next line following the header and may extend over several lines.
If several sequences are contained in the same file, each must be preceded by a header line.
.PP
.sp
Syntax of the header line:
.sp
.RS
.BI > seq_id / seq_pos
{
.RI "[ " keyword = value " | " free_text " ]"
}
.RE
.sp
The header must start with a
.RB ' > '
followed by the fields detailed below:
.RS
.\" --- seq_id ---
.TP
.I seq_id
typically the
.IR accession \ number\ and\ identifier
of the sequence. This text field should not contain any spaces.
.TP
Note:
If the input sequences have a well defined accession number and identifier (as is
the case with
.SM SWISS-PROT
entries)
.BR pfsearch "(1) and " pfscan (1)
will use as
.IR seq_id
the accession number separated by a
.RB ' | '
from the identifier.
.br
If the input sequences are in
.SM FASTA
format, no guess can be made about the accession number or the identifier. Therefore
.BR pfsearch "(1) and " pfscan (1)
will use as
.IR seq_id
all text following the
.RB ' > '
character up to the first whitespace.
.\" --- seq_pos ---
.TP
.I seq_pos
this field describes the sequence coordinates where a
motif matches. The positions are generally given as
.IR start_pos \- end_pos
pairs.
.br
If present, this field is separated from the
.I seq_id
by a
.RB ' / '
character.
.\" --- keyword=value ---
.TP
.IR keyword = value
is an optional list of defined
.IR keyword = value
pairs. Each pair should be separated from the next or from free text by whitespaces.
.br
The
.I keyword
is case sensitive in the current implementation of the
.B pftools
package. It should not exceed 24 characters in length.
.br
The
.I value
can be numeric or alphanumeric. Values containing whitespaces should be enclosed in either
.I single quotes
or
.IR "double quotes" .
If the same type of quote appears inside the value it must be escaped using the
.RB ' \(rs '
character.
.RS
.TP
Note:
the
.B pftools
do not currently produce quote enclosed values.
.RE
.\" --- free_text ---
.TP
.I free_text
typically this is a description of the sequence. It should not contain any of the defined
.IR keyword = value
pairs.
.PP
.\" ------------------------------------------------
.\" Keywords subsection
.\" ------------------------------------------------
.SS Keywords
.RE
Keywords used by the
.BR pfsearch "(1) and " pfscan (1)
programs:
.RS
.\" --- level ---
.TP
.I level
the highest cut-off level (as a value) exceeded by the alignment.
.br
The characters
.RB ' NA '
indicate that the alignment score does not exceed any of the cut-off levels defined in the motif.
.\" --- level_tag ---
.TP
.I level_tag
the highest cut-off level (as a character string) exceeded by the alignment.
.br
The characters
.RB ' NA '
indicate that the alignment score does not exceed any of the cut-off levels defined in the motif.
.RS
.TP
Note:
.BR pfsearch "(1) and " pfscan (1)
only report the first 2 characters of the level text string.
.RE
.\" --- match_nb ---
.TP
.I match_nb
if the motif matches several times on the same sequence, each alignment is numbered incrementally.
.br
If the motif is circular, each single repeat is numbered incrementally with the key
.I repeat_nb
(see below).
.\" --- match_parent ---
.TP
.I match_parent
for each single match of a circular motif, this key references the number of the parental total match of the circular
motif.
.RS
.TP
Note:
if a circular motif matches only once on a given sequence,
.BR pfsearch "(1) and " pfscan (1)
do not report this key.
.RE
.\" --- match_type ---
.TP
.I match_type
identifies the type of match. Either
.B region
for a complete match of a motif to a sequence, or
.B repeat
for a single repeat of a circular motif.
.\" --- motif ---
.TP
.I motif
the name and/or identifier of the motif.
.\" --- motif_start ---
.TP
.I motif_start
the motif position where the alignment begins.
.\" --- motif_end ---
.TP
.I motif_end
negative offset from the end of the alignment to the end of the motif.
.\" --- norm_score ---
.TP
.I norm_score
the normalized score of the alignment.
.\" --- raw_score ---
.TP
.I raw_score
the raw score of the alignment.
.\" --- repeat_nb ---
.TP
.I repeat_nb
if the motif is circular, each individual repeat is numbered incrementally with this keyword.
.\" --- seq_end ---
.TP
.I seq_end
negative offset from the end of the alignment to the end of the sequence.
.br
In combination with the information given by
.I seq_pos
this allows to deduce the length of the query sequence.
.\" --- strand ---
.TP
.I strand
the sequence strand on which the motif matches, when the search includes the reverse complement of a DNA sequence.
The
.I value
is either
.B s
for the sens or
.B r
for the reverse strand.
.PP
.RE
Keywords used by the
.BR pfmake "(1) and " pfw (1)
programs:
.RS
.\" --- weight ---
.TP
.I weight
the weight of a given sequence in a multiple alignment.
.\" ------------------------------------------------
.\" Examples section
.\" ------------------------------------------------
.SH EXAMPLES
.TP
(1)
>O00628|PEX7/73-315
.IR motif =PS50294|WD_REP
.IR raw_score =1336
.IR match_nb =1
.IR match_type =region
.IR seq_end =-491
.br
VTW[...]IYD
.br
>O00628|PEX7/540-801
.IR motif =PS50294|WD_REP
.IR raw_score =1378
.IR match_nb =2
.IR match_type =region
.IR seq_end =-5
.br
SFD[...]PAS
.br
The 2 headers above describe 2 matches of the motif called
.RI ' WD_REP '
onto the sequence
.RI ' PEX7 '.
Each of the matches onto this single sequence is numbered using the the
.I match_nb
keyword.
These matches are not individual repeats of a circular motif as can be seen with the
.I region
value of the
.I match_type
keyword.
.br
The first match starts at position 73 of the sequence and ends at position 315. This position is 491
residues away from the end of the input sequence
.RI ( seq_end ).
.br
The next line following the
.BR xpsa (5)
header line is the sequence of the match (it has been truncated here to help readability).
.br
The second match begins at position 540 of the sequence and terminates 5 residues before the end of the
input sequence, that is at position 801.
.RE
.TP
(2)
>O00628|PEX7/540-582
.IR motif =PS50294|WD_REP
.IR norm_score =7.437
.IR raw_score =180
.IR match_parent =2
.IR repeat_nb =1
.IR match_type =repeat
.IR level =-1
.IR seq_end =-224
.IR motif_start =1
.IR motif_end =-1
.br
SFD[...]PLQ
.br
This example illustrates the kind of header obtained when aligning a circular motif
to a sequence. Each match of this motif (which we will call
.I total
match) can be composed of several individual repeats of the motif. Tools like
.BR pfsearch "(1) and " pfscan (1)
can output each total match followed by all its individual repeats. In this example
we only show one of the indiviual repeats that is part of a total match between a circular profile
and a sequence.
.br
The
.BR xpsa (5)
header above describes a single repeat of a match between a circular motif called
.RI ' WD_REP '
and the sequence
.RI ' PEX7 '.
.br
This is the first individual repeat of a match of the circular motif, as identified by the
.I repeat_nb
keyword. The other individual repeats have not been listed in this example.
.br
The total circular motif has at least 2 distinct matches on the
.RI ' PEX7 '
sequence, because this single repeat is part of the second match as described by the
.I match_parent
keyword. The parental matches have been omitted from this example, they would be numbered using the
.I match_nb
keyword.
.br
The normalized score of this motif exceeds the cut-off level number -1
.RI ( level
keyword) which is specified in the motif.
.br
This match starts at position 1 of the profile
.RI ( motif_start )
and position 540 of the sequence, it ends at the end of the motif
.RI ( motif_end =-1)
and position 582 of the sequence.
.br
The next line following the
.BR xpsa (5)
header line is the sequence of the match (it has been truncated here to help readability).
.RE
.\" ------------------------------------------------
.\" See also section
.\" ------------------------------------------------
.SH "SEE ALSO"
.BR psa (5),
.BR pfsearch (1),
.BR pfscan (1),
.BR pfw (1),
.BR pfmake (1),
.BR psa2msa (1)
.\" ------------------------------------------------
.\" Author section
.\" ------------------------------------------------
.SH "AUTHOR"
This manual page was originally written by Volker Flegel.
.br
The
.B pftools
package was developed by Philipp Bucher.
.br
Any comments or suggestions should be addressed to <pftools@sib.swiss>.
|