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

feat: seqvars effects filter #1833

Merged
merged 4 commits into from
Jul 24, 2024
Merged

feat: seqvars effects filter #1833

merged 4 commits into from
Jul 24, 2024

Conversation

Gregoor
Copy link
Contributor

@Gregoor Gregoor commented Jul 23, 2024

No description provided.

Copy link

github-actions bot commented Jul 23, 2024

deps-report 🔍

Commit scanned: 44fd935
ℹ️ Python version 3.10 is used by your project but the latest version is 3.12.

Vulnerable dependencies

4 dependencies have vulnerabilities 😱
Dependency Advisory Versions impacted
djangorestframework (transitive) Affected versions of the package djangorestframework are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter due to improper input sanitization before splitting and joining with <3.15.2
jinja2 (transitive) In Jinja2, the from_string function is prone to Server Side Template Injection (SSTI) where it takes the "source" parameter as a template object, renders it, and then returns it. The attacker can exploit it with {{INJECTION COMMANDS}} in a URI. NOTE: The maintainer and multiple third parties believe that this vulnerability isn't valid because users shouldn't use untrusted templates without sandboxing. >=0
pyopenssl (transitive) CVE-2023-6129 affects PyOpenSSL versions starting from 22.0.0 due to a vulnerability in the POLY1305 MAC algorithm on PowerPC CPUs. This issue could lead to state corruption in applications, causing inaccurate outcomes or service disruptions. Attackers need specific conditions to exploit this flaw, including the ability to manipulate the algorithm's use and reliance on certain system registers by the application. >=22.0.0
sqlalchemy Sqlalchemy 2.0.0b1 avoids leaking cleartext passwords to the open for careless uses of str(engine.URL()) in logs and prints. sqlalchemy/sqlalchemy#8563 <2.0.0b1

Outdated dependencies

42 outdated dependencies found (including 16 outdated major versions)😢
Dependency Installed version Latest version
argon2-cffi (transitive) 21.3.0 23.1.0
billiard (transitive) 3.6.4.0 4.2.0
crispy-bootstrap4 (transitive) 2022.1 2024.1
cryptography (transitive) 42.0.8 43.0.0
django 3.2.25 5.0.7
django-rest-knox (transitive) 4.2.0 5.0.1
django-sodar-core 0.13.4 1.0.0
mistune (transitive) 2.0.5 3.0.2
packaging (transitive) 23.2 24.1
protobuf 3.20.3 5.27.2
setuptools (transitive) 70.0.0 71.1.0
sphinx (transitive) 6.2.1 7.4.7
sphinx-rtd-theme (transitive) 1.2.2 2.0.0
sqlalchemy 1.4.52 2.0.31
unidecode (transitive) 0.4.21 1.3.8
xmlschema (transitive) 2.5.1 3.3.1
Dependency Installed version Latest version
botocore (transitive) 1.34.131 1.34.147
celery (transitive) 5.2.7 5.4.0
django-autocomplete-light (transitive) 3.9.4 3.11.0
django-crispy-forms (transitive) 2.0 2.3
django-db-file-storage (transitive) 0.5.5 0.5.6.1
django-debug-toolbar 4.3.0 4.4.6
django-environ (transitive) 0.10.0 0.11.2
django-iconify (transitive) 0.1.1 0.4
django-model-utils (transitive) 4.3.1 4.5.1
django-plugins-bihealth 0.4.0 0.5.2
django-postgres-copy 2.3.7 2.7.4
djangorestframework (transitive) 3.14.0 3.15.2
docutils (transitive) 0.18.1 0.21.2
drf-keyed-list-bihealth 0.1.1 0.2.1
markdown (transitive) 3.4.1 3.6
phenopackets 2.0.2.post1 2.0.2.post4
pure-eval (dev,transitive) 0.2.2 0.2.3
pyopenssl (transitive) 24.1.0 24.2.1
requests-http-signature 0.2.0 0.7.1
rules (transitive) 3.3 3.4
selenium (dev) 4.23.0 4.23.1
sentry-sdk 2.10.0 2.11.0
sphinxcontrib-htmlhelp (transitive) 2.0.5 2.0.6
sphinxcontrib-qthelp (transitive) 1.0.7 1.0.8
versioneer (transitive) 0.28 0.29
wheel (transitive) 0.40.0 0.43.0

Logs

Comment on lines 36 to 72
// feature_truncation: 'feature truncation',
// frameshift_elongation: 'frameshift elongation',
frameshift_variant: 'frameshift variant',
// inframe_deletion: 'inframe deletion',
// inframe_insertion: 'inframe insertion',
// internal_elongation: 'internal elongation',
missense_variant: 'missense',
// mnv: 'MNV',
start_lost: 'start lost',
stop_gained: 'stop gained',
stop_retained_variant: 'stop retained',
stop_lost: 'stop lost',
// tandem_duplication: 'tandem duplication',
},
'Off-Exome': {
downstream_gene_variant: 'downstream',
intron_variant: 'intronic (coding transcript)',
// intergenic: 'intergenic',
upstream_gene_variant: 'upstream',
// exon_loss: 'exon loss',
},
'Non-coding': {
'3_prime_UTR_variant-exon_variant': "3' UTR exonic",
'3_prime_UTR_variant-intron_variant': "3' UTR intronic",
'5_prime_UTR_variant-exon_variant': "5' UTR exonic",
'5_prime_UTR_variant-intron_variant': "5' UTR intronic",
non_coding_transcript_exon_variant: 'non-coding exonic',
non_coding_transcript_intron_variant: 'non-coding intronic',
},
Splicing: {
splice_acceptor_variant: 'splice acceptor',
splice_donor_variant: 'splice donor',
splice_region_variant: 'splice region',
},
Structural: {
// structural: 'structural ',
// transcript_ablation: 'transcript ablation',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@holtgrewe all the commented out entries are present in the design, but missing in the API.

Most of them seem to be present here:

class SeqvarsVariantConsequenceChoice(str, Enum):
"""The variant consequence."""
# high impact
# skipped chromosome_number_variation
# skipped exon_loss_variant
#: Frameshift variant
FRAMESHIFT_VARIANT = "frameshift_variant"
#: Rare amino acid variant
RARE_AMINO_ACID_VARIANT = "rare_amino_acid_variant"
#: Splice acceptor variant
SPLICE_ACCEPTOR_VARIANT = "splice_acceptor_variant"
#: Splice donor variant
SPLICE_DONOR_VARIANT = "splice_donor_variant"
#: Start lost
START_LOST = "start_lost"
#: Stop gained
STOP_GAINED = "stop_gained"
#: Stop lost
STOP_LOST = "stop_lost"
# skipped transcript_ablation
# moderate impact
# 3' UTR truncation
THREE_PRIME_UTR_TRUNCATION = "3_prime_UTR_truncation"
# 5' UTR truncation
FIVE_PRIME_UTR_TRUNCATION = "5_prime_UTR_truncation"
#: Conservative inframe deletion
CONSERVATIVE_INFRAME_DELETION = "conservative_inframe_deletion"
#: Conservative inframe insertion
CONSERVATIVE_INFRAME_INSERTION = "conservative_inframe_insertion"
#: Disruptive inframe deletion
DISRUPTIVE_INFRAME_DELETION = "disruptive_inframe_deletion"
#: Disruptive inframe insertion
DISRUPTIVE_INFRAME_INSERTION = "disruptive_inframe_insertion"
#: Missense variant
MISSENSE_VARIANT = "missense_variant"
#: skipped regulatory_region_ablation
#: Splice region variant
SPLICE_REGION_VARIANT = "splice_region_variant"
# skipped TFBS_ablation
# low impact
# skipped 5_prime_UTR_premature_start_codon_gain_variant
#: Initiator codon variant
INITIATOR_CODON_VARIANT = "initiator_codon_variant"
#: Start retained
START_RETAINED = "start_retained"
#: Stop retained variant
STOP_RETAINED_VARIANT = "stop_retained_variant"
#: Synonymous variant
SYNONYMOUS_VARIANT = "synonymous_variant"
# modifier
# skipped 3_prime_UTR_variant
# skipped 5_prime_UTR_variant
# skipped coding_sequence_variant
# skipped conserved_intergenic_variant
# skipped conserved_intron_variant
#: Downstream gene variant
DOWNSTREAM_GENE_VARIANT = "downstream_gene_variant"
# skipped exon_variant
# skipped feature_elongation
# skipped feature_truncation
# skipped gene_variant
# skipped intergenic_variant
#: Intron variant.
INTRON_VARIANT = "intron_variant"
# skipped mature_miRNA_variant
# skipped miRNA
# skipped NMD_transcript_variant
#: Non-coding transcript exon variant
NON_CODING_TRANSCRIPT_EXON_VARIANT = "non_coding_transcript_exon_variant"
#: Non-coding transcript intron variant
NON_CODING_TRANSCRIPT_INTRON_VARIANT = "non_coding_transcript_intron_variant"
#: 5' UTR variant
FIVE_PRIME_UTR_VARIANT = "5_prime_UTR_variant"
#: Coding sequence variant
CODING_SEQUENCE_VARIANT = "coding_sequence_variant"
# skipped regulatory_region_amplification
# skipped regulatory_region_variant
# skipped TF_binding_site_variant
# skipped TFBS_amplification
# skipped transcript_amplification
# skipped transcript_variant
#: Upstream gene variant
UPSTREAM_GENE_VARIANT = "upstream_gene_variant"
#: EXTRA, not directly written by Mehari: 3' UTR variant + exon variant
THREE_PRIME_UTR_VARIANT_EXON_VARIANT = "3_prime_UTR_variant-exon_variant"
#: EXTRA, not directly written by Mehari: 5' UTR variant + exon variant
FIVE_PRIME_UTR_VARIANT_EXON_VARIANT = "5_prime_UTR_variant-exon_variant"
#: EXTRA, not directly written by Mehari: 3' UTR variant + intron_variant
THREE_PRIME_UTR_VARIANT_INTRON_VARIANT = "3_prime_UTR_variant-intron_variant"
#: EXTRA, not directly written by Mehari: 5' UTR variant + intron_variant
FIVE_PRIME_UTR_VARIANT_INTRON_VARIANT = "5_prime_UTR_variant-intron_variant"

Should I leave them out for now, or uncomment them on the backend side (+migrations etc.)?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please leave as is, this is (sadly) still work in progress.

Copy link
Collaborator

Choose a reason for hiding this comment

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

(wip on the server side / backend) - will fix and adjust later, possibly after our common project

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91%. Comparing base (8d39e44) to head (44fd935).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1833   +/-   ##
=====================================
  Coverage     91%     91%           
=====================================
  Files        653     653           
  Lines      36624   36624           
=====================================
  Hits       33567   33567           
  Misses      3057    3057           

@Gregoor Gregoor changed the title feat: effects filter feat: seqvars effects filter Jul 24, 2024
@Gregoor Gregoor marked this pull request as ready for review July 24, 2024 12:18
@Gregoor Gregoor merged commit 38febb1 into main Jul 24, 2024
18 checks passed
@Gregoor Gregoor deleted the seqvars-effects branch July 24, 2024 13:23
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