Skip to content
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

feature: adding converters and test data for AA translation #87

Merged
merged 14 commits into from
Jan 30, 2025

Conversation

gordonkoehn
Copy link
Collaborator

This PR cherry picks some changes done in

#78

for nextclade to be used in the trial with BlastX.

Gordon J. Köhn and others added 10 commits January 30, 2025 13:36
* refactor: move lapis script to module

* refactor: move wrangleing to silo module

* refactor: move wrangleing to silo module

* add docs

* Update src/sr2silo/silo/wrangle.py

Co-authored-by: Copilot <[email protected]>

* typos - github copilote

Co-authored-by: Copilot <[email protected]>

* refactore: moving the URLs for lapis to env variables

* bug: auth should not be got is in CI

* silo

* silo

* OO in silo

* works

* WORKS

* CI issue

---------

Co-authored-by: Gordon J. Köhn <[email protected]>
Co-authored-by: Copilot <[email protected]>

Getting all Changes from the Nextclade Try on main for try with BlastX
@gordonkoehn gordonkoehn self-assigned this Jan 30, 2025
@gordonkoehn gordonkoehn marked this pull request as ready for review January 30, 2025 12:42
@Copilot Copilot bot review requested due to automatic review settings January 30, 2025 12:42
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 13 out of 16 changed files in this pull request and generated 5 comments.

Files not reviewed (3)
  • src/sr2silo/process/merge.py: Evaluated as low risk
  • src/sr2silo/process/init.py: Evaluated as low risk
  • README.md: Evaluated as low risk
Comments suppressed due to low confidence (7)

src/sr2silo/process/convert.py:120

  • The dictionary key 'RESULT_seqUENCE' is incorrectly named. It should be 'result_sequence'.
"RESULT_seqUENCE": result_sequence,

src/sr2silo/process/convert.py:71

  • The word 'Nuliotide' is misspelled. It should be 'Nucleotide'.
logging.warning("pair_normalize_reads: Nuliotide Insertions are not yet implemented, {output_insertions} will be empty.")

src/sr2silo/process/convert.py:72

  • The logging message is missing a format string for '{output_insertions}'.
logging.warning("pair_normalize_reads: Nuliotide Insertions are not yet implemented, {output_insertions} will be empty.")

src/sr2silo/process/convert.py:251

  • The 'missing_ok' parameter for 'unlink' is not available in Python versions below 3.8. This could cause compatibility issues.
Path(sorted_bam_path_str + ".bai").unlink(missing_ok=true)

tests/process/test_convert.py:17

  • [nitpick] The print statement is unnecessary and should be removed.
print(bam_data)

tests/process/test_convert.py:80

  • [nitpick] The variable 'save_to_another_dir' is defined but not used effectively. It should be removed.
save_to_another_dir = False

tests/conftest.py:49

  • The variable name 'EXPECTED_BAM_INSERTIONS_PATH_inserts' should be 'EXPECTED_BAM_INSERTIONS_PATH_INSERTS' to follow naming conventions.
EXPECTED_BAM_INSERTIONS_PATH_inserts = (

src/sr2silo/process/convert.py Outdated Show resolved Hide resolved
tests/data/bam/README.md Outdated Show resolved Hide resolved
tests/data/bam/README.md Outdated Show resolved Hide resolved
tests/conftest.py Show resolved Hide resolved
resources/sars-cov-2/README.md Outdated Show resolved Hide resolved
@gordonkoehn gordonkoehn changed the title feature: preparation work for translation feature: adding converters and test data for AA translation Jan 30, 2025
@gordonkoehn gordonkoehn merged commit 27bd16e into main Jan 30, 2025
2 checks passed
@gordonkoehn gordonkoehn deleted the feature/translation_prep branch January 30, 2025 12:56
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.

1 participant