I am using biopython package and I would like to save result like tsv file. This output from print to tsv.
for record in SeqIO.parse(\"/home/fil/Desktop/420_
I prefer using join() in this type of code:
for record in SeqIO.parse("/home/fil/Desktop/420_2_03_074.fastq", "fastq"):
print ( '\t'.join((str(record.id), str(record.seq), str(record.format("qual"))) )
The 'tab' character is \t and the join function takes the (3) arguments and prints them with a tab in between.