Skip to content

Comments

Notebook of workflow#28

Open
Ale-pinto-alba wants to merge 5 commits intodevelopfrom
workflow
Open

Notebook of workflow#28
Ale-pinto-alba wants to merge 5 commits intodevelopfrom
workflow

Conversation

@Ale-pinto-alba
Copy link
Collaborator

No description provided.

Choose a reason for hiding this comment

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

Add these macOS specific files to .gitignore

Comment on lines +232 to +239
def _check_if_mutation_in_uorf(self) -> typing.Optional[str]:
variant_in_uorf = False
for uorf_region in self._canonical_uorf_coordinates_list:
if uorf_region.start <= self._variant_cdna_pos <= uorf_region.end:
variant_in_uorf = True
if variant_in_uorf == False:
return "Variant does not affect any canonical uORF"

Choose a reason for hiding this comment

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

Without understanding the details, I see no return statement in the case of variant_in_uorf = True

This means this method _check_if_mutation_in_uorf will return None, which has a truth value of False, unlike non empty string. This is correct, but maybe one could avoid the use of variant_in_uorf completely and do

         for uorf_region in self._canonical_uorf_coordinates_list:
            if uorf_region.start <= self._variant_cdna_pos <= uorf_region.end:
                return None
        return "Variant does not affect any canonical uORF"

Copy link

@leokim-l leokim-l left a comment

Choose a reason for hiding this comment

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

No idea if this is up to date, but I opened the repo looking for some methods to be used in promotizer and remembered I had promised a review.

Generally: looks good, nice! :)

I left some minor comments, we can discuss in January. Also, I did not look at the notebook, yet, I am only reviewing from the github webpage

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