dalicious.genome

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.

getFastaLength
size_t getFastaLength(in string fastaFile)
size_t getFastaLength(File fastaFile)

Calculate the sequence length of the first record in fastaFile. Returns the length of the next record in fastaFile if it is a File object.

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.

Manifest constants

headerIndicator
enum headerIndicator;

Lines starting with this character designate the beginning of a FASTA record.

Templates

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>