fastq_to_fasta {baseq}R Documentation

Convert a FASTQ file to a FASTA file

Description

This function converts a FASTQ file to a FASTA file. The output file has the same name as the input FASTQ file, but with the extension changed to .fasta. This function removes the @ symbol at the beginning of FASTQ sequence names and replaces it with the > symbol for the FASTA format.

Usage

fastq_to_fasta(fastq_file)

Arguments

fastq_file

A character string specifying the path to the input FASTQ file.

Value

A character string specifying the path to the output FASTA file.

Examples

#sample_file_path_two <- system.file("extdata", "sample_fq.fastq", package = "baseq")
#tempdir <- tempdir()
#temp_file_path <- file.path(tempdir, basename(sample_file_path_two))
#file.copy(sample_file_path_two, temp_file_path, overwrite = TRUE)
#fastq_to_fasta(temp_file_path)

# Output: "path/to/Temp/tempfoldername/sample_fq.fasta"


[Package baseq version 0.1.4 Index]