class Fastx::Fasta::Writer

Defined in:

fastx/fasta/writer.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(filename : String | Path) #

Creates a new FASTA writer for the specified file. Automatically detects gzip compression from .gz extension.


[View source]

Class Method Detail

def self.open(filename : String | Path, &) #

Opens a FASTA file for writing, yields the writer to the block, and automatically closes it.


[View source]

Instance Method Detail

def close #

Closes the file handle.


[View source]
def closed? #

Returns true if the file handle is closed.


[View source]
def write(name : String, sequence : String) #

Writes a FASTA record with the given name and sequence.


[View source]