def get_alignment_summary_metrics(self, barcode):
filename = barcode + "<STR_LIT>"<EOL>try:<EOL><INDENT>file_id = dxpy.find_one_data_object(<EOL>zero_ok=False,<EOL>project=self.dx_project_id,<EOL>name=filename)["<STR_LIT:id>"]<EOL><DEDENT>except dxpy.exceptions.DXSearchError as err:<EOL><INDENT>msg = "<STR_LIT>".format(barcode, self.dx_project_id)<EOL>debug_logger.error(msg)<EOL>raise DxMissingAlignmentSummaryMetrics(msg)<EOL><DEDENT>fh = StringIO(dxpy.open_dxfile(file_id).read())<EOL>asm = picard.CollectAlignmentSummaryMetrics(fh)<EOL>return asm.metrics<EOL>
Parses the metrics in a ${barcode}alignment_summary_metrics file in the DNAnexus project
(usually in the qc folder). This contains metrics produced by Picard Tools's 
CollectAlignmentSummaryMetrics program.