c++/EEDB/SPStreams/BAMDB.cpp
////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// methods for building and loading new BAM file into BAMDB
//
////////////////////////////////////////////////////////////////////////////////////////////////////////
methods for building and loading new BAM file into BAMDB
methods for building and loading new BAM file into BAMDB
EEDB::Experiment*  EEDB::SPStreams::BAMDB::experiment() {
  if(_primary_experiment) { return _primary_experiment; }
  _init_from_xmldb();
  map<string, EEDB::DataSource*>::iterator it;
  for(it = _sources_cache.begin(); it != _sources_cache.end(); it++) {
    EEDB::DataSource* source = (*it).second;
    if(source == NULL) { continue; }
    if(source->classname() != EEDB::Experiment::class_name) { continue; }
    _primary_experiment = (EEDB::Experiment*)source;
    break;
  }
  return _primary_experiment;
}
EEDB :: Experiment * EEDB :: SPStreams :: BAMDB :: experiment ( ) { if ( _primary_experiment ) { return _primary_experiment ; } _init_from_xmldb ( ) ; map < string , EEDB :: DataSource * > :: iterator it ; for ( it = _sources_cache . begin ( ) ; it != _sources_cache . end ( ) ; it ++ ) { EEDB :: DataSource * source = ( * it ) . second ; if ( source == NULL ) { continue ; } if ( source -> classname ( ) != EEDB :: Experiment :: class_name ) { continue ; } _primary_experiment = ( EEDB :: Experiment * ) source ; break ; } return _primary_experiment ; }
methods for building and loading new BAM file into BAMDB
methods for building and loading new BAM file into BAMDB