PSA2MSA(1)
π PSA2MSA(1) β the pftools girlies' guide π
okay bestie, welcome to psa2msa, part of the pftools package, and no cap this little icon does exactly one job and does it gorgeously. let's get into it π
β¨ NAME β¨
psa2msa β reformat a PSA file into a Pearson/Fasta multiple sequence alignment file π¦
β¨ SYNOPSIS β¨
psa2msa [ -dhlpu ] [ -M insert_len ] [ -W width ] [ psa_file | - ] [
parameters ]
β¨ DESCRIPTION β¨
so here's the vibe: psa2msa takes a psa(5) formatted profile-sequence alignment file and reformats it into a Pearson/Fasta-formatted multiple sequence alignment file. the glow-up goes straight to standard output, obviously, because we don't do files without being asked π
psa_file holds alignments of several sequence segments to the same profile, all in psa(5) format. and like, where does a file like that even come from? typically from pfsearch(1) or pfscan(1) when you hit them with option -x. iykyk β¨
once you've got your output, you can convert it into other formats (e.g. MSF) using the public domain program readseq β available from ftp://ftp.bio.indiana.edu/molbio/readseq β or just use it directly with pfmake(1) or pfw(1). versatile queen π
and if you pass - instead of a filename? then the psa(5) alignment gets read from standard input. stdin besties, rise π«Ά
β¨ OPTIONS β¨
psa_fileβ the input multiple sequence alignment. the content has to be inpsa(5)format, no exceptions. and if you swap the filename out for a-,psa2msareads the input alignment from stdin instead π«-dβ replace periods.with dashes-on output. periodt (literally) π-hβ display the usage help text. when in doubt, ask for help, we love a self-aware icon π-lβ replace upper case letters with lower case letters on output. lowercase era, soft launch πΈ-pβ replace dashes-with periods.on output. the reverse of-d, we contain multitudes π-uβ replace lower case letters with upper case letters on output. LOUD era, main character energy π-M insert_lenβ maximal length of an insertion. here's the tea: if the real length of an insertion exceeds this value, the excess number of residues gets deleted from the center of the insertion π. a negative value ofinsert_lenmeans no upper limit for the length of an insertion (i.e. no residues will be deleted from an insertion). and ifinsert_lenis zero, all insert positions will be removed. setting an insertion length limit helps keep the resulting alignment at a manageable size, bestie β your disk will thank you π«Ά- Type:
integer - Default:
-1
- Type:
β οΈ Note: the meaning of the value0for this parameter has been changed compared to version2.2of the pftools package. not me being dramatic, it's just true π
-W widthβ set the alignment output width. the value ofwidthspecifies how many residues get output on one line. pick your aesthetic β¨- Type:
integer - Default:
60
- Type:
β¨ PARAMETERS β¨
π Note: for backwards compatibility, release2.3of the pftools package will parse the version2.2style parameters, but these are deprecated and the corresponding option (refer to the options section) should be used instead. it's giving legacy, we're moving on π¦
M=#β maximal insertion length. use option-Minstead. (we said what we said π )W=#β output width. use option-Winstead. (again, bestie,-Wπ)
β¨ EXAMPLES β¨
- let's cook π₯
pfsearch -bx ecp.prf CVPBR322 | psa2msa -du | readseq -p -fMSF >
ecp.msf
generates a multiple sequence alignment of predicted 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 in ecp.msf can further be processed by GCG programs accepting MSF files as input. ate and left no crumbs π
β¨ EXIT CODE β¨
on successful completion of its task, psa2msa will return an exit code of 0 β the slay outcome β
if an error occurs, a diagnostic message will be output on standard error and the exit code will be different from 0. and when conflicting options were passed to the program but the task could nevertheless be completed, warnings will be issued on standard error. not a full crash, just a gentle read π
β¨ SEE ALSO β¨
pfscan(1), pfsearch(1), pfmake(1), pfw(1), psa(5), xpsa(5)
go read the whole friend group, they're all iconic π«Ά
β¨ AUTHOR β¨
the pftools package was developed by Philipp Bucher. any comments or suggestions should be addressed to <pftools@sib.swiss> π
and that's the whole page, bestie! this was pftools 2.3, dated August 2003 β yeah she's vintage, and vintage is forever β¨ππ
π¦ 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