Learn R Programming

seqTools (version 1.6.0)

writeSimFastq: writeSimFastq: Create FASTQ files with simulated DNA k-mer sequences

Description

Writes compressed FASTQ files where sequence sections contain concatenated k-mers which are uniformly distributed in the range of k-mers for given k.

Usage

writeSimFastq(k=6, nk=5, nSeq=10, filename="sim.fq.gz")

Arguments

k
numeric. Length of k-mer. Default value is 6.
nk
numeric. Number of k-mers in each FASTQ read. Default value is 5.
nSeq
numeric. Number of simulated reads in FASTQ-file. Default value is 10.
filename
character. Name of written (compressed) FASTQ file.

Value

Details

The read headers are consequtive numbered. The phred quality values are equally set to 46 (='.') which represents a phred value of 13. This function is not designed for routine use. The random content FASTQ files can be used in order to measure the separation capabilities of hierarchical clustering mechanisms.

References

Cock PJA, Fields CJ, Goto N, Heuer ML, Rice PM The sanger FASTQ file format for sequences with quality scores and the Solexa/Illumina FASTQ variants. Nucleic Acids Research 2010 Vol.38 No.6 1767-1771

Examples

Run this code
writeSimFastq()

Run the code above in your browser using DataLab