fgpyo icon indicating copy to clipboard operation
fgpyo copied to clipboard

Add `as_fastafile` method to `FastaBuilder`

Open msto opened this issue 9 months ago • 0 comments

It'd be convenient to have a method that exposes the built FASTA as a pysam.FastaFile , e.g. to condense the following

fasta_path = tmp_path / "foo.fa"
fasta_builder.to_file(fasta_path)
fasta_file = FastaFile(str(fasta_path))

msto avatar May 01 '24 09:05 msto