Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
haeussma committed May 25, 2024
2 parents da550b6 + c7645e8 commit 3ee56e9
Show file tree
Hide file tree
Showing 25 changed files with 22 additions and 1,007 deletions.
6 changes: 0 additions & 6 deletions .github/scripts/env.toml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/scripts/example.py

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/integration.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on: pull_request

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]

steps:
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/alignment.ipynb

Large diffs are not rendered by default.

54 changes: 0 additions & 54 deletions docs/examples/basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,60 +14,6 @@
"The `ProteinRecord` object contains the sequence as a string and additional information such as information on the `Organism`, `Region` or `Site` annotations of the sequence.\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[4mProteinRecord\u001b[0m\n",
"├── \u001b[94mid\u001b[0m = E300_wefef\n",
"├── \u001b[94mname\u001b[0m = my sequence\n",
"├── \u001b[94morganism\u001b[0m\n",
"│ └── \u001b[4mOrganism\u001b[0m\n",
"│ ├── \u001b[94mid\u001b[0m = f1e41f5c-3e17-477f-a453-837f4fd09ca7\n",
"│ ├── \u001b[94mtaxonomy_id\u001b[0m = 9094\n",
"│ └── \u001b[94mname\u001b[0m = E. coli\n",
"├── \u001b[94msequence\u001b[0m = SDFSGWRSB\n",
"└── \u001b[94msites\u001b[0m\n",
" └── 0\n",
" └── \u001b[4mSite\u001b[0m\n",
" ├── \u001b[94mid\u001b[0m = 277fed27-a7b4-451a-a822-cbfe3e88c1a2\n",
" ├── \u001b[94mname\u001b[0m = active site\n",
" └── \u001b[94mpositions\u001b[0m = [1, 2, 3, ...]\n",
"\n"
]
}
],
"source": [
"from pyeed.core import ProteinRecord\n",
"from pyeed.core import Organism\n",
"\n",
"my_organism = Organism(name=\"E. coli\", taxonomy_id=9094)\n",
"\n",
"E300 = ProteinRecord(id=\"E300_wefef\", sequence=\"SDFSGWRSB\", organism=my_organism, name=\"my sequence\")\n",
"\n",
"E300.add_to_sites(\n",
" positions=[1,2,3],\n",
" name=\"active site\"\n",
")\n",
"\n",
"E300.\n",
"\n",
"print(E300)\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
142 changes: 0 additions & 142 deletions examples/alignment.ipynb

This file was deleted.

327 changes: 0 additions & 327 deletions examples/basics.ipynb

This file was deleted.

4 changes: 2 additions & 2 deletions pyeed/align/msa.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def _map_alignment(self, alignment: MultipleSeqAlignment) -> AlignmentResult:
"""

result = AlignmentResult()
[result.add_to_sequences(seq.id, seq.sequence) for seq in self.sequences]
[result.add_to_aligned_sequences(seq.id, str(seq.seq)) for seq in alignment]
[result.add_to_sequences(id=seq.id, sequence=seq.sequence, sequence_id=seq.id) for seq in self.sequences]
[result.add_to_aligned_sequences(id=seq.id, sequence=str(seq.seq), sequence_id=seq.id) for seq in alignment]

return result

Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/abstractannotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AbstractAnnotation(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/alignmentresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class AlignmentResult(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/blastdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class BlastData(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/clustalomegaresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ClustalOmegaResult(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/dnarecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DNARecord(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/organism.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Organism(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/pairwisealignmentresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PairwiseAlignmentResult(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/proteinrecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ProteinRecord(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Region(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/regionset.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RegionSet(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_object_terms: Set[str] = PrivateAttr(
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Sequence(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/sequencerecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class SequenceRecord(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Site(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyeed/core/standardnumbering.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class StandardNumbering(

_repo: Optional[str] = PrivateAttr(default="https://github.com/PyEED/pyeed")
_commit: Optional[str] = PrivateAttr(
default="b67f8aac7619d462d1e346822b9153a10996d11c"
default="ff1fb2064e9efbdf71ccde1d8f08b9af434150bb"
)

_raw_xml_data: Dict = PrivateAttr(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyeed"
version = "0.3.2"
version = "0.3.3"
description = "Toolkit to create, annotate, and analyze sequence data"
authors = ["haeussma <[email protected]>"]
license = "MIT"
Expand Down
Loading

0 comments on commit 3ee56e9

Please sign in to comment.