Skip to content
Prev 7402 / 21312 Next

[Bioc-devel] Append/combine option for filterFastq and similar?

On 04/21/2015 02:18 PM, Ryan C. Thompson wrote:
actually I think the implementation almost does as you want, though 
'destination' needs to be replicated to be as long as the inputs

 > tmp = tempfile()
 > filterFastq(c(fl, fl), c(tmp, tmp), filter=fun)
[1] "/tmp/RtmpxGSJ7G/file265712b558a0" "/tmp/RtmpxGSJ7G/file265712b558a0"
attr(,"filter")
                    Reads KeptReads Nucl KeptNucl
s_1_sequence.txt     256       255 9216     9180
s_1_sequence.txt.1   256       255 9216     9180
 > length(readLines(tmp)) / 4
[1] 510

I'll make this a little more convenient (no need to replicate 'destination') and 
document the behavior.

Martin