code: def _apply_worksheet_template_duplicate_analyses(self, wst):
          
          wst_layout = wst.getLayout()
  
          for row in wst_layout:
              if row['type'] != 'd':
                  continue
  
              src_pos = to_int(row['dup'])
              dest_pos = to_int(row['pos'])
  
              self.addDuplicateAnalyses(src_pos, dest_pos)
docs: Add duplicate analyses to worksheet according to the worksheet template
          layout passed in w/o overwrite slots that are already filled.
  
          If the slot where the duplicate must be located is available, but the
          slot where the routine analysis should be found is empty, no duplicate
          will be generated for that given slot.
  
          :param wst: worksheet template used as the layout
          :returns: None