calour.io.save_metadata

calour.io.save_metadata(exp: calour.experiment.Experiment, f, axis=0, **kwargs)[source]

Save sample/feature metadata to file.

Note

This function is also available as a class method Experiment.save_metadata()

Parameters:
  • exp (Experiment) – Input experiment object.
  • f (str) – file path to save to
  • axis (0 ('s') or 1 ('f')) – 0 or ‘s’ to save sample metadata; 1 or ‘f’ to save feature metadata
  • kwargs (dict) – keyword arguments passing to pandas.DataFrame.to_csv()