-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathexample_descriptor_atom_is_sp3.cpp
More file actions
128 lines (127 loc) · 5.42 KB
/
Copy pathexample_descriptor_atom_is_sp3.cpp
File metadata and controls
128 lines (127 loc) · 5.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// (c) Copyright BCL @ Vanderbilt University 2014
// (c) BCL Homepage: http://www.meilerlab.org/bclcommons
// (c) BCL Code Repository: https://github.com/BCLCommons/bcl
// (c)
// (c) The BioChemical Library (BCL) was originally developed by contributing members of the Meiler Lab @ Vanderbilt University.
// (c)
// (c) The BCL is now made available as an open-source software package distributed under the permissive MIT license,
// (c) developed and maintained by the Meiler Lab at Vanderbilt University and contributing members of the BCL Commons.
// (c)
// (c) External code contributions to the BCL are welcome. Please visit the BCL Commons GitHub page for information on how you can contribute.
// (c)
// (c) This file is part of the BCL software suite and is made available under the MIT license.
// (c)
//// (c) Copyright BCL @ Vanderbilt University 2014
//// (c) BCL Homepage: http://www.meilerlab.org/bclcommons
//// (c) The BCL software is developed by the contributing members of the BCL @ Vanderbilt University
//// (c) This file is part of the BCL software suite and is made available under license.
//// (c) To view or modify this file, you must enter into one of the following agreements if you have not done so already:
//// (c) For academic and non-profit users:
//// (c) the BCL Academic Single-User License, available at http://www.meilerlab.org/bclcommons/license
//// (c) For commercial users:
//// (c) The BCL Commercial Site License, available upon request from bcl-support-commercial@meilerlab.org
//// (c) For BCL developers at Vanderbilt University:
//// (c) The BCL Developer Agreement, available at http://www.meilerlab.org/bclcommons/developer_agreement
//// (c)
//// (c) As part of all such agreements, this copyright notice must appear, verbatim and without addition, at the
//// (c) top of all source files of the BCL project and may not be modified by any party except the BCL developers at
//// (c) Vanderbilt University.
//// (c) The BCL copyright and license yields to non-BCL copyrights and licenses where indicated by code comments.
//// (c) Questions about this copyright notice or license agreement may be emailed to bcl-support-academic@meilerlab.org
//// (c) (for academic users) or bcl-support-commercial@meilerlab.org (for commercial users)
//
//// include example header
//#include "example.h"
//
//// include the header of the class which this example is for
//#include "descriptor/bcl_descriptor_atom_is_sp3.h"
//
//// includes from bcl - sorted alphabetically
//#include "chemistry/bcl_chemistry_fragment_ensemble.h"
//#include "io/bcl_io_file.h"
//#include "sdf/bcl_sdf_fragment_factory.h"
//
//// external includes - sorted alphabetically
//
//namespace bcl
//{
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //!
// //! @example example_descriptor_atom_is_sp3.cpp
// //!
// //! @author brownbp1, mendenjl
// //! @date Jun 19, 2020
// //! @remarks status complete
// //! @remarks reviewed by nobody on
// //!
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// class ExampleDescriptorAtomIsSP3 :
// public ExampleInterface
// {
// public:
//
// ExampleDescriptorAtomIsSP3 *Clone() const
// {
// return new ExampleDescriptorAtomIsSP3( *this);
// }
//
// /////////////////
// // data access //
// /////////////////
//
// //! @brief returns class name
// //! @return the class name as const ref std::string
// const std::string &GetClassIdentifier() const
// {
// return GetStaticClassName( *this);
// }
//
// int Run() const
// {
// //////////////////////////////////
// // construction and destruction //
// //////////////////////////////////
//
// // test default constructor
// descriptor::AtomIsSP3 stereocenters_a;
//
// // test Clone
// descriptor::AtomIsSP3 stereocenters_cp( stereocenters_a);
//
// ////////////////////////////////////////
// // read Small molecule Stereocenters //
// ////////////////////////////////////////
//
// // use SmallMoleculeFactory to load molecule information into SmallMolecule
// // this requires SmallMolecule and input stream
// io::IFStream input_sdf;
// BCL_ExampleMustOpenInputFile( input_sdf, AddExampleInputPathToFilename( e_Chemistry, "corina_taxol.sdf"));
// chemistry::FragmentComplete taxol = sdf::FragmentFactory::MakeFragment( input_sdf);
// io::File::CloseClearFStream( input_sdf);
//
// //calculate stereocenters for taxol
// linal::Vector< float> calculated_stereocenters( stereocenters_a.CollectValuesOnEachElementOfObject( taxol));
//
// float expected_vec_array [] =
// {
// 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,-1,1,-1,1,-1,0,0,0,0,0,0,0,-1,-1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,
// 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
// 0,0,0,0,0
// };
// linal::Vector< float> expected_vector( 113, expected_vec_array);
// BCL_ExampleCheckWithinAbsTolerance( calculated_stereocenters, expected_vector, 0.001);
//
// return 0;
// } // Run
//
// static const ExampleClass::EnumType s_Instance;
//
// }; //end ExampleDescriptorAtomIsSP3
//
// const ExampleClass::EnumType ExampleDescriptorAtomIsSP3::s_Instance
// (
// GetExamples().AddEnum( ExampleDescriptorAtomIsSP3())
// );
//
//} // namespace bcl