Tools for managing and resolution of buisciii services.
Project description
buisciii-tools
BU-ISCIII provides a serie or services in its portfolio for supporting bioinformatics analysis to the labs in the Institute of Health Carlos III. bu-isciii tools is a set of helper tools for management of these bioinformatics analysis together with the LIMS (iSkyLIMS)
Installation
Micromamba and pip
micromamba create -n buisciii -f environment.yml
micromamba activate buisciii
pip install buisciii-tools
or
git checkout main
conda create -n buisciii -f environment.yml
conda activate
pip install buisciii-tools
Dev version
If you want to install the latest code in the repository:
micromamba create -n buisciii_dev -f environment.yml
micromamba activate buisciii_dev
pip install --force-reinstall --upgrade git+https://github.com/bu-isciii/buisciii-tools.git@develop
or locally:
git checkout develop
micromamba create -n buisciii_dev -f environment.yml
micromamba activate buisciii_dev
pip install .
Usage
Command-line
Run bu-isciii tools:
buisciii --help
Outputs the following:
Usage: buisciii [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-v, --verbose Print verbose output to the console.
-l, --log-file <filename> Save a verbose log to a file.
-u, --api_user TEXT User for the API logging
-p, --api_password TEXT Password for the API logging
-c, --cred_file TEXT Config file with API logging credentials
-D, --debug Show the full traceback on error for debugging purposes.
-d, --dev Develop settings
--help Show this message and exit.
Commands:
list List available bu-isciii services.
clean Service cleaning.
new-service Create new service, it will create folder and copy...
scratch Copy service folder to scratch directory for execution.
copy-sftp Copy resolution FOLDER to sftp, change status of...
finish Service cleaning, remove big files, rename folders before...
bioinfo-doc Create the folder documentation structure in bioinfo_doc...
archive Archive services or retrieve services from archive
autoclean-sftp Clean old sftp services
fix-permissions Fix permissions
list
List available bu-isciii services:
bu-isciii list
Help:
Usage: buisciii list [OPTIONS] <service>
List available bu-isciii services.
Options:
--help Show this message and exit.
Output:
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Service name ┃ Description ┃ Github ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ IRMA │ Influenza fragment reconstruction and variant detection │ https://github.com/CDCgov/irma │
│ assembly_annotation │ nf-core/bacass: Simple bacterial assembly and annotation pipeline │ https://github.com/nf-core/bacass/tree/2.4.0 │
│ blast_nt │ Alignment of de novo assembly contigs to database │ - │
│ characterization │ Multi-Locus Sequence Typing (MLST), analysis of virulence factors, antimicrobial resistance and plasmid characterization │ - │
│ exomeeb │ Eukaria: Variant calling and annotation for a sequencing panel (e.g. epidermolysis gene panel, mouse or rat gene panel) │ - │
│ exometrio │ Human: Exome sequencing for variant calling, annotation and inheritance filtering │ - │
│ freebayes_outbreak │ Variant calling, annotation and SNP-based outbreak analysis (e.g. diploid fungal outbreak) │ - │
│ lowfreq_panel │ Low frequency variant calling from enrichment panel │ - │
│ pikavirus │ PikaVirus, a mapping-based tool for metagenome analysis of virus │ https://github.com/BU-ISCIII/PikaVirus │
│ plasmidid_assembly │ Plasmid identification tool based on mapping and assisted by assembly │ https://github.com/BU-ISCIII/plasmidID │
│ rnaseq │ RNA-Seq analysis │ https://github.com/nf-core/rnaseq │
│ seek_and_destroy │ Simple pipeline for basic quality control, host removal and exploratory analysis of samples │ https://github.com/GuilleGorines/Seek-Destroy │
│ snippy │ Rapid haploid variant calling and core genome alignment │ https://github.com/tseemann/snippy │
│ taxprofiler │ Highly parallelised multi-taxonomic profiling of shotgun short- and long-read metagenomic data │ https://github.com/nf-core/taxprofiler │
│ tbprofiler │ Mycobacterium tuberculosis variant calling and resistance prediction using TBProfiler │ https://github.com/jodyphelan/TBProfiler │
│ viralrecon │ Viral genome reconstruction analysis for SARS-COV-2 data │ https://github.com/BU-ISCIII/viralrecon │
│ wgmlst_chewbbaca │ Multilocus sequence typing (MLST) using chewBBACA │ https://github.com/B-UMMI/chewBBACA │
│ wgmlst_taranis │ Multilocus sequence typing (MLST) using Taranis │ https://github.com/BU-ISCIII/taranis │
│ wgstrio │ Human: Whole genome sequencing for SNPs variant calling, annotation and inheritance filtering │ - │
└─────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────────────┘
new-service
Example of usage:
buisciii new-service <resolution_id>
Help:
Usage: buisciii new-service [OPTIONS] <resolution id>
Create new service, it will create folder and copy template depending on
selected service.
Options:
-p, --path PATH Path to create the service folder
-n, --no_create_folder No create service folder, only resolution
-a, --ask_path Please ask for path.
--help Show this message and exit.
scratch
Example of usage:
buisciii scratch --direction service_to_scratch <resolution_id>
Help:
Usage: buisciii scratch [OPTIONS] <resolution id>
Copy service folder to scratch directory for execution.
Options:
-p, --path PATH Absolute path to the folder containing
service to copy
-a, --ask_path Please ask for service path.
-t, --tmp_dir PATH Directory to which the files will be
transfered for execution. Default:
/data/ucct/bi/scratch_tmp/bi/
-d, --direction [service_to_scratch|scratch_to_service|remove_scratch]
Direction of the rsync command.
service_to_scratch from /data/ucct/bi/service to
/data/ucct/bi/scratch_tmp/bi/.scratch_to_service:
From /data/ucct/bi/scratch_tmp/bi/ to
/data/ucct/bi/service
--help Show this message and exit.
Finish
Example of usage:
buisciii finish <resolution_id>
Help:
Usage: buisciii finish [OPTIONS] <resolution id>
Service cleaning, remove big files, rename folders before copy and copy
resolution FOLDER to sftp.
Options:
-p, --path PATH Absolute path to the folder containg the service to
reaname and copy
-a, --ask_path Please ask for path, not assume pwd.
-s, --sftp_folder PATH Absolute path to directory to which the files will
be transfered
-t, --tmp_dir PATH Absolute path to the scratch directory containing
the service.
--help Show this message and exit.
Finish module performs de following modules at onin this order, at once:
clean
Example of usage:
buisciii clean <resolution_id>
Help:
Usage: buisciii clean [OPTIONS] <resolution id>
Service cleaning. It will either remove big files, rename folders before
copy, revert this renaming, show removable files or show folders for no
copy.
Options:
-p, --path PATH Absolute path to the folder containing
service to clean
-a, --ask_path Please ask for path
-s, --option [full_clean|rename_nocopy|clean|revert_renaming|show_removable|show_nocopy]
Select what to do inside the cleanning step:
full_clean: delete files and folders to
clean, rename no copy and deleted folders,
rename_nocopy: just rename no copy folders,
clean: delete files and folders to
clean,revert_renaming: remove no_copy and
delete tags,show_removable: list folders and
files to remove and show_nocopy: show
folders to rename with no_copy tag.
--help Show this message and exit.
scratch back
buisciii scratch --direction scratch_to_service <resolution_id>
copy_sftp
Example of usage:
buisciii copy-sftp <resolution_id>
Help:
Usage: buisciii copy-sftp [OPTIONS] <resolution id>
Copy resolution FOLDER to sftp, change status of resolution in iskylims and
generate md, pdf, html.
Options:
-p, --path PATH Absolute path to directory containing files to
transfer
-a, --ask_path Please ask for path
-s, --sftp_folder PATH Absolute path to directory to which the files will
be transfered
--help Show this message and exit.
bioinfo_doc
Example of usage:
buisciii bioinfo-doc <resolution_id>
Help:
Usage: buisciii bioinfo-doc [OPTIONS] <resolution id>
Create the folder documentation structure in bioinfo_doc server
Options:
-p, --path PATH Absolute path to bioinfo_doc directory.
-a, --ask_path Please ask for path, not assume
/data/bioinfo_doc/.
-t, --type [service_info|delivery]
Select the documentation that will generate
-s, --sftp_folder PATH Absolute path to sftp folfer containing
service folder
-r, --report_md PATH Absolute path to markdown report to use
instead of the one in config file
-m, --results_md PATH Absolute path to markdown report to use
instead of the one in config file
-e, --email_psswd TEXT Password for bioinformatica@isciii.es
--help Show this message and exit.
archive
Example of usage:
buisciii archive --date_from 2022-01-01 --date_until 2023-01-01
Help:
Usage: buisciii archive [OPTIONS]
Archive services or retrieve services from archive
Options:
-s, --service_id TEXT service id, pe SRVCNM787
-sf, --service_file TEXT file with services ids, one per line
-t, --ser_type [services_and_colaborations|research]
Select which folder you want to archive.
-o, --option [archive|retrieve_from_archive]
Select either you want to archive services
or retrieve a service from archive.
-sp, --skip_prompts Avoid prompts (except on service choosing)
-df, --date_from TEXT The date from which start search (format
'YYYY-MM-DD')
-du, --date_until TEXT The date from which end search (format
'YYYY-MM-DD')
-f, --output_name TEXT Tsv output path + filename with archive
stats and info
--help Show this message and exit.
autoclean_sftp
Example of usage:
buisciii autoclean-sftp
Help:
Usage: buisciii autoclean-sftp [OPTIONS]
Clean old sftp services
Options:
-s, --sftp_folder PATH Absolute path to sftp folder
-d, --days INTEGER Integer, remove files older than a window of `-d
[int]` days. Default 14 days.
--help Show this message and exit.
fix-permissions
Example of usage:
buisciii fix-permissions -d /data/bi
Help:
Usage: buisciii fix-permissions [OPTIONS]
Fix permissions
Options:
-d, --input_directory PATH Input directory to fix permissions (absolute path) [required]
--help Show this message and exit.
Acknowledgements
Python package idea and design is really inspired in nf-core/tools.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file buisciii_tools-2.3.2.tar.gz.
File metadata
- Download URL: buisciii_tools-2.3.2.tar.gz
- Upload date:
- Size: 99.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90e184625a98677c2ca8738b44d3089338a9506d5593a6a5342ae9573ce28c9
|
|
| MD5 |
dadfad9de79ffc335bcc1b9abda7374f
|
|
| BLAKE2b-256 |
adddc67d4e9cf1f045233c4342ec667662df0b6953834417281024ee3ad632e1
|
Provenance
The following attestation bundles were made for buisciii_tools-2.3.2.tar.gz:
Publisher:
pypi_publish.yml on BU-ISCIII/buisciii-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buisciii_tools-2.3.2.tar.gz -
Subject digest:
b90e184625a98677c2ca8738b44d3089338a9506d5593a6a5342ae9573ce28c9 - Sigstore transparency entry: 1242530982
- Sigstore integration time:
-
Permalink:
BU-ISCIII/buisciii-tools@2c8ab7022d9be764cd2f65ad172e6a7b4de01d65 -
Branch / Tag:
refs/tags/2.3.2 - Owner: https://github.com/BU-ISCIII
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@2c8ab7022d9be764cd2f65ad172e6a7b4de01d65 -
Trigger Event:
release
-
Statement type:
File details
Details for the file buisciii_tools-2.3.2-py3-none-any.whl.
File metadata
- Download URL: buisciii_tools-2.3.2-py3-none-any.whl
- Upload date:
- Size: 101.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f850620a9b2363d5f78fafe913e663fb53ad58347604d2281244f7e426053466
|
|
| MD5 |
49c5bc913fb76a4667a77eaf8f976abe
|
|
| BLAKE2b-256 |
7f03a602e2d52310b290693de2204cac2158511072ba2530c44ee08c87e4977b
|
Provenance
The following attestation bundles were made for buisciii_tools-2.3.2-py3-none-any.whl:
Publisher:
pypi_publish.yml on BU-ISCIII/buisciii-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buisciii_tools-2.3.2-py3-none-any.whl -
Subject digest:
f850620a9b2363d5f78fafe913e663fb53ad58347604d2281244f7e426053466 - Sigstore transparency entry: 1242531000
- Sigstore integration time:
-
Permalink:
BU-ISCIII/buisciii-tools@2c8ab7022d9be764cd2f65ad172e6a7b4de01d65 -
Branch / Tag:
refs/tags/2.3.2 - Owner: https://github.com/BU-ISCIII
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@2c8ab7022d9be764cd2f65ad172e6a7b4de01d65 -
Trigger Event:
release
-
Statement type: