Entering edit mode
7.9 years ago
sumithrasank75
▴
140
I am trying to store reads from a fastq file into a text file (tab delimited). I use the following code which just stores the read_id and sequence from the fastq file. What should I add to store the third and fourth rows of each entry? Thanks
def parsing_readid(input_file):
f_read = open ('read1.txt','a')
for record in SeqIO.parse(open(input_file,"rU"),"fastq"):
f_read.write("%s\t%s\n" %record.id,record.seq))