Skip to content

Developed bio_tool#1

Open
AlinaPotyseva wants to merge 16 commits into
mainfrom
tools_branch
Open

Developed bio_tool#1
AlinaPotyseva wants to merge 16 commits into
mainfrom
tools_branch

Conversation

@AlinaPotyseva

Copy link
Copy Markdown
Owner

Here it is some useful tools for a junior bioinformatician

@nvaulin nvaulin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привет!

Очень хорошая работа, спасибо

  1. Классный README, спасибо
  2. Хорошие названия коммитов.
  3. Вижу изменения по прошлым ДЗ, это радует, хотя что-то осталось не исправленным:)
  4. По фильтратору. Все работает верно и кажется на 99% так как это и было у меня в голове. Обрати только внимание на всякие мелкие моментики.

Баллы

  • За модуль и качество кода 2.9/3
  • За работу над ДЗ 3 и 4 0.7/1
  • README 2/2
  • За главную функцию фильтрации 1/1
  • За 3 фильтратора 3/3

Итого: 9.6

Comment thread README.md
***
> *Using this repository you can take advantage of several programs for working with nucleic acids, proteins and fastq sequences.*
***
## Table of contents

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Красота!

Comment thread README.md
Comment on lines +31 to +40
```python
-/
|- bio_tools.py
|- README.md
|- modules/
|- dna_rna_tool.py
|- доп_модуль_2.py
|- fastaq_tool.py
|- ...
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хех, ну это наверное не особо нужно в ридми:)

Comment thread README.md

To work with the program a user only needs to import the main script and call any of the three functions from it.

### Installation

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥🔥🔥

Comment thread modules/dna_rna_tool.py
Comment on lines +1 to +5
TRANSCRIBE_DICT = dict(A='A', T='U', G='G', C='C',
a='a', t='u', g='g', c='c')
DNA_COMPLEMENT_DICT = dict(A='T', T='A', G='C', C='G',
a='t', t='a', g='c', c='g')
RNA_COMPLEMENT_DICT = dict(A='U', U='A', G='C', C='G',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Comment thread modules/dna_rna_tool.py
Comment on lines +16 to +19
if (dna_rna_alphabet.issuperset(nucleic_acid)):
return True
else:
return False

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (dna_rna_alphabet.issuperset(nucleic_acid)):
return True
else:
return False
return dna_rna_alphabet.issuperset(nucleic_acid):

Не надо проверять результат булевой операции чтобы вернуть булево значение, можно сразу возвращать булевый результат

Comment thread bio_tools.py
Comment on lines +1 to +3
import modules.fastaq_tool as fqt
import modules.dna_rna_tool as drt
import modules.protein_tool as prt

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хех, огонь!

Comment thread bio_tools.py
import modules.fastaq_tool as fqt
import modules.dna_rna_tool as drt
import modules.protein_tool as prt
from typing import List, Optional, Tuple, Union

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Еще есть такая история: в питоне принято сперва импортировать сторонние модули, а потом свои

Comment thread bio_tools.py
import modules.protein_tool as prt
from typing import List, Optional, Tuple, Union

def fastaq_tool_running(seqs: dict, gc_bounds: int or float or tuple = (0, 100),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Название не оч хорошее:)
и не глагол, и fastaq вместо fastq

А еще не уверен что с аннотацией типов так будет работать через or:)

Comment thread bio_tools.py
:return: returns a dictionary consisting of only those sequences that pass
all conditions
"""
result = {}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
result = {}
results = {}

Comment thread bio_tools.py
else:
pass
if len(results) == 1:
results_str = str(results[0])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем str, оно же уже str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants