-
Notifications
You must be signed in to change notification settings - Fork 38
Whats wrong with variant application and xml #956
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
base: master
Are you sure you want to change the base?
Changes from 6 commits
650f2fa
132b6ca
aed5b13
afb11e2
d3f8ab2
87d1bd1
4720899
71543b0
3f90baf
312a385
197a4f8
241d2a6
b2fb89f
b09b482
6ca8a19
7f94034
6da8776
941da42
84dc0a8
f7e3c7e
5c391e5
ffd6c5c
f83491b
fab8922
31d430b
dfbcb66
3d3f335
d94c9d7
3507d55
c193b50
2106390
18ddc71
d41b4b3
5533480
8557e13
bc074dc
96e5ca2
40927bc
b44837d
ccce660
fd8c528
34572ad
43d3b85
c685909
7dfa78c
6fea76c
b7c725f
4a6a4b7
0fa3981
d2e38eb
2902d61
8921cd0
5e8a6e4
f82ba62
b1219b6
3243e32
41b439d
a8c8207
cfb9dcc
15fe961
a4ca06d
0e1431c
3114199
7142dc0
7d60e22
3ece78d
3a24d34
171ac85
d623db1
ff07a18
7941caf
1ed8f2a
0e0ebd6
932a854
7a6a325
b12abbf
ab986ac
1b2bd69
33690ac
e9a4482
7f3c68c
fcdd4a2
4c6a4f4
79929b5
77a0cfe
56a1cee
4ae1030
6702ad7
7842e09
48575d6
7739a00
c1e8ee9
13b7ba9
2f7a061
2325fde
68dabc2
814c193
d4a2ebb
fc3b55a
ec85f4c
33d10e6
9076e5d
db5b313
bf9ae07
a1eb4a0
3261850
fc87bc9
75c0631
dd07eaf
b115053
b500d86
af61107
895766f
4f9d714
060a244
abc110d
4c96cbc
f2a8c82
4726017
c2c3f05
966a65a
9c52cee
2aa7a09
2c8c0ba
136225c
b06ed98
1020526
085116c
4319338
c4d52e8
8292548
0618dce
a2eb07c
663d07e
01b9de2
6029fda
d90c2de
ed48f63
4dfbd11
3d73744
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,11 @@ public static class VariantApplication | |||||||||
| public static List<TBioPolymerType> GetVariantBioPolymers<TBioPolymerType>(this TBioPolymerType protein, int maxAllowedVariantsForCombinatorics = 4, int minAlleleDepth = 1) | ||||||||||
| where TBioPolymerType : IHasSequenceVariants | ||||||||||
| { | ||||||||||
| if(maxAllowedVariantsForCombinatorics == 0) | ||||||||||
|
||||||||||
| if(maxAllowedVariantsForCombinatorics == 0) | |
| if (maxAllowedVariantsForCombinatorics == 0) |
Outdated
Copilot
AI
Sep 18, 2025
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.
Missing space after 'if' keyword violates C# formatting conventions.
| if(!ValidCombination(combo.ToList())) | |
| if (!ValidCombination(combo.ToList())) |
Outdated
Copilot
AI
Sep 18, 2025
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.
Calling ToList() on each combination creates unnecessary allocations. Consider changing ValidCombination to accept IEnumerable instead of List.
| if(!ValidCombination(combo.ToList())) | |
| if(!ValidCombination(combo)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,7 +103,7 @@ public Modification(string _originalId = null, string _accession = null, string | |
| this.MonoisotopicMass = this.ChemicalFormula.MonoisotopicMass; | ||
| } | ||
| } | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this |
||
| public static string ModLocationOnPeptideOrProtein(string _locationRestriction) | ||
| { | ||
| switch (_locationRestriction) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,146 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no" ?> | ||
| <uniprot xmlns="http://uniprot.org/uniprot" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://uniprot.org/uniprot http://www.uniprot.org/docs/uniprot.xsd"> | ||
| <entry dataset="Swiss-Prot" created="2007-12-04" modified="2024-10-02" version="154" xmlns="http://uniprot.org/uniprot"> | ||
| <accession>Q9H3J6</accession> | ||
| <accession>Q8WUC6</accession> | ||
| <name>MTRFR_HUMAN</name> | ||
| <protein> | ||
| <recommendedName> | ||
| <fullName evidence="17">Mitochondrial translation release factor in rescue</fullName> | ||
| </recommendedName> | ||
| </protein> | ||
| <gene> | ||
| <name evidence="18" type="primary">MTRFR</name> | ||
| <name type="ORF">C12orf65</name> | ||
| <name type="ORF">My030</name> | ||
| </gene> | ||
| <organism> | ||
| <name type="scientific">Homo sapiens</name> | ||
| <name type="common">Human</name> | ||
| <dbReference type="NCBI Taxonomy" id="9606"/> | ||
| <lineage> | ||
| <taxon>Eukaryota</taxon> | ||
| <taxon>Metazoa</taxon> | ||
| <taxon>Chordata</taxon> | ||
| <taxon>Craniata</taxon> | ||
| <taxon>Vertebrata</taxon> | ||
| <taxon>Euteleostomi</taxon> | ||
| <taxon>Mammalia</taxon> | ||
| <taxon>Eutheria</taxon> | ||
| <taxon>Euarchontoglires</taxon> | ||
| <taxon>Primates</taxon> | ||
| <taxon>Haplorrhini</taxon> | ||
| <taxon>Catarrhini</taxon> | ||
| <taxon>Hominidae</taxon> | ||
| <taxon>Homo</taxon> | ||
| </lineage> | ||
| </organism> | ||
| <proteinExistence type="evidence at protein level"/> | ||
| <keyword id="KW-0002">3D-structure</keyword> | ||
| <keyword id="KW-0025">Alternative splicing</keyword> | ||
| <keyword id="KW-0175">Coiled coil</keyword> | ||
| <keyword id="KW-0225">Disease variant</keyword> | ||
| <keyword id="KW-0890">Hereditary spastic paraplegia</keyword> | ||
| <keyword id="KW-0488">Methylation</keyword> | ||
| <keyword id="KW-0496">Mitochondrion</keyword> | ||
| <keyword id="KW-0523">Neurodegeneration</keyword> | ||
| <keyword id="KW-1274">Primary mitochondrial disease</keyword> | ||
| <keyword id="KW-0648">Protein biosynthesis</keyword> | ||
| <keyword id="KW-1267">Proteomics identification</keyword> | ||
| <keyword id="KW-1185">Reference proteome</keyword> | ||
| <keyword id="KW-0694">RNA-binding</keyword> | ||
| <keyword id="KW-0809">Transit peptide</keyword> | ||
| <feature type="transit peptide" description="Mitochondrion" evidence="2"> | ||
| <location> | ||
| <begin position="1"/> | ||
| <end position="35"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="chain" id="PRO_0000311835" description="Mitochondrial translation release factor in rescue"> | ||
| <location> | ||
| <begin position="36"/> | ||
| <end position="166"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="region of interest" description="GGQ domain" evidence="1"> | ||
| <location> | ||
| <begin position="57"/> | ||
| <end position="121"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="region of interest" description="Disordered" evidence="3"> | ||
| <location> | ||
| <begin position="122"/> | ||
| <end position="148"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="coiled-coil region" evidence="2"> | ||
| <location> | ||
| <begin position="127"/> | ||
| <end position="160"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="short sequence motif" description="GGQ" evidence="9"> | ||
| <location> | ||
| <begin position="71"/> | ||
| <end position="73"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="modified residue" description="N5-methylglutamine" evidence="15"> | ||
| <location> | ||
| <position position="73"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="splice variant" id="VSP_029602" description="In isoform 2." evidence="16"> | ||
| <original>CHQTRSVDQNRKLARKILQEKVDVF</original> | ||
| <variation>VDHRRPLRGEAPPKGSTASRDFSQV</variation> | ||
| <location> | ||
| <begin position="95"/> | ||
| <end position="119"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="splice variant" id="VSP_029603" description="In isoform 2." evidence="16"> | ||
| <location> | ||
| <begin position="120"/> | ||
| <end position="166"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence variant" id="VAR_084490" description="In COXPD7; decreased cytochrome c oxidase activity in fibroblasts; severe assembly defects in mitochondrial complexes I, IV and V with a milder defect in the assembly of complex III; no effect on mitochondrial transcripts, rRNAs and tRNAs levels." evidence="5"> | ||
| <original>VLKHIPSGIVVKCHQTRSVDQNRKLARKILQEKVDVFYNGENSPVHKEKREAAKKKQERKKRAKETLEKKKLLKELWESSKKVH</original> | ||
| <variation>G</variation> | ||
| <location> | ||
| <begin position="83"/> | ||
| <end position="166"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence variant" id="VAR_084491" description="In SPG55 and COXPD7; decreased activity of mitochondrial respiratory chain; no effect on mitochondrial morphology." evidence="9 10"> | ||
| <location> | ||
| <begin position="116"/> | ||
| <end position="166"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence variant" id="VAR_084492" description="In SPG55." evidence="7"> | ||
| <location> | ||
| <begin position="132"/> | ||
| <end position="166"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence variant" id="VAR_037325" description="In dbSNP:rs1045496."> | ||
| <original>A</original> | ||
| <variation>T</variation> | ||
| <location> | ||
| <position position="134"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence variant" id="VAR_084493" description="In SPG55." evidence="8"> | ||
| <location> | ||
| <begin position="139"/> | ||
| <end position="166"/> | ||
| </location> | ||
| </feature> | ||
| <sequence length="166" mass="18828" checksum="CB9B74E0CC7E920C" modified="2001-03-01" version="1" precursor="true">MSTVGLFHFPTPLTRICPAPWGLRLWEKLTLLSPGIAVTPVQMAGKKDYPALLSLDENELEEQFVKGHGPGGQATNKTSNCVVLKHIPSGIVVKCHQTRSVDQNRKLARKILQEKVDVFYNGENSPVHKEKREAAKKKQERKKRAKETLEKKKLLKELWESSKKVH</sequence> | ||
| </entry> | ||
| <copyright> | ||
| Copyrighted by the UniProt Consortium, see https://www.uniprot.org/terms Distributed under the Creative Commons Attribution (CC BY 4.0) License | ||
| </copyright> | ||
| </uniprot> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,130 @@ | ||
| <?xml version="1.0" encoding="utf-8" standalone="no" ?> | ||
| <uniprot xmlns="http://uniprot.org/uniprot" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://uniprot.org/uniprot http://www.uniprot.org/docs/uniprot.xsd"> | ||
| <entry dataset="Swiss-Prot" created="2008-01-15" modified="2025-06-18" version="148"> | ||
| <accession>Q96J88</accession> | ||
| <accession>Q8IVC7</accession> | ||
| <accession>Q8NDQ7</accession> | ||
| <name>ESIP1_HUMAN</name> | ||
| <protein> | ||
| <recommendedName> | ||
| <fullName>Epithelial-stromal interaction protein 1</fullName> | ||
| </recommendedName> | ||
| </protein> | ||
| <gene> | ||
| <name type="primary">EPSTI1</name> | ||
| </gene> | ||
| <organism> | ||
| <name type="scientific">Homo sapiens</name> | ||
| <name type="common">Human</name> | ||
| <dbReference type="NCBI Taxonomy" id="9606"/> | ||
| <lineage> | ||
| </lineage> | ||
| </organism> | ||
| <proteinExistence type="evidence at protein level"/> | ||
| <keyword id="KW-0025">Alternative splicing</keyword> | ||
| <keyword id="KW-0175">Coiled coil</keyword> | ||
| <keyword id="KW-1267">Proteomics identification</keyword> | ||
| <keyword id="KW-1185">Reference proteome</keyword> | ||
| <feature type="chain" id="PRO_0000314034" description="Epithelial-stromal interaction protein 1"> | ||
| <location> | ||
| <begin position="1"/> | ||
| <end position="318"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="region of interest" description="Disordered" evidence="3"> | ||
| <location> | ||
| <begin position="1"/> | ||
| <end position="60"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="coiled-coil region" evidence="2"> | ||
| <location> | ||
| <begin position="73"/> | ||
| <end position="188"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="coiled-coil region" evidence="2"> | ||
| <location> | ||
| <begin position="240"/> | ||
| <end position="280"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="splice variant" id="VSP_030201" description="In isoform 2." evidence="6 7"> | ||
| <location> | ||
| <begin position="219"/> | ||
| <end position="229"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="splice variant" id="VSP_030202" description="In isoform 3." evidence="8"> | ||
| <original>I</original> | ||
| <variation> | ||
| SLLVFSRHLRVYEKILTPIWPSSTDLEKPHEMLFLNVILFSLTVFTLISTAHTLDRAVRSDWLLLVLIYACLEELIPELIFNLYCQGNATLFF | ||
| </variation> | ||
| <location> | ||
| <position position="318"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence conflict" description="In Ref. 3; CAD38599." evidence="9" ref="3"> | ||
| <location> | ||
| <position position="83"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence variant" id="VAR_082880" description="In dbSNP:rs11557739." evidence="9"> | ||
| <original>P</original> | ||
| <variation>S</variation> | ||
| <location sequence="Q96J88-3"> | ||
| <position position="338"/> | ||
| </location> | ||
| </feature> | ||
| <feature type="sequence variant" id="VAR_082881" description="In dbSNP:rs1044856." evidence="9"> | ||
| <original>N</original> | ||
| <variation>K</variation> | ||
| <location sequence="Q96J88-3"> | ||
| <position position="399"/> | ||
| </location> | ||
| </feature> | ||
| <evidence type="ECO:0000250" key="1"> | ||
| <source> | ||
| <dbReference type="UniProtKB" id="Q8VDI1"/> | ||
| </source> | ||
| </evidence> | ||
| <evidence type="ECO:0000255" key="2"/> | ||
| <evidence type="ECO:0000256" key="3"> | ||
| <source> | ||
| <dbReference type="SAM" id="MobiDB-lite"/> | ||
| </source> | ||
| </evidence> | ||
| <evidence type="ECO:0000269" key="4"> | ||
| <source> | ||
| <dbReference type="PubMed" id="11991720"/> | ||
| </source> | ||
| </evidence> | ||
| <evidence type="ECO:0000269" key="5"> | ||
| <source> | ||
| <dbReference type="PubMed" id="16769699"/> | ||
| </source> | ||
| </evidence> | ||
| <evidence type="ECO:0000303" key="6"> | ||
| <source> | ||
| <dbReference type="PubMed" id="11991720"/> | ||
| </source> | ||
| </evidence> | ||
| <evidence type="ECO:0000303" key="7"> | ||
| <source> | ||
| <dbReference type="PubMed" id="14702039"/> | ||
| </source> | ||
| </evidence> | ||
| <evidence type="ECO:0000303" key="8"> | ||
| <source> | ||
| <dbReference type="PubMed" id="15489334"/> | ||
| </source> | ||
| </evidence> | ||
| <evidence type="ECO:0000305" key="9"/> | ||
| <sequence length="318" mass="36793" checksum="28C04AE12042A01A" modified="2008-01-15" version="2"> | ||
| MNTRNRVVNSGLGASPASRPTRDPQDPSGRQGELSPVEDQREGLEAAPKGPSRESVVHAGQRRTSAYTLIAPNINRRNEIQRIAEQELANLEKWKEQNRAKPVHLVPRRLGGSQSETEVRQKQQLQLMQSKYKQKLKREESVRIKKEAEEAELQKMKAIQREKSNKLEEKKRLQENLRREAFREHQQYKTAEFLSKLNTESPDRSACQSAVCGPQSSTWKLPILPRDHSWARSWAYRDSLKAEENRKLQKMKDEQHQKSELLELKRQQQEQERAKIHQTEHRRVNNAFLDRLQGKSQPGGLEQSGGCWNMNSGNSWGI | ||
| </sequence> | ||
| </entry> | ||
| <copyright> | ||
| Copyrighted by the UniProt Consortium, see https://www.uniprot.org/terms Distributed under the Creative Commons Attribution (CC BY 4.0) License | ||
| </copyright> | ||
| </uniprot> |
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.
The fact that every single function is entirely rewritten is very concerning. Was all of this necessary to create the desired changes?