This is a test version of Biostars. For the public version, visit https://www.biostars.org.
generate fastq with bed file

I want to generate fastq file for testing.. I already check FastQArtificialGenerator, wsgim and Simseq. But it seems I cannot specify a region from a bed file.

For example, from hg19, I only want a fastq where reads map my bed file (exome).

fastq bed

1 answer

I solve it ..

I just need to create a new reference containing my bed coordinate!

bedtools getfasta -fi ref.fa -bed target.bed -fo newref.fa

That generates a fasta, not a fastq :)

fasta to fastq is easy !

Log in to answer this question.