-
Notifications
You must be signed in to change notification settings - Fork 45
HW4_Trofimov #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
michtrofimov
wants to merge
31
commits into
Python-BI-2023:main
Choose a base branch
from
michtrofimov:HW4_Trofimov
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
HW4_Trofimov #9
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
921d35b
Create folder for work
michtrofimov 49a006a
Delete HW4_Trofimov/folder_file
michtrofimov b8a58af
Create working folder
michtrofimov 53527e6
Rename main script
michtrofimov 2e0b826
Add function for isoelectric point calculation
michtrofimov 27a72c7
Add auxiliary function build_scoring_matrix for the needleman-wunsch …
michtrofimov 399b7f2
Add needleman-wunsch function
michtrofimov 40af002
Create README.md
michtrofimov 8612f17
Add function calculating aminoacids fruquencies
Alisa411 fa90ace
Merge pull request #1 from Alisa411/HW4_Trofimov
michtrofimov 264e6cf
Add file with dictionaries
SuleimanovShakir 428a231
Add modules import and is_protein function
SuleimanovShakir 7954e4a
Add comments to previously written functions
SuleimanovShakir 93feb9f
Add function to convert one-letter aminoacid sequence to three-letter
SuleimanovShakir 8d1dbb8
Add function to calculate protein mass
SuleimanovShakir c245259
Add function to translate protein sequence to RNA
SuleimanovShakir 05e1aed
Merge pull request #2 from SuleimanovShakir/HW4_Trofimov
michtrofimov e6b19dd
Add description for my functions
SuleimanovShakir 06b3c4f
Merge pull request #3 from SuleimanovShakir/HW4_Trofimov
michtrofimov 8b5985f
add main function
Alisa411 1e2378e
Merge pull request #4 from michtrofimov/add_main
michtrofimov 15f5db5
Add description and usage example of calculate_aa_freq function
Alisa411 8d082ae
Merge branch 'HW4_Trofimov' of github.com:michtrofimov/HW4_Functions2…
Alisa411 b45a72d
Redo function for isoelectric point calc
michtrofimov 1a4a8e5
Add build_scoring_matrix in main func
michtrofimov fcef1e4
Fix bugs calculate_aa_freq
michtrofimov f045f23
Update README.md
michtrofimov 1b18fb7
Update README.md
michtrofimov 8edf4b5
Update README.md
michtrofimov e52a38e
Add docstring to main function
michtrofimov 0b721ee
Fix bugs in README.md
Alisa411 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<img width="641" alt="Screenshot 2023-09-27 at 17 01 47" src="https://github.com/michtrofimov/HW4_Functions2/assets/92677906/d5c63a17-7f6d-43c7-b88e-a2e994877abb"> | ||
|
||
# Das biotools.aminoacids | ||
> **The great and terrifying successor of biopython** | ||
|
||
Das biotools strikes again! Now it works only with aminoacid sequences! | ||
|
||
## Features | ||
|
||
- **get_pI()**: Gives isoelectric point value for each aminoacid individually. | ||
|
||
- **build_scoring_matri()**: Auxiliary function for needleman_wunsch. Build a scoring matrix for amino acid pairs, which can be used in sequence alignment algorithms. | ||
|
||
- **needleman_wunsch()**: Implement the Needleman-Wunsch algorithm for global sequence alignment of two amino acid sequences. | ||
|
||
- **convert_to_3L_code()**: Converts one letter animoacid sequence to three letter aminoacid sequence. | ||
|
||
- **protein_mass()**: Calculates molecular weight of the aminoacid sequence using monoisotopic masses. | ||
|
||
- **translate_protein_rna()**: Converts aminoacid sequence to RNA sequence. For those aminoacids that are coded with more than one codon, this function randomly chooses one codon from the set. | ||
|
||
- **calculate_aa_freq()**: Calculate the frequences of aminoacids in protein sequences. | ||
|
||
## Examples | ||
|
||
- **get_pI** | ||
|
||
```python | ||
calculate_pI('RAHP') -> "Sequence: RAHP. Isoelectric point of each aminoacid: [('R', 10.8), ('A', 6.0), ('H', 7.6), ('P', 6.3)]" | ||
``` | ||
|
||
- **needleman_wunsch** | ||
|
||
```python | ||
needleman_wunsch('raHP','RAQQHP') -> 'ra--HP, RAQQHP, final score: 2' | ||
``` | ||
|
||
- **convert_to_3L_code** | ||
|
||
```python | ||
convert_to_3L_code('ACDEF') -> 'Ala-Cys-Asp-Glu-Phe' | ||
``` | ||
|
||
- **protein_mass** | ||
|
||
```python | ||
protein_mass('ACDEF') -> 565.184 | ||
``` | ||
|
||
- **translate_protein_rna** | ||
|
||
```python | ||
translate_protein_rna('ACDEF') -> 'GCCUGCGACGAGUUC' | ||
``` | ||
|
||
- **calculate_aa_freq** | ||
|
||
```python | ||
calculate_aa_freq('ACDEF') -> {'A': 1, 'C': 1, 'D': 1, 'E': 1, 'F': 1} | ||
``` | ||
|
||
## OUR TEAM | ||
<img width="800" alt="Screenshot 2023-09-30 at 16 34 25" src="https://github.com/michtrofimov/HW4_Functions2/assets/92677906/38fcc288-2d27-445d-b1dc-a3b055099a26"> | ||
|
||
Up to bottom, left to right: | ||
- Alisa Fedorenko: functions **main**, **calculate_aa_freq** | ||
- Michil Trofimov: functions **get_pI**, **needleman_wunsch** (teamlead) | ||
- Shakir Suleimanov: functions **convert_to_3L_code**, **protein_mass**, **translate_protein_rna** | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Как-то не сходятся названия функций