Function lib3dmol::tools::fasta_seq [−][src]
pub fn fasta_seq(my_struct: &Structure) -> String
Expand description
Convert the all amino acid to a FASTA sequence (1 residue as 1 char) Consult the corresponding table to have the code 1 letter <-> 3 letters Wikipedia amino acid
Examples
use lib3dmol::{parser, tools};
let my_struct = parser::read_pdb("tests/tests_file/f2.pdb", "f2");
assert_eq!("TSPQPYSIERTIRWLTYQVANSLALVSEADKIMQTEYMKMIQNSGEITDRGEAILRLLKTNKHYEH", tools::fasta_seq(&my_struct));