Skip to content

Bioconda prep work - #8

Open
mihaitodor wants to merge 22 commits into
masterfrom
mihaitodor-bioconda
Open

mihaitodor wants to merge 22 commits into
masterfrom
mihaitodor-bioconda

Conversation

@mihaitodor

@mihaitodor mihaitodor commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

These changes will be released as part of v1.1.0.

@mihaitodor
mihaitodor requested a review from cypreeti October 22, 2026 15:17
from platformdirs import user_config_dir

_USER_CONFIG_DIR = Path(user_config_dir("pdbe_sifts"))
_USER_CONFIG_DIR = Path.home() / ".sifts"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a friendlier default for a CLI app. Otherwise, the config ends up in /Users/todor/Library/Application Support/pdbe_sifts/config.yaml on OSX...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sounds good.

)
if cat == "pdbx_sifts_unp_segments":
raise NoSegmentsError("No segments written. This shouldn't happen")
logger.warning(f"Category _{cat} not written out")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not sure why _pdbx_sifts_xref_db_segments is not written by _process_cif_file() and it's only ever present if the input cif already has it. Is this intentional?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

_pdbx_sifts_xref_db_segments only has mapping from other external databases like CATH,SCOP2, Pfam (Not UniProt). These come from other part of sifts which is not open-sourced yet as it has many other internal dependecies. That's why you don't see them yet.

@mihaitodor
mihaitodor force-pushed the mihaitodor-bioconda branch 5 times, most recently from 0a08405 to 9861fed Compare October 23, 2026 10:59
Comment thread docs/installation.md Outdated
|-------|-----------------------|-------------|
| `user.base_dir` | Current working directory | Working directory for all pipeline outputs |
| `user.nobackup_dir` | `<base_dir>/cache` | Large-file cache directory (UniProt, CCD files) |
| `user.target_db` | `<base_dir>/database.db` | Path to the reference database built by `build_db` |

@cypreeti cypreeti Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can this be '<base_dir>/database/' as the build_db makes lots of files with various extensions

Comment thread docs/quickstart.md Outdated
```

Edit the config to set your paths (`base_dir`, `nobackup_dir`, `target_db` after building it, etc.).
By default, `init` sets `base_dir` to the current working directory, `nobackup_dir` to `<base_dir>/cache` and `target_db` to `<base_dir>/database.db`. Override them with `--base-dir`, `--nobackup-dir` and `--target-db`, or edit the config afterwards.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

update target_db to <base_dir>/database/

Comment thread src/pdbe_sifts/cli.py
Comment on lines +589 to +590
tsv_path = Path(cfg.user.base_dir) / "uniprot_pdb.tsv.gz"
db_path = Path(cfg.user.base_dir) / "uniprot_pdb.duckdb"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

these should go in the cache directory

Comment thread README.md Outdated
## Installation

The [quickstart notebook](https://github.com/PDBeurope/SIFTS/blob/master/notebooks/quickstart.ipynb)
The [quickstart notebook](https://github.com/PDBeurope/SIFTS/blob/master/docs/quickstart.ipynb)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is there a reason notebooks is moved to doc. We have used notebook link at quite a number of places including the manuscript and this will break all so links. I would prefer not to change this.

Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
- Retain last 10 CSVs per entry
- Compare uncompressed files
- Raise `NoSegmentsError` when `_pdbx_sifts_unp_segments` is not
written. It can never happen given the current code in
`_process_cif_file`, but I'll leave it as is

Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
- Remove broken references
- Add the Jupyter plugin for mkdocs

Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
We now have `conda-lock.yml` for pinning deps

Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>
Signed-off-by: Mihai Todor <todor@ebi.ac.uk>

This branch has not been deployed

No deployments
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