write_fasta

Function write_fasta 

Source
pub fn write_fasta(df: &DataFrame, filename: &str) -> Result<(), MotifError>
Expand description

Writes sequences from a Polars DataFrame to a FASTA format file.

§Arguments

  • df - DataFrame containing sequences with “label” and “sequence” columns
  • filename - Path where the FASTA file should be written

§Returns

  • Result<()> - Unit type if successful

§Errors

  • Returns MotifError::DataError if required columns are missing
  • Returns MotifError::Io for file writing issues