def main(args, outs): filtered_matrices = filter_barcodes(args, outs) matrix_attrs = cr_matrix.make_matrix_attrs_count( args.sample_id, args.gem_groups, cr_chem.get_description(args.chemistry_def)) filtered_matrices.save_h5(outs.filtered_matrices_h5, extra_attrs=matrix_attrs) filtered_matrices.save_mex(outs.filtered_matrices_mex)
def join_matrices(args, outs, chunk_defs, chunk_outs): chunk_h5s = [chunk_out.matrices_h5 for chunk_out in chunk_outs] matrices = cr_matrix.merge_matrices(chunk_h5s) matrix_attrs = cr_matrix.make_matrix_attrs_count( args.sample_id, args.gem_groups, cr_chem.get_description(args.chemistry_def)) matrices.save_h5(outs.matrices_h5, extra_attrs=matrix_attrs) matrices.save_mex(outs.matrices_mex)
def join_matrices(args, outs, chunk_defs, chunk_outs): chunk_h5s = [chunk_out.matrices_h5 for chunk_out in chunk_outs] matrix = cr_matrix.merge_matrices(chunk_h5s) matrix_attrs = cr_matrix.make_matrix_attrs_count( args.sample_id, args.gem_groups, cr_chem.get_description(args.chemistry_def)) matrix.save_h5_file(outs.matrices_h5, extra_attrs=matrix_attrs) rna_matrix.save_mex(matrix, outs.matrices_mex, martian.get_pipelines_version())
def join(args, outs, _chunk_defs, _chunk_outs): filtered_matrix = filter_barcodes(args, outs) matrix_attrs = cr_matrix.make_matrix_attrs_count( args.sample_id, args.gem_groups, cr_chem.get_description(args.chemistry_def)) filtered_matrix.save_h5_file(outs.filtered_matrices_h5, extra_attrs=matrix_attrs) rna_matrix.save_mex(filtered_matrix, outs.filtered_matrices_mex, martian.get_pipelines_version())