write_fastq | R Documentation |
Write data to a fastq file.
write_fastq(df, path)
df |
The dataframe of sequence data to write to file. The dataframe must contain the columns: "header", "sequence", "strand", and "qual". Other columns in the dataframe are permitted but will be ignored. |
path |
Path or connection to write to. |
fastq_ex_dat = data.frame( header = c("seq1", "seq2", "seq3"), sequence = c("ATGC", "AATTGGCC", "TGACTGAC"), strand = c("+", "+","+"), qual = c("~~ua", "~AZ~ngZO", "lvykl~Qv"), stringsAsFactors = FALSE) data = write_fastq(fastq_ex_dat, "example_output.fastq")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.