lib5c.writers.pca module

Module for writing the results of principle component analyses to disk.

lib5c.writers.pca.write_pca(outfile, proj, rep_names=None, pve=None)[source]

Write PCA projections to a csv file.

Parameters
  • outfile (str) – String reference to the file to write to.

  • proj (np.ndarray) – The PCA projections to plot

  • rep_names (Optional[List[str]]) – The replicate names in the order of the rows of proj, to be used to write the header line.

  • pve (Optional[List[float]]) – The percent variance explained for each component, to be included in the footer.