fastahold
Introduction

This project provides classes for the storing of FASTA data.

Installation
Features
class fastahold.Holder(data: Iterable = [])

This class inherits from datahold.OkayList. Its items must be of the class Record.

data

This property holds a list of the items of the current instance.

dump(stream:BinaryIO) -> None

This method dumps the current instance into a wb stream.

dumpintofile(file:Any) -> None

This method dumps the current instance into a file.

dumps() -> str

This method dumps the current instance as a string.

load(stream:BinaryIO) -> Self

This classmethod loads a new instance from an rb stream.

loadfromfile(file:Any) -> Self

This classmethod loads a new instance from a file.

loads(string:Any) -> Self

This classmethod loads a new instance from a string.

  • class fastahold.Record(other: Self)
  • class fastahold.Record(*, description: Any = "", seq: Any = "")
  • class fastahold.Record(*, bio: Bio.SeqRecord.SeqRecord)

This class represents individual FASTA records.

bio

This property holds a corresponding Bio.SeqRecord.SeqRecord.

copy() -> Self

This method returns a copy of the current instance.

description

This property represents the description of the record.

dumps() -> str

This method dumps the current instance as a string.

id

This property represents the id of the record.

loads(string: Any) -> Self

This classmethod loads a new instance from a string.

seq

This property holds the seq of the record.

supplementary

This property holds the supplementary information of the record.

Testing
License
Impressum