Skip to content

Commit

Permalink
Adding bcifreader
Browse files Browse the repository at this point in the history
  • Loading branch information
dprada committed Dec 16, 2024
1 parent 902c65a commit b9204c5
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
3 changes: 1 addition & 2 deletions devtools/conda-build/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ requirements:
- biopython
- ipywidgets
- tqdm
- pip:
- mmcif
- bcifreader
about:
home: https://uibcdf.org
license: MIT License
Expand Down
3 changes: 1 addition & 2 deletions devtools/conda-envs/development_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ dependencies:
- biopython
- ipywidgets
- tqdm
- pip:
- mmcif
- bcifreader
- pytest
- pytest-cov
- codecov
Expand Down
3 changes: 1 addition & 2 deletions devtools/conda-envs/docs_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ dependencies:
- biopython
- ipywidgets
- tqdm
- pip:
- mmcif
- bcifreader
- jupyterlab
- sphinx
- pydata-sphinx-theme
Expand Down
3 changes: 1 addition & 2 deletions devtools/conda-envs/production_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ dependencies:
- biopython
- ipywidgets
- tqdm
- pip:
- mmcif
- bcifreader
3 changes: 1 addition & 2 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ dependencies:
- biopython
- ipywidgets
- tqdm
- pip:
- mmcif
- bcifreader
- pytest
- pytest-cov
- codecov
Expand Down
3 changes: 1 addition & 2 deletions devtools/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ production:
- biopython
- ipywidgets
- tqdm
- pip:
- mmcif
- bcifreader

test:
channels: &test_channels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
@digest(form='file:cif')
def to_mmcif_PdbxContainers_DataContainer(item, atom_indices='all', skip_digestion=False):

from mmcif.io.BinaryCifReader import BinaryCifReader
#from mmcif.io.BinaryCifReader import BinaryCifReader
from bcifreader import BinaryCifReader

binary_cif_reader = BinaryCifReader()
containers = binary_cif_reader.deserialize(item)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
@digest(form='file:cif.gz')
def to_mmcif_PdbxContainers_DataContainer(item, atom_indices='all', skip_digestion=False):

from mmcif.io.BinaryCifReader import BinaryCifReader
#from mmcif.io.BinaryCifReader import BinaryCifReader
from bcifreader import BinaryCifReader

binary_cif_reader = BinaryCifReader()
containers = binary_cif_reader.deserialize(item)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
@digest(form='string:pdb_id')
def to_mmcif_PdbxContainers_DataContainer(item, atom_indices='all', structure_indices='all', skip_digestion=False):

from mmcif.io.BinaryCifReader import BinaryCifReader
#from mmcif.io.BinaryCifReader import BinaryCifReader
from bcifreader import BinaryCifReader


tmp_item = item.split(':')[-1]
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dependencies = [
"biopython",
"tqdm",
"ipywidgets",
"bcifreader"
]

# Update the urls once the hosting is set up.
Expand Down

0 comments on commit b9204c5

Please sign in to comment.