我使用Bio.jl(Bio.Seq)来浏览文件。现在我想同时浏览两个文件。有没有办法实现这个类似于常规文件的实现?或者其他任何方式?
e.g:
reader1 = open(FASTQ.Reader, "reads1.fastq")
reader2 = open(FASTQ.Reader, "reads2.fastq")
secondfile = readlines(reader2)
for (lines,record) in enumerate(reader1)
seqnamefirstfile = record.name
seqnamesecondfile = secondfile[lines].name
end
close(reader)
答案 0 :(得分:1)
也许使用zip
?
reader1 = open(FASTQ.Reader, "reads1.fastq")
reader2 = open(FASTQ.Reader, "reads2.fastq")
for (read1,read2) in zip(reader1,reader2)
seqnamefirstfile = read1.name
seqnamesecondfile = read2.name
end