protein-quest 0.5.0__py3-none-any.whl → 0.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of protein-quest might be problematic. Click here for more details.

@@ -1,2 +1,2 @@
1
- __version__ = "0.5.0"
1
+ __version__ = "0.5.1"
2
2
  """The version of the package."""
protein_quest/uniprot.py CHANGED
@@ -525,7 +525,9 @@ def _build_complex_sparql_query(uniprot_accs: Iterable[str], limit: int) -> str:
525
525
  ?protein
526
526
  ?cp_db
527
527
  ?cp_comment
528
- (GROUP_CONCAT(DISTINCT ?member; separator=",") AS ?complex_members)
528
+ (GROUP_CONCAT(
529
+ DISTINCT STRAFTER(STR(?member), "http://purl.uniprot.org/uniprot/"); separator=","
530
+ ) AS ?complex_members)
529
531
  (COUNT(DISTINCT ?member) AS ?member_count)
530
532
  WHERE {
531
533
  # Input UniProt accessions
@@ -550,7 +552,9 @@ def _build_complex_sparql_query(uniprot_accs: Iterable[str], limit: int) -> str:
550
552
  """
551
553
  select_clause = dedent("""\
552
554
  ?protein ?cp_db ?cp_comment
553
- (GROUP_CONCAT(DISTINCT ?member; separator=",") AS ?complex_members)
555
+ (GROUP_CONCAT(
556
+ DISTINCT STRAFTER(STR(?member), "http://purl.uniprot.org/uniprot/"); separator=","
557
+ ) AS ?complex_members)
554
558
  """)
555
559
  where_clause = dedent("""
556
560
  # --- Complex Info ---
@@ -596,7 +600,7 @@ def _flatten_results_complex(raw_results) -> list[ComplexPortalEntry]:
596
600
  complex_id = raw_result["cp_db"]["value"].split("/")[-1]
597
601
  complex_url = f"https://www.ebi.ac.uk/complexportal/complex/{complex_id}"
598
602
  complex_title = raw_result.get("cp_comment", {}).get("value", "")
599
- members = {m.split("/")[-1] for m in raw_result["complex_members"]["value"].split(",")}
603
+ members = set(raw_result["complex_members"]["value"].split(","))
600
604
  results.append(
601
605
  ComplexPortalEntry(
602
606
  query_protein=query_protein,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: protein_quest
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Search/retrieve/filter proteins and protein structures
5
5
  Project-URL: Homepage, https://github.com/haddocking/protein-quest
6
6
  Project-URL: Issues, https://github.com/haddocking/protein-quest/issues
@@ -1,5 +1,5 @@
1
1
  protein_quest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- protein_quest/__version__.py,sha256=AyGZhrskazcQPC8spzJ45d4XNxgla5DnO1bmKuzRj_Q,56
2
+ protein_quest/__version__.py,sha256=iRjDp09jO2JFmZdsWS3ikyYYQ8S33AzhMdrr00gEG9g,56
3
3
  protein_quest/cli.py,sha256=xiXt_2l3MxbTbmxm2sz0w8_OdJr8gz_B68GBVv5wHjE,44182
4
4
  protein_quest/converter.py,sha256=Y-Oxf7lDNbEicL6GS-IpNWDwaAiHgIgs5bFAcEHCKdQ,1441
5
5
  protein_quest/emdb.py,sha256=641c6RwNYnu-0GBFyCFBiI58fNc0jMkd0ZZ9MW9-Jmc,1501
@@ -10,7 +10,7 @@ protein_quest/parallel.py,sha256=ZJrLO1t2HXs4EeNctytvBTyROPBq-4-gLf35PiolHf0,346
10
10
  protein_quest/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  protein_quest/ss.py,sha256=qOr0aMycNAtZmXXvhCN-KZH3Qp4EejnBcE6fsFgCrmY,10343
12
12
  protein_quest/taxonomy.py,sha256=4mKv8zll4mX02Ow8CTvyqMJE2KJZvcq3QlTjjjLOJJk,5072
13
- protein_quest/uniprot.py,sha256=DIwQYzWZREZ7SGhkJT4Ozgl36pdz47FNfZ1QoEgEaXE,24239
13
+ protein_quest/uniprot.py,sha256=92G5YiJAJwUBKJQHPrM6DZlaLe-XG4qBg0zy0BDGFYY,24354
14
14
  protein_quest/utils.py,sha256=2lQ7jPHWtDySBTYnoL9VTKl5XUgQVYgp9Prb7qEnjtQ,17982
15
15
  protein_quest/alphafold/__init__.py,sha256=Ktasi5BRp71wO7-PpOGDpIRRtBEefs8knIdlKQeLQpk,51
16
16
  protein_quest/alphafold/confidence.py,sha256=pYIuwYdkuPuHLagcX1dSvSyZ_84xboRLfHUxkEoc4MY,6766
@@ -19,8 +19,8 @@ protein_quest/alphafold/fetch.py,sha256=wIsgPZmtnE5EoAL9G22Y6Ehx9d0md53Mw88-6LLG
19
19
  protein_quest/pdbe/__init__.py,sha256=eNNHtN60NAGea7gvRkIzkoTXsYPK99s-ldIcKWYO6So,61
20
20
  protein_quest/pdbe/fetch.py,sha256=e8CHWDX2QzWnVLmYXCfNrscw1UcN1lI9Uz6Z5HmEOEQ,2510
21
21
  protein_quest/pdbe/io.py,sha256=iGLvmsD-eEYnrgZDYfkGWIDCzwDRRD5dwqB480talCs,10037
22
- protein_quest-0.5.0.dist-info/METADATA,sha256=atoElM2xwPd9ubxXSQsFQYz2hjALJi-AegCRkrynEYc,9236
23
- protein_quest-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
- protein_quest-0.5.0.dist-info/entry_points.txt,sha256=f1RtOxv9TFBO3w01EMEuFXBTMsqKsQcKlkxmj9zE-0g,57
25
- protein_quest-0.5.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
26
- protein_quest-0.5.0.dist-info/RECORD,,
22
+ protein_quest-0.5.1.dist-info/METADATA,sha256=MPfZLLa8XC1tZ3okRYIT3Hs3pMvd8ShA17Yy2axKBe8,9236
23
+ protein_quest-0.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
+ protein_quest-0.5.1.dist-info/entry_points.txt,sha256=f1RtOxv9TFBO3w01EMEuFXBTMsqKsQcKlkxmj9zE-0g,57
25
+ protein_quest-0.5.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
26
+ protein_quest-0.5.1.dist-info/RECORD,,