src/matOptimize/detailed_mutations_load_store.cpp
//mapping between chromosome string and chromosome index
mapping between chromosome string and chromosome index
mapping between chromosome string and chromosome index
static void load_chrom_vector(const Mutation_Detailed::meta &to_load) {
    size_t chrom_size = to_load.chromosomes_size();
    MAT::Mutation::chromosomes.reserve(chrom_size);
    for (size_t idx = 0; idx < chrom_size; idx++) {
        MAT::Mutation::chromosomes.push_back(to_load.chromosomes(idx));
    }
    size_t ref_nuc_size = to_load.ref_nuc_size();
    MAT::Mutation::refs.reserve(ref_nuc_size);
    for (size_t i = 0; i < ref_nuc_size; i++) {
        MAT::Mutation::refs.push_back(nuc_one_hot(to_load.ref_nuc(i), true));
    }
}
static void load_chrom_vector ( const Mutation_Detailed :: meta & to_load ) { size_t chrom_size = to_load . chromosomes_size ( ) ; MAT :: Mutation :: chromosomes . reserve ( chrom_size ) ; for ( size_t idx = 0 ; idx < chrom_size ; idx ++ ) { MAT :: Mutation :: chromosomes . push_back ( to_load . chromosomes ( idx ) ) ; } size_t ref_nuc_size = to_load . ref_nuc_size ( ) ; MAT :: Mutation :: refs . reserve ( ref_nuc_size ) ; for ( size_t i = 0 ; i < ref_nuc_size ; i ++ ) { MAT :: Mutation :: refs . push_back ( nuc_one_hot ( to_load . ref_nuc ( i ) , true ) ) ; } }
mapping between chromosome string and chromosome index
mapping between chromosome string and chromosome index