refactor pdbfromseq