write filtered seqs to file