Commit 447aa92b authored by Emmanuel Bresso's avatar Emmanuel Bresso

minor update

parent 3d86a8d9
Pipeline #74484 passed with stages
in 51 seconds
...@@ -297,7 +297,7 @@ impl<'a> Protein { ...@@ -297,7 +297,7 @@ impl<'a> Protein {
Some(x) => x, Some(x) => x,
None => { None => {
println!("Can't parse the protein with these attributes"); println!("Can't parse the protein with these attributes");
return None;let mut n_prot = Protein::new(self.name.clone()); return None;
} }
}; };
for chain in &self.lst_chain { for chain in &self.lst_chain {
...@@ -364,7 +364,6 @@ impl<'a> Protein { ...@@ -364,7 +364,6 @@ impl<'a> Protein {
/// assert_eq!(541, ss_h.get_number_atom()); /// assert_eq!(541, ss_h.get_number_atom());
/// ``` /// ```
pub fn remove_h(&self) -> Option<Protein> { pub fn remove_h(&self) -> Option<Protein> {
let mut new_prot = Protein::new(self.name.clone()); let mut new_prot = Protein::new(self.name.clone());
for chain in &self.lst_chain { for chain in &self.lst_chain {
...@@ -372,7 +371,7 @@ impl<'a> Protein { ...@@ -372,7 +371,7 @@ impl<'a> Protein {
for residue in &chain.lst_res { for residue in &chain.lst_res {
let c_res = residue.res_num; let c_res = residue.res_num;
for atom in &residue.lst_atom { for atom in &residue.lst_atom {
if !(atom.name().starts_with("H")){ if !(atom.name().starts_with("H")) {
new_prot.update_protein( new_prot.update_protein(
c_chain, c_chain,
residue.name.clone(), residue.name.clone(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment