srf2fastq(1)
โจ srf2fastq โ bestie, let's turn those SRF archives into fastq ๐
okay so real talk, this is srf2fastq from the Staden io_lib girlies, and it's literally the glow-up machine for your sequence data. she's a manual page, she's a vibe, she's here to help.
๐ธ NAME ๐ธ
srf2fastq โ converts SRF files to Sanger fastq format. that's it, that's the whole job, and she does it iconically. ๐
๐ SYNOPSIS ๐
srf2fastq [options] srf_archive ...
๐ฆ DESCRIPTION ๐ฆ
so srf2fastq extracts sequences and qualities from one or more SRF archives and writes them out in Sanger fastq format to stdout. no cap, that's the whole plot. โจ
lowkey important tho: Illumina also has a fastq format of their own (the one used in the GERALD directories) and it differs slightly โ it uses log-odds scores for the quality values. the format described here is the traditional Phred style of quality encoding. so don't get it twisted, bestie. ๐
๐ OPTIONS ๐
-cโ outputs calibrated confidence values using the ZTRCNF1chunk type, giving you a single quality per base. without this, she uses the original Illumina_prb.txtfiles instead โ those ones have four quality values per base, stored in the ZTRCNF4chunks.-Cโ masks out sequences tagged as bad quality. bye bye garbage reads, we don't know her. ๐ฎ-sroot โ generates files on disk with filenames starting with root, one file per non-explicit element in the SRF/ZTR region (REGN) chunk. typically that gives you two files for paired end runs. the filename suffixes come from the names listed in the SRF region chunks. โ ๏ธ this option conflicts with the-Sparameter.-Sโ splits sequences into regions, but sequentially lists each sequence region tostdoutinstead of splitting them into separate files on disk. โ ๏ธ this option conflicts with the-sparameter.-nโ when you're using-s, the filename suffixes are just simply numbered (starting with 1) instead of using the names listed in the SRF region chunks. simplicity slay. โจ-aโ appends the region index to the sequence names. like, it generates"name/1"and"name/2"for a paired read. cute, organized, obsessed. ๐ซถ-eโ include any explicit sequence (ZTR region chunk of type'E') in the sequence output. the explicit sequence also gets included in the quality line too. currently this is utilised by ABI SOLiD to store the last base of the primer. iykyk. ๐-rregion list โ reverse complements the sequence and reverses the quality values for all regions in the region list. it's a comma separated list of integer values enumerating the regions, starting from 1. โ ๏ธ heads up bestie: this option only works when either-sor-Sare specified. don't come crying to me if you forget. ๐ญ
๐ฅ EXAMPLES ๐ฅ
1. to extract only the good quality sequences from all srf files in the current directory, using calibrated confidence values (if available):
srf2fastq -c -C *.srf > runX.fastq
2. to extract a paired end run into two separate files, with sequences named name/1 and name/2:
srf2fastq -s runX -a -n runX.srf
3. to extract a paired end run as a single file, alternating forward and reverse sequences, with the second read being reverse complemented:
srf2fastq -S -r 2 runX.srf > runX.fastq
๐ AUTHOR ๐
James Bonfield, Steven Leonard โ Wellcome Trust Sanger Institute. absolute legends, fr fr. ๐ซก
okay that's the whole page bestie, go forth and convert. โจ๐
srf2fastq(1) ยท Staden io_lib ยท December 10 โ mwah, written by the Sanger girlies, dated December 10, version vibes from Staden io_lib. periodt. ๐ ๐ธ
๐ฆ where this page comes from
- debian bookworm: staden-io-lib-utils 1.14.15-1 ยท GRL OR MRC
- debian trixie: staden-io-lib-utils 1.15.0-1.1+b2 ยท GRL OR MRC
- fedora 43: staden-io_lib 1.14.8-6.fc43 ยท MIT
- fedora 43: staden-io_lib 1.14.8-6.fc43 ยท MIT
- fedora 44: staden-io_lib 1.14.8-7.fc44 ยท MIT
- fedora 44: staden-io_lib 1.14.8-7.fc44 ยท MIT
- nixos 26.05: libstaden-read 1-15-1
- nixpkgs unstable: libstaden-read 1-15-1
- ubuntu jammy: staden-io-lib-utils 1.14.14+dfsg-1 ยท GRL OR MRC
- ubuntu noble: staden-io-lib-utils 1.15.0-1.1build2 ยท GRL OR MRC
- ubuntu questing: staden-io-lib-utils 1.15.0-1.1build2
- ubuntu resolute: staden-io-lib-utils 1.15.0-1.1build3 ยท GRL OR MRC
- ubuntu stonking: staden-io-lib-utils 1.15.1-1 ยท GRL OR MRC
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms