def minimal_export(self, target_analytes=None, path=None):
if target_analytes is None:<EOL><INDENT>target_analytes = self.analytes<EOL><DEDENT>if isinstance(target_analytes, str):<EOL><INDENT>target_analytes = [target_analytes]<EOL><DEDENT>self.minimal_analytes.update(target_analytes)<EOL>zip_archive = False<EOL>if path is None:<EOL><INDENT>path = self.export_dir + '<STR_LIT>'<EOL><DEDENT>if path.endswith('<STR_LIT>'):<EOL><INDENT>path = path.replace('<STR_LIT>', '<STR_LIT>')<EOL>zip_archive = True<EOL><DEDENT>if not os.path.isdir(path):<EOL><INDENT>os.mkdir(path)<EOL><DEDENT>self._minimal_export_traces(path + '<STR_LIT>', analytes=self.minimal_analytes)<EOL>log_header = ['<STR_LIT>' %<EOL>(time.strftime('<STR_LIT>')),<EOL>'<STR_LIT>']<EOL>if hasattr(self, '<STR_LIT>'):<EOL><INDENT>log_header.append('<STR_LIT>')<EOL>els = np.unique([re.sub('<STR_LIT>', '<STR_LIT>', a) for a in self.minimal_analytes])<EOL>srmdat = []<EOL>for e in els:<EOL><INDENT>srmdat.append(self.srmdat.loc[self.srmdat.element == e, :])<EOL><DEDENT>srmdat = pd.concat(srmdat)<EOL>with open(path + '<STR_LIT>', '<STR_LIT:w>') as f:<EOL><INDENT>f.write(srmdat.to_csv())<EOL><DEDENT><DEDENT>if hasattr(self, '<STR_LIT>'):<EOL><INDENT>with open(path + '<STR_LIT>', '<STR_LIT:w>') as f:<EOL><INDENT>f.write(self.custom_stat_functions)<EOL><DEDENT>log_header.append('<STR_LIT>')<EOL><DEDENT>log_header.append('<STR_LIT>')<EOL>lss = [(i, l) for i, l in enumerate(self.log) if '<STR_LIT>' in l]<EOL>rep = re.compile("<STR_LIT>")<EOL>for i, l in lss:<EOL><INDENT>self.log[i] = rep.sub(r'<STR_LIT>' + str(self.stats_calced) + r'<STR_LIT>', l)<EOL><DEDENT>self.save_log(path, '<STR_LIT>', header=log_header)<EOL>if zip_archive:<EOL><INDENT>utils.zipdir(directory=path, delete=True)<EOL><DEDENT>return<EOL>
Exports a analysis parameters, standard info and a minimal dataset,
which can be imported by another user.

Parameters
----------
target_analytes : str or iterable
    Which analytes to include in the export. If specified, the export
    will contain these analytes, and all other analytes used during
    data processing (e.g. during filtering). If not specified, 
    all analytes are exported.
path : str
    Where to save the minimal export. 
    If it ends with .zip, a zip file is created.
    If it's a folder, all data are exported to a folder.