9 #ifndef IMPMULTIFIT_PROTEIN_ANCHORS_MAPPING_READER_H
10 #define IMPMULTIFIT_PROTEIN_ANCHORS_MAPPING_READER_H
12 #include <IMP/multifit/multifit_config.h>
18 IMPMULTIFIT_BEGIN_NAMESPACE
29 inline std::string get_anchors_filename()
const {
return anchors_fn_;}
30 void set_anchors_filename(
const std::string &fn) {anchors_fn_=fn;}
32 void add_protein(
const multifit::ProteinRecordData &rec) {
35 IntsList get_paths_for_protein(
const std::string &prot_name)
const {
37 <<prot_name<<
" is not found");
38 return paths_map_.find(prot_name)->second;}
39 void set_paths_filename_for_protein(
const std::string &prot_name,
40 const std::string &paths_filename){
42 "Protein:"<<prot_name<<
" is already set");
43 paths_filename_[prot_name]=paths_filename;
45 std::string get_paths_filename_for_protein(
const std::string &prot_name)
48 "Protein:"<<prot_name<<
" is not found");
49 return paths_filename_.find(prot_name)->second;}
50 void set_paths_for_protein(
const std::string &prot_name,
IntsList paths){
52 <<prot_name<<
" is already set");
53 paths_map_[prot_name]=paths;
56 void show(std::ostream &s=std::cout)
const;
59 std::map<std::string, IntsList> paths_map_;
60 std::map<std::string,std::string> paths_filename_;
63 std::string anchors_fn_;
70 const std::string &anchors_prot_map_fn,
71 int max_paths=INT_MAX);
73 void write_protein_anchors_mapping(
74 const std::string &anchors_prot_map_fn,
75 const std::string &anchors_fn,
76 const std::vector<std::pair<String,String> > &prot_paths);
80 void write_protein_anchors_mapping(
81 const std::string &anchors_prot_map_fn,
96 IMPMULTIFIT_END_NAMESPACE
handles reading of proteomics data
Storage of proteomics data.
A smart pointer to a ref-counted Object that is a class memeber.
Storage of anchors (points and edges)
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.
ProteinsAnchorsSamplingSpace get_part_of_sampling_space(const ProteinsAnchorsSamplingSpace &prots_ss, const Strings &prot_names)
Get the sampling space of few of the proteins.
multifit::SettingsData * get_partial_assembly_setting_data(multifit::SettingsData *prots_sd, const Strings &prot_names)
Get the assembly data for a few of the proteins.
int add_protein(std::string name, int start_res, int end_res, const std::string &mol_fn, const std::string &surface_fn, const std::string &ref_fn)
stored multifit settings data
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Holds header data for optimization.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
A beyesian infererence-based sampler.
handles reading of anchors data