Header menu logo BioFSharp

BioList Module

This module contains the BioList type and its according functions. The BioList type is a List of objects using the IBioItem interface

Types

Type Description

BioList<'a>

List of objects using the IBioItem interface

Functions and values

Function or value Description

complement nucs

Full Usage: complement nucs

Parameters:
Returns: BioList<Nucleotide>

Create the complement DNA or cDNA (from RNA) strand. For example, the sequence "ATGC" is converted to "TACG"

nucs : BioList<Nucleotide>
Returns: BioList<Nucleotide>

initAverageMass

Full Usage: initAverageMass

Returns: BioList<'a> -> float

Returns a function to calculate the average mass of the given sequence !memoization

Returns: BioList<'a> -> float

initAverageMassWith state

Full Usage: initAverageMassWith state

Parameters:
    state : float

Returns: BioList<'a> -> float

Returns a function to calculate the average mass of the given sequence and initial value (e.g. H2O) !memoization

state : float
Returns: BioList<'a> -> float

initMonoisoMass

Full Usage: initMonoisoMass

Returns: BioList<'a> -> float

Returns a function to calculate the monoisotopic mass of the given sequence !memoization

Returns: BioList<'a> -> float

initMonoisoMassWith state

Full Usage: initMonoisoMassWith state

Parameters:
    state : float

Returns: BioList<'a> -> float

Returns a function to calculate the monoisotopic mass of the given sequence and initial value (e.g. H2O) !memoization

state : float
Returns: BioList<'a> -> float

isEqual a b

Full Usage: isEqual a b

Parameters:
    a : 'a list
    b : 'a list

Returns: int

Compares the elemens of two sequence

a : 'a list
b : 'a list
Returns: int

mapInTriplets mapping input

Full Usage: mapInTriplets mapping input

Parameters:
    mapping : 'a * 'a * 'a -> 'a0
    input : BioList<'a>

Returns: 'a0 list

Builts a new collection whose elements are the result of applying the given function to each triplet of the collection.

mapping : 'a * 'a * 'a -> 'a0
input : BioList<'a>
Returns: 'a0 list

ofAminoAcidString s

Full Usage: ofAminoAcidString s

Parameters:
    s : 'a

Returns: BioList<AminoAcid>

Generates amino acid sequence of one-letter-code raw string

s : 'a
Returns: BioList<AminoAcid>

ofAminoAcidStringWithOptionConverter converter s

Full Usage: ofAminoAcidStringWithOptionConverter converter s

Parameters:
Returns: BioList<AminoAcid>

Generates amino acid sequence of one-letter-code string using given OptionConverter

converter : AminoAcidOptionConverter
s : 'a
Returns: BioList<AminoAcid>

ofAminoAcidSymbolString s

Full Usage: ofAminoAcidSymbolString s

Parameters:
    s : 'a

Returns: BioList<AminoAcidSymbol>

Generates AminoAcidSymbol sequence of one-letter-code raw string

s : 'a
Returns: BioList<AminoAcidSymbol>

ofNucleotideString s

Full Usage: ofNucleotideString s

Parameters:
    s : 'a

Returns: BioList<Nucleotide>

Generates nucleotide sequence of one-letter-code raw string

s : 'a
Returns: BioList<Nucleotide>

ofNucleotideStringWithOptionConverter converter s

Full Usage: ofNucleotideStringWithOptionConverter converter s

Parameters:
Returns: BioList<Nucleotide>

Generates nucleotide sequence of one-letter-code string using given OptionConverter

converter : NucleotideOptionConverter
s : 'a
Returns: BioList<Nucleotide>

reverse nucs

Full Usage: reverse nucs

Parameters:
Returns: BioList<Nucleotide>

Create the reverse DNA or RNA strand. For example, the sequence "ATGC" is converted to "CGTA"

nucs : BioList<Nucleotide>
Returns: BioList<Nucleotide>

reverseComplement nucs

Full Usage: reverseComplement nucs

Parameters:
Returns: BioList<Nucleotide>

Create the reverse complement strand meaning antiparallel DNA strand or the cDNA (from RNA) respectivly. For example, the sequence "ATGC" is converted to "GCAT". "Antiparallel" combines the two functions "Complement" and "Inverse".

nucs : BioList<Nucleotide>
Returns: BioList<Nucleotide>

toAverageMass bs

Full Usage: toAverageMass bs

Parameters:
Returns: float

Returns average mass of the given sequence

bs : BioList<'a>
Returns: float

toAverageMassWith state bs

Full Usage: toAverageMassWith state bs

Parameters:
Returns: float

Returns average mass of the given sequence and initial value (e.g. H2O)

state : float
bs : BioList<'a>
Returns: float

toCompositionVector input

Full Usage: toCompositionVector input

Parameters:
Returns: int[]

Creates an array with information about the abundacies of the distinct BioItems by converting the symbol of the BioItem to an integer and incrementing the given integer. To decrease the size of the resulting array by still having a fast performance, all indices are shifted by 65. Therefore to call the abundancy of a given BioItem, use "Resultcompositionvector.[(BioItem.symbol bioitem) - 65]"

input : BioList<'a>
Returns: int[]

toFormula bs

Full Usage: toFormula bs

Parameters:
Returns: Formula

Returns formula

bs : BioList<'a>
Returns: Formula

toMonoisotopicMass bs

Full Usage: toMonoisotopicMass bs

Parameters:
Returns: float

Returns monoisotopic mass of the given sequence

bs : BioList<'a>
Returns: float

toMonoisotopicMassWith state bs

Full Usage: toMonoisotopicMassWith state bs

Parameters:
Returns: float

Returns monoisotopic mass of the given sequence and initial value (e.g. H2O)

state : float
bs : BioList<'a>
Returns: float

toString bs

Full Usage: toString bs

Parameters:
Returns: string

Returns string of one-letter-code

bs : BioList<'a>
Returns: string

transcribeCodingStrand nucs

Full Usage: transcribeCodingStrand nucs

Parameters:
Returns: BioList<Nucleotide>

Transcribe a given DNA coding strand (5'-----3')

nucs : BioList<Nucleotide>
Returns: BioList<Nucleotide>

transcribeTemplateStrand nucs

Full Usage: transcribeTemplateStrand nucs

Parameters:
Returns: BioList<Nucleotide>

Transcribe a given DNA template strand (3'-----5')

nucs : BioList<Nucleotide>
Returns: BioList<Nucleotide>

translate nucleotideOffset rnaSeq

Full Usage: translate nucleotideOffset rnaSeq

Parameters:
Returns: BioList<AminoAcid>

translates nucleotide sequence to aminoacid sequence

nucleotideOffset : int
rnaSeq : BioList<Nucleotide>
Returns: BioList<AminoAcid>

Type something to start searching.