def read_preprocessed_data(out_fp='/tmp/'):
 seqs = dict([(a.split(':')[0], b) for (a, b) in parse_fasta(open((out_fp + '/prefix_dereplicated.fasta')))])
 mapping = read_denoiser_mapping(open((out_fp + '/prefix_mapping.txt')))
 return ((out_fp + '/prefix_dereplicated.sff.txt'), len(mapping), mapping, seqs)

def read_preprocessed_data ( out_fp = '/tmp/' ) : seqs = dict ( [ ( a . split ( ':' ) [ 0 ] , b ) for ( a , b ) in parse_fasta ( open ( ( out_fp + '/prefix_dereplicated.fasta' ) ) ) ] ) mapping = read_denoiser_mapping ( open ( ( out_fp + '/prefix_mapping.txt' ) ) ) return ( ( out_fp + '/prefix_dereplicated.sff.txt' ) , len ( mapping ) , mapping , seqs )
read data of a previous preprocessing run .