- This page will teach you to familiarize with some of NVBIO's basic containers and concepts, showing you how to instantiate a PackedVector to store some DNA string. Packed vectors are useful to represent streams of symbols using a few bits per symbol. For a DNA alphabet, we'll only need 2-bits:
{
const char dna_string[] = "ACGTTGCA";
const uint32 ALPHABET_SIZE = AlphabetTraits<DNA>::SYMBOL_SIZE;
nvbio::assign( len, nvbio::from_string<DNA>( dna_string ), h_dna.begin() );
}
Next: Hello DNA! - Part 2 Top: NVBIO