pluto.tools.write_table

pluto.tools.write_table(tmpdir, filename, lines, delimiter='\t', filepath=None)[source]

Write a table to a temp location

Parameters
  • tmpdir (str) – path to parent directory to save the file to

  • filename (str) – basename for the file to write to

  • filepath (str) – full path to write the output file to; overrides tmpdir and filename

  • lines (list) – a list of lists, containing each field to write

  • delimiter (str) – character to join the line elements on

Returns

path to output file

Return type

str