This might be a very simple question. I have some Illumina fastq file and I want to convert to fasta file. Can someone show me how to convert fastq to fasta file. When I use writeFasta(sample_1.fq), readFastq(sample_1.fq), sread(sample_1.fq), I got error message like these:
Error in writeFasta(sample_1.fq, file) :
error in evaluating the argument 'object' in selecting a method for function 'writeFasta': Error: object 'sample_1.fq' not found
Error in readFastq(sample_1.fq) :
error in evaluating the argument 'dirPath' in selecting a method for function 'readFastq': Error: object 'sample_1.fq' not found
Error in sread(sample_1.fq) :
error in evaluating the argument 'object' in selecting a method for function 'sread': Error: object 'sample_1.fq' not found
Do I need to convert the fastq file to something first before I can convert to fasta? Thanks in advance.
Try
ShortRead::trim<tab>
to see some possibilities, e.g.,trimTails
,trimTailw
. How specifically were you hoping to trim?You mean you wonder if the ShortRead package has a function for doing FASTQ quality filtering on Illumina sequences right? Did you read the ShortRead vignette? I think it deals a lot with read quality. As long as you can load your reads in a
ShortRead
object, it shouldn't really matter where the reads are coming from.H.
Great. I will look into that. Thanks.