Debian Codegraph @

auxil/strand-analysis/strand-analysis.hh

raw
1
2 #include "sec-str-dist-check.hh" // in parallel directory
3 #include "clipper/core/coords.h"
4
5 std::vector<clipper::Coord_orth> z_control_points(int nres);
6
7 std::pair<bool, clipper::RTop_orth>
8 orient_strand_on_z(int handle, mmdb::Manager *mol);
9
10 // fiddle with mol
11 void apply_rtop_to_strand(int SelHnd, mmdb::Manager *mol,
12 const clipper::RTop_orth &rtop);
13
14
15 void read_dir(const std::string &dir_name, int strand_length);
16
17 bool
18 matches_pdb_name(const std::string &file_str);
19
20 std::vector<std::string>
21 get_reference_pdb_list(const std::string &dir_name);
22
23
24
25 namespace coot {
26
27 class stats_t {
28 public:
29 float mean;
30 float var;
31 stats_t(float mean_in, float var_in) {
32 mean = mean_in;
33 var = var_in;
34 }
35 };
36
37 stats_t get_rtop_and_apply(const std::vector<clipper::Coord_orth> &found_atoms_strand_1,
38 const std::vector<clipper::Coord_orth> &found_atoms_strand_2,
39 mmdb::PPResidue SelResidues2, int nSelResidues2);
40
41 class strand_info_t {
42 public:
43 std::string name;
44 CStrand strand;
45 int length;
46 mmdb::Manager *mol;
47 int SelectionHandle;
48 };
49
50 class strands_t {
51
52 std::vector<strand_info_t> strand_infos;
53 float residual_between_strands(int istrand, int jstrand, int this_length) const;
54 std::vector<std::pair<std::string,std::vector<float> > >
55 filter_bad_fits(const std::vector<std::pair<std::string,std::vector<float> > > &dist_arr) const;
56 std::vector<std::pair<float, float> >
57 get_stats(const std::vector<std::pair<std::string, std::vector<float> > > &dist_arr) const;
58 std::vector<std::pair<std::string, std::vector<float> > >
59 clear_out_column(int i, const std::vector<std::pair<std::string, std::vector<float> > > &d) const;
60
61 public:
62 void analyse_pdb_file(const std::string &filename);
63 void add_strand(const std::string &filename,
64 mmdb::Manager *mol,
65 CStrand *strand,
66 int SelectionHandle);
67 void strand_analysis(mmdb::Model *model_p,
68 mmdb::Manager *mol,
69 const std::string &filename);
70
71 void post_read_analysis(int this_length) const;
72 };
73
74 }