def main(): option_parser, opts, args = parse_command_line_parameters(**script_info) verbose = opts.verbose input_fasta_fp = opts.input_fasta_fp output_fp = opts.output_fp retain_seq_id = opts.retain_seq_id if retain_seq_id: seq_desc_mapper = null_seq_desc_mapper else: seq_desc_mapper = append_rc if not output_fp: input_file_basename, input_file_ext = splitext(split(input_fasta_fp)[1]) output_fp = "%s_rc%s" % (input_file_basename, input_file_ext) rc_fasta_file(input_fasta_fp, output_fp, seq_desc_mapper)
def main(): option_parser, opts, args = parse_command_line_parameters(**script_info) verbose = opts.verbose input_fasta_fp = opts.input_fasta_fp output_fp = opts.output_fp retain_seq_id = opts.retain_seq_id if retain_seq_id: seq_desc_mapper = null_seq_desc_mapper else: seq_desc_mapper = append_rc if not output_fp: input_file_basename, input_file_ext = \ splitext(split(input_fasta_fp)[1]) output_fp = '%s_rc%s' % (input_file_basename, input_file_ext) rc_fasta_file(input_fasta_fp, output_fp, seq_desc_mapper)