Repository navigation
Bioconda prep work - #8
mihaitodor wants to merge 22 commits into
Conversation
| from platformdirs import user_config_dir | ||
|
|
||
| _USER_CONFIG_DIR = Path(user_config_dir("pdbe_sifts")) | ||
| _USER_CONFIG_DIR = Path.home() / ".sifts" |
There was a problem hiding this comment.
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...
6bd095a to
1cd54f6
Compare
| ) | ||
| if cat == "pdbx_sifts_unp_segments": | ||
| raise NoSegmentsError("No segments written. This shouldn't happen") | ||
| logger.warning(f"Category _{cat} not written out") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
_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.
0a08405 to
9861fed
Compare
| |-------|-----------------------|-------------| | ||
| | `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` | |
There was a problem hiding this comment.
can this be '<base_dir>/database/' as the build_db makes lots of files with various extensions
| ``` | ||
|
|
||
| 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. |
There was a problem hiding this comment.
update target_db to <base_dir>/database/
| tsv_path = Path(cfg.user.base_dir) / "uniprot_pdb.tsv.gz" | ||
| db_path = Path(cfg.user.base_dir) / "uniprot_pdb.duckdb" |
There was a problem hiding this comment.
these should go in the cache directory
| ## 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) |
There was a problem hiding this comment.
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>
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>
d788f89 to
637e8d1
Compare
These changes will be released as part of v1.1.0.