dentist.util.fasta

Some functions to work with FASTA data.

Members

Functions

complement
C complement(C base)

Get the complement of a DNA base. Only bases A, T, C, G will be translated; all other characters are left as is. Replacement preserves casing of the characters.

parseFasta
Fasta!T parseFasta(T data)

Convenience wrapper around Fasta!T(T data).

parseFastaRecord
FastaRecord!T parseFastaRecord(T data)

Convenience wrapper around FastaRecord!T(T data).

parsePacBioHeader
PacBioHeader!T parsePacBioHeader(T header)

Convenience wrapper around PacBioHeader!T(T header).

reverseComplement
T reverseComplement(in T sequence)

Compute the reverse complement of a DNA sequence. Only bases A, T, C, G will be translated; all other characters are left as is. Replacement preserves casing of the characters.

reverseComplementer
auto reverseComplementer(Range sequence)

Compute the reverse complement of a DNA sequence. Only bases A, T, C, G will be translated; all other characters are left as is. Replacement preserves casing of the characters.

Templates

Fasta
template Fasta(T)

Gives access to FASTA data. Does not copy the input sequence.

FastaRecord
template FastaRecord(T)

Gives access to a single FASTA record. Does not copy the input sequence.

PacBioHeader
template PacBioHeader(T)

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>