parameters: (filename, segments, silent=False)
docstring: Saves single copy segments (only forward sequences) to a FASTA file.
docstring_summary: Saves single copy segments (only forward sequences) to a FASTA file.
docstring_tokens: Saves single copy segments ( only forward sequences ) to a FASTA file .
function: def save_specific_segments_to_fasta(filename, segments, silent=False):
          """
          Saves single copy segments (only forward sequences) to a FASTA file.
          """
          if not silent:
              log.log('Saving ' + filename)
          with open(filename, 'w') as fasta:
              sorted_segments = sorted(segments, key=lambda x: x.number)
              for segment in sorted_segments:
                  fasta.write('>' + str(segment.number) + '\n')
                  fasta.write(add_line_breaks_to_sequence(segment.forward_sequence))
function_tokens: def save_specific_segments_to_fasta ( filename , segments , silent = False ) : if not silent : log . log ( 'Saving ' + filename ) with open ( filename , 'w' ) as fasta : sorted_segments = sorted ( segments , key = lambda x : x . number ) for segment in sorted_segments : fasta . write ( '>' + str ( segment . number ) + '\n' ) fasta . write ( add_line_breaks_to_sequence ( segment . forward_sequence ) )