Sequence
Read¶
PyPropel reads a protein sequence in FASTA format with the pp.seq.read
module.
Python
1 2 3 4 5 6 |
|
Output
ALLSFERKYRVPGGTLVGGNLFDFWVGPFYVGFFGVATFFFAALGIILIAWSAVLQGTWNPQLISVYPPALEYGLGGAPLAKGGLWQIITICATGAFVSWALREVEICRKLGIGYHIPFAFAFAILAYLTLVLFRPVMMGAWGYAFPYGIWTHLDWVSNTGYTYGNFHYNPAHMIAISFFFTNALALALHGALVLSAANPEKGKEMRTPDHEDTFFRDLVGYSIGTLGIHRLGLLLSLSAVFFSALCMIITGTIWFDQWVDWWQWWVKLPWWANIPGGING
Save¶
A protein sequence can be saved.
Python
1 2 3 4 5 6 7 8 |
|
Output
No.1 saving 1aigL-new in FASTA format.
Check empty¶
You can check if all sequences are empty.
Python
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Output
27/07/2024 22:14:29 logger: ============>No0. protein 1aig chain L
27/07/2024 22:14:29 logger: ============>No1. protein 1aij chain L
27/07/2024 22:14:29 logger: ============>No2. protein 1xqf chain A
Finished
Check match¶
You can check if all sequences in one format match those in another format. Below shows if sequences in FASTA format match those in XML format.
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Output
27/07/2024 22:17:32 logger: ============>No0. protein 1aig chain L
27/07/2024 22:17:32 logger: ============>They match.
27/07/2024 22:17:32 logger: ============>No1. protein 1aij chain L
27/07/2024 22:17:32 logger: ============>They match.
27/07/2024 22:17:32 logger: ============>No2. protein 1xqf chain A
27/07/2024 22:17:32 logger: ============>They do not match.
Finished