use crate::*;
pub fn gen_tbl(input_file: &str, pml: &Option<String>) {
let mut interactors = read_json_file(input_file).unwrap();
interactors.iter_mut().for_each(|interactor| {
if !interactor.structure().is_empty() {
if interactor.passive_from_active() {
interactor.set_passive_from_active();
}
if interactor.surface_as_passive() {
interactor.set_surface_as_passive();
}
if interactor.filter_buried() {
interactor.remove_buried_residues();
}
}
});
let air = Air::new(interactors);
let tbl = air.gen_tbl().unwrap();
println!("{}", tbl);
if let Some(output_f) = pml {
air.gen_pml(output_f)
};
}
#[cfg(test)]
mod tests {}