25 #include <basic/database/open.hh>
28 #include <utility/io/izstream.hh>
31 #include <utility/vector1.hh>
32 #include <basic/Tracer.hh>
35 static basic::Tracer
tr(
"core.scoring.rna.RNA_AtomVDW");
44 if ( c ==
'a')
return 1;
45 if ( c ==
'c')
return 2;
46 if ( c ==
'g')
return 3;
47 if ( c ==
'u')
return 4;
48 if ( c ==
'Z')
return 5;
49 tr <<
"What is this? " << c << std::endl;
50 utility_exit_with_message(
"Asked for rna_residue_name_to_num for unknown residue_name" );
60 if (*iter == element)
return count;
63 vec.push_back( element );
72 utility::io::izstream stream;
73 basic::database::open( stream,
"chemical/rna/rna_atom_vdw.txt" );
78 if ( !stream.good() ) utility_exit_with_message(
"Unable to open rna_scoring/AtomVDW/atom_vdw.txt!" );
85 char which_residue1, which_residue2;
86 Real input_bump_parameter;
87 while ( getline( stream, line ) ) {
88 lines.push_back(line);
89 std::istringstream l(line);
90 l >> which_residue1 >> which_residue2 >> atom_name1 >> atom_name2 >> input_bump_parameter;
122 AtomList::const_iterator iter =
rna_vdw_atom_.find( which_nucleotide );
125 tr <<
"WARNING! Asked for vdw_atom_list for " << which_nucleotide <<
" and it did not exist! " << std::endl;
130 return (iter->second);
135 char const which_residue1,
char const which_residue2 )
const