PFSEARCH(1)
π PFSEARCH(1) β like, the search your profile against a whole library situation
okay bestie, buckle up π this is pfsearch, from section 1 of the manual (user commands, we're fancy), and it's part of the pftools package. let's get into it π
β¨ NAME β¨
pfsearch β search a protein or DNA sequence library for sequence segments matching a profile π¦
πΈ SYNOPSIS πΈ
pfsearch [ -abdfhlLmruksvxyz ] [ -C cut_off ] [ -M mode_nb ] [ -W width
] [ profile | - ] [ sequence_library | - ] [ parameters ]
π DESCRIPTION π
so basically, pfsearch takes a query profile and holds it up against a DNA or protein sequence library, like a vibe check but for biology π. the result is an unsorted list of profile-sequence matches, and it gets written straight to the standard output. periodt.
you can pick from a whole wardrobe of output formats with different info in them using the options -l, -L, -r, -k, -s, -x, -y and -z. yes, that's a lot of letters. no, we are not skipping any. π
the profile file holds a profile in PROSITE format. the sequence_library file holds a sequence library in EMBL/SWISS-PROT format (that's the default, assumed unless told otherwise) or in Pearson/Fasta format (you gotta say so with option -f). and if you put - in place of one of the filenames, that data gets read from standard input instead. iconic behaviour honestly π«Ά
π OPTIONS π
profileβ your input query profile. the PROSITE profile sitting in this file is what gets used to hunt for profile-to-sequence matches inside a biological sequence library. swap the filename for a-andpfsearchreads the profile from stdin. π§sequence_libraryβ the library of DNA or protein sequences. this file should contain one or several EMBL/SWISS-PROT (default) or Pearson/Fasta (option-f) formatted DNA or protein sequences. the program tries to find matches between the input profile and all individual sequences in this library. swap the filename for a-andpfsearchreads the sequence library from stdin. π-aβ report optimal alignment scores for all sequences regardless of the cut-off value. heads up: this option simultaneously forcesDISJOINT=UNIQUE.-bβ search the complementary strands of DNA sequences as well. both strands, we're thorough π-fβ input sequence library is in Pearson/Fasta format.-hβ display usage help text.-lβ indicate the value of the highest cut-off level exceeded by the match score in the output list.-Lβ indicate by character string the highest cut-off level exceeded by the match score in the output list.
Note: the generalized profile format includes a text string field to specify a name for a cut-off level. the-Loption makes the program display the first two characters of this text string (usually something like'!','?','??', etc.) at the beginning of each match description. π
-mβ report individual matches for circular profiles. if the profile is circular, each match between a sequence and a profile can be composed of a stretch of individual matches of the profile. by default,pfsearchreports only the total matched region. when this option is set, detailed information for each individual match will be output as well.
Note: the scoring system for most circular profiles has been optimized to find total matches, therefore the normalized scores of individual matches of a circular profile to a sequence should be considered with caution. β οΈ like, don't trust those numbers too hard, bestie.
-rβ use raw scores rather than normalized scores for match selection. the normalized score is not printed, and this option is useful to create raw score lists to be used withpfscale(1).-uβ forcesDISJOINT=UNIQUE.-Ccut_offβ cut-off value to be used for match selection. the value ofcut_offoverwrites the level zero cut-off value specified in the profile. an integer argument is interpreted as a raw score value, a decimal argument as a normalized score value. Default: profile level 0 cut-off value (normalized score if present).
Note: compared to release 2.2, an integer value does not force option -r. normalized scores will still be listed in output if an integer cut-off is specified on the command line, but cut-off level computation will be based on raw score. π
-Mmode_nbβ normalization mode to use for score computation.mode_nbspecifies which normalization mode defined in the profile should be used to compute the normalized scores for profile-to-sequence matches. this option will override the profile'sPRIORITYparameter. if the specified normalization mode does not exist in the profile, an error message will be output to standard error and the search is interrupted. Type: integer. Default: lowest priority mode defined in the profile.
π¦ Output modifiers π¦
-dβ limit sequence description length. if this option is set, the description of the sequence on the header line will be limited in length. if the match information is longer than the output width specified using option-W, the sequence description will not be printed. else the description will be truncated to fit the-Wvalue. by default, the sequence description is not truncated. this option can not be used when option-kis set. π«-kβ usexpsa(5)headers for output. when this option is set, all output types (see below) will use anxpsa(5)style header line. this format useskeyword=valuepairs to output alignment parameters. it's useful to transfer information between different sequence alignment tools. π₯-sβ list the sequences of the matched regions as well. the output will be a Pearson/Fasta-formatted sequence library.-vβ suppress sequence/profile parsing warnings. if this option is set no warning messages will be printed on stderr. only fatal errors will be reported. this option should be used with caution. π-xβ list profile-sequence alignments inpsa(5)format. please refer to the corresponding man page for more information.-yβ display alignments between the profile and the matched sequence regions in a human-friendly pairwise alignment format. π«Ά-zβ indicate starting and ending position of the matched profile range. the latter position will be given as a negative offset from the end of the profile. thus the range[ 1, -1]means entire profile. β¨-Wwidthβ set alignment output width. the value ofwidthspecifies how many residues will be output on one line when any of the-s,-xor-yoptions is set. Type: integer. Default:60.
π PARAMETERS π
Note: for backwards compatibility, release 2.3 of the pftools package will parse the version 2.2 style parameters, but these are deprecated and the corresponding option (refer to the options section) should be used instead. ngl, using the old way is giving 2003 energy π
C=#β cut-off value. use option-Cinstead.W=#β output width. use option-Winstead.
β EXAMPLES β
- ```text pfsearch -f -C 6.0 sh3.prf sh3.seq
searches the Pearson/Fasta-formatted protein sequence library *`sh3.seq`* for SH3 domains with a cut-off value of `6.0` normalized score units. the file *`sh3.seq`* contains 20 SH3 domain-containing protein sequences from SWISS-PROT release 32. the file *`sh3.prf`* contains the PROSITE entry SH3/PS50002. π§
2. ```text
pfsearch -bx ecp.prf CVPBR322 | psa2msa -du | readseq -p -fMSF >
ecp.msf
generates a multiple sequence alignment of potential E. coli promoters on both strands of plasmid pBR322. the file ecp.prf contains a profile for E. coli promoters. the file CVPBR322 contains EMBL entry J01749|CVPBR322. the result file ecp.msf can further be processed by GCG programs accepting MSF files as input. π
π EXIT CODE π
on successful completion of its task, pfsearch will return an exit code of 0. if an error occurs, a diagnostic message will be output on standard error and the exit code will be different from 0. when conflicting options were passed to the program but the task could nevertheless be completed, warnings will be issued on standard error. so like, read your stderr, bestie π
π BUGS π
the use of normalized scores as cut-off values can lead to a different behaviour when compared to raw scores. this is due to the inherent rounding inaccuracy of real numbers. the normalized scores used as cut-offs should be rounded down in order to circumvent this problem. fr fr, round down. π
π SEE ALSO π
pfscan(1), pfmake(1), psa2msa(1), psa(5), xpsa(5)
π AUTHOR π
the pftools package was developed by Philipp Bucher.
any comments or suggestions should be addressed to <pftools@sib.swiss>. π«Ά
okay that's the whole thing, you ate that, periodt π β¨ this was pftools 2.3, dated July 2003 β yeah she's vintage but she still serves, mwah ππ
π¦ where this page comes from
- debian bookworm: pftools 3.2.12-1 Β· GPL-3.0-only
- debian trixie: pftools 3.2.12-1 Β· GPL-3.0-only
- ubuntu jammy: pftools 3.2.11-2 Β· GPL-3.0-only
- ubuntu noble: pftools 3.2.12-1 Β· GPL-3.0-only
- ubuntu resolute: pftools 3.2.12-1 Β· GPL-3.0-only
- ubuntu stonking: pftools 3.2.12-3ubuntu1 Β· GPL-3.0-only
- Copyright (c) 2003 SIB Swiss Institute of Bioinformatics <pftools@sib.swiss>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms