original_docstring: Create the Alignment object from the collected alignment data.
docstring: Create the Alignment object from the collected alignment data.
docstring_tokens: Create the Alignment object from the collected alignment data .
code: def create_alignment(
          records,
          aligned_sequences,
          strands,
          annotations,
          column_annotations,
          score,
      ):
          """Create the Alignment object from the collected alignment data."""
          coordinates = Alignment.infer_coordinates(aligned_sequences)
          for record, strand, row in zip(records, strands, coordinates):
              if strand == "-":
                  row[:] = row[-1] - row[0] - row
              start = record.seq.defined_ranges[0][0]
              row += start
          alignment = Alignment(records, coordinates)
          if annotations is not None:
              alignment.annotations = annotations
          if column_annotations is not None:
              alignment.column_annotations = column_annotations
          if score is not None:
              alignment.score = score
          return alignment
code_tokens: def create_alignment ( records , aligned_sequences , strands , annotations , column_annotations , score , ) : coordinates = Alignment . infer_coordinates ( aligned_sequences ) for record , strand , row in zip ( records , strands , coordinates ) : if strand == "-" : row [ : ] = row [ - 1 ] - row [ 0 ] - row start = record . seq . defined_ranges [ 0 ] [ 0 ] row += start alignment = Alignment ( records , coordinates ) if annotations is not None : alignment . annotations = annotations if column_annotations is not None : alignment . column_annotations = column_annotations if score is not None : alignment . score = score return alignment
short_docstring: Create the Alignment object from the collected alignment data.
short_docstring_tokens: Create the Alignment object from the collected alignment data .
comment: """Create the Alignment object from the collected alignment data."""