Skip to main content

bps_fbi_sp_ecoli

PyPI version License: MIT Anaconda-Server Badge

Quick start

# Type
fbi_run_ecolityping -h
# Process
fbi_run_postecolityping -h
# Summarize
! fbi_run_qcecolisummary -h

Installation

Pip

Note that this program requires KMA, which is not available on pip. you would need to install it via conda or github.

conda create /.venv python=3.11
pip install bps_fbi_sp_ecoli
conda install bioconda::kma

Conda

conda create /.venv python=3.11
conda install kalilamali::bps_fbi_sp_ecoli
pip install openpyxl pandas envyaml pandas requests python-dotenv

Source

# Clone this repo
git clone https://github.com/ssi-dk/https://github.com/ssi-dk/bps_fbi_sp_ecoli.git
# Create an environment with the required tools with conda
conda create --name ecoli_pipeline kma python=3.11
# Activate the environment
conda activate ecoli pipeline
# Install pip requirements
pip install -r requirements.tx

How to use

Determines the serotype and virulence in ecoli through kmer alignment

! fbi_run_ecolityping -h
usage: fbi_run_ecolityping [-h] [--input INPUT] [--sample_sheet SAMPLE_SHEET]
                           [--output OUTPUT] [--db_path DB_PATH] [--db_update]
                           [--kma_path KMA_PATH] [--command_file COMMAND_FILE]
                           [--execute] [--to_stdout] [--overwrite]
                           [--config_file CONFIG_FILE]

This program takes as input a folder containing fastq.gz files and a
sample_sheet containing SampleID Organism SupplyingLab ecoli1 Ecoli FBI and
allows you to run ecolityping.py on all Ecoli samples.

options:
  -h, --help                   show this help message and exit
  --input INPUT                Path to input folder that contains the .fastq.gz
                               files
  --sample_sheet SAMPLE_SHEET  Name of the sample_sheet file
  --output OUTPUT              Path to the output directory
  --db_path DB_PATH            Path to db folder that contains the indexed
                               database files e.g., file.comp.b, file.fsa,
                               file.index.db, file.lenght.b, file.name,
                               file.seq.b
  --db_update                  Option to build/update the database (default:
                               False)
  --kma_path KMA_PATH          Path to kma program
  --command_file COMMAND_FILE  Path to file to write commands to
  --execute                    Run commands in command file (default: False)
  --to_stdout                  If true, will write to stdout instead of file,
                               mutually exclusive with output_file (default:
                               False)
  --overwrite                  If true, will overwrite output_file if it exists
                               (default: False)
  --config_file CONFIG_FILE    Config file to overwrite default settings, arg
                               parse values will override config file values,
! fbi_run_postecolityping -h
usage: fbi_run_postecolityping [-h] [--input INPUT]
                               [--sample_sheet SAMPLE_SHEET] [--output OUTPUT]
                               [--command_file COMMAND_FILE] [--execute]
                               [--to_stdout] [--overwrite]
                               [--config_file CONFIG_FILE]

This program takes as input a folder containing .tsv files and allows you to run
postecolityping.py on all Ecoli samples.

options:
  -h, --help                   show this help message and exit
  --input INPUT                Path to input folder that contains the results of
                               kma matching against the ecoligenes db (the
                               folder)
  --sample_sheet SAMPLE_SHEET  Name of the sample_sheet file
  --output OUTPUT              Path to the output directory
  --command_file COMMAND_FILE  Path to file to write commands to
  --execute                    Run commands in command file (default: False)
  --to_stdout                  If true, will write to stdout instead of file,
                               mutually exclusive with output_file (default:
                               False)
  --overwrite                  If true, will overwrite output_file if it exists
                               (default: False)
  --config_file CONFIG_FILE    Config file to overwrite default settings, arg
                               parse values will override config file values,
! fbi_run_qcecolisummary -h
usage: fbi_run_qcecolisummary [-h] [--input INPUT] [--output OUTPUT]
                              [--command_file COMMAND_FILE] [--execute]
                              [--to_stdout] [--overwrite]
                              [--config_file CONFIG_FILE]

This program takes as input a folder containing .tsv files and allows you to run
qcecolisummary.py on all Ecoli samples.

options:
  -h, --help                   show this help message and exit
  --input INPUT                Path to input folder that contains the results of
                               kma matching against the ecoligenes db (the
                               folder)
  --output OUTPUT              Path to the output directory
  --command_file COMMAND_FILE  Path to file to write commands to
  --execute                    Run commands in command file (default: False)
  --to_stdout                  If true, will write to stdout instead of file,
                               mutually exclusive with output_file (default:
                               False)
  --overwrite                  If true, will overwrite output_file if it exists
                               (default: False)
  --config_file CONFIG_FILE    Config file to overwrite default settings, arg
                               parse values will override config file values,

Metadata

Release files for bps-fbi-sp-ecoli 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bps-fbi-sp-ecoli 0.0.7
File Size Uploaded
bps_fbi_sp_ecoli-0.0.7.tar.gz 23.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bps-fbi-sp-ecoli 0.0.7
File Interpreter ABI Platform
bps_fbi_sp_ecoli-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 53.9 kB

Release files / bps_fbi_sp_ecoli-0.0.7.tar.gz

Download URL bps_fbi_sp_ecoli-0.0.7.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9f2ab601be4dbbd16b7e8587cd738d9b7f979ec060a36610514d7644f59c930c
BLAKE2b-256 checksum
How to use checksums
a8599f2f293049702cfda5be2029bf36ce8db6eb815c854c838359070424e057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / bps_fbi_sp_ecoli-0.0.7-py3-none-any.whl

Download URL bps_fbi_sp_ecoli-0.0.7-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7b996612581a26077f426e555ce4ff92725424ac51fcc1366d11c160776b08a
BLAKE2b-256 checksum
How to use checksums
75fbcc33f3bf53555a3f1ed674b6cb4aaab05f3ba5c8e22c7e2ce90c9d834969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page