diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 667e430e39421d7103c44d60bea4e2b934e8e06c..0000000000000000000000000000000000000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/target -**/*.rs.bk -Cargo.lock -.*/ \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 4113fc5fc7a75a517210effd6a5aa53b2f79ae15..0000000000000000000000000000000000000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index af1863827ae28383b5be598607eee740e26d20be..0000000000000000000000000000000000000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/pdbparser.iml b/.idea/pdbparser.iml deleted file mode 100644 index d93eb8428a3b808178aefb53b265ab0208dbc6c7..0000000000000000000000000000000000000000 --- a/.idea/pdbparser.iml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f4cb416c083d265558da75d457237d671..0000000000000000000000000000000000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index a0d7a11953874e148646e52af9143fc30e11c6ad..0000000000000000000000000000000000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = Vec::new(); //vector to return containing sub_patterns - - let sel: Vec<&str> = pattern.split("and").collect(); - - for pattern in sel { - let sub_pattern: Vec<&str> = pattern.split_whitespace().collect(); - - match sub_pattern[0].to_lowercase().as_str() { - "resid" => { - match parse_options_int(&sub_pattern[1..]) { - Some(x) => lst_selection.push(Select::Resid(x[0], x[1])), - None => return None, - } - } - "chain" => { - match parse_options_char(&sub_pattern[1..]) { - Some(x) => lst_selection.push(Select::Chain(x[0], x[1])), - None => return None, - } - } - "backbone" => lst_selection.push(Select::Backbone), - _ => { - println!("Error in the selection"); - return None - }, - } - } - Some(lst_selection) -} - - -pub fn atom_match(sel: &Vec