added function to write quants and quant seqs