-
Notifications
You must be signed in to change notification settings - Fork 23
write_psl
Martin Asser Hansen edited this page Oct 2, 2015
·
8 revisions
write_psl outputs PSL records from the stream. The PSL format consists of up to 21 columns:
- MATCHES - Number of non-repeat matches.
- MISMATCHES - Number of mismatches.
- REPMATCHES - Number of repeat matches.
- NCOUNT - Number of Ns.
- QNUMINSERT - Number of inserts in query.
- QBASEINSERT - Number of bases inserted in query.
- SNUMINSERT - Number of inserts in subject.
- SBASEINSERT - Number of bases inserted in subject.
- STRAND - Strand.
- Q_ID - Query ID.
- Q_LEN - Query length.
- Q_BEG - Query begin.
- Q_END - Query end.
- S_ID - Subject ID.
- S_LEN - Subject length.
- S_BEG - Subject begin.
- S_END - Subject end.
- BLOCKCOUNT - Block count.
- BLOCKSIZES - Block sizes.
- Q_BEGS - Query sequence blocks begins.
- S_BEGS - Subject sequence blocks begins.
Records can be written to BED format if the REC_TYPE equals PSL. read_psl results in Biopiece records of the PSL type.
For more about the PSL format:
http://genome.ucsc.edu/FAQ/FAQformat#format2
... | write_psl [options]
[-? | --help] # Print full usage description.
[-x | --no_stream] # Do not emit records.
[-o <file> | --data_out=<file>] # Write result to file.
[-I <file!> | --stream_in=<file!>] # Read input from stream file - Default=STDIN
[-O <file> | --stream_out=<file>] # Write output to stream file - Default=STDOUT
[-Z | --compress] # Compress output using gzip.
[-v | --verbose] # Verbose output.
... | write_psl -x -o table.psl # Output data to file 'table.psl'.
... | write_psl -Z -o table.psl.gz # Output zipped data to file 'table.psl.gz'.
Martin Asser Hansen - Copyright (C) - All rights reserved.
August 2007
GNU General Public License version 2
http://www.gnu.org/copyleft/gpl.html
write_psl is part of the Biopieces framework.