Skip to main content

Species specific scripts for ecoli

Project description

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,

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bps_fbi_sp_ecoli-0.0.7.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

bps_fbi_sp_ecoli-0.0.7-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file bps_fbi_sp_ecoli-0.0.7.tar.gz.

File metadata

  • Download URL: bps_fbi_sp_ecoli-0.0.7.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for bps_fbi_sp_ecoli-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9f2ab601be4dbbd16b7e8587cd738d9b7f979ec060a36610514d7644f59c930c
MD5 a7fe12d9367b24eafd5e399f4300e063
BLAKE2b-256 a8599f2f293049702cfda5be2029bf36ce8db6eb815c854c838359070424e057

See more details on using hashes here.

File details

Details for the file bps_fbi_sp_ecoli-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for bps_fbi_sp_ecoli-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f7b996612581a26077f426e555ce4ff92725424ac51fcc1366d11c160776b08a
MD5 b1e6e33998b0d93f990fcecfbbca3cc9
BLAKE2b-256 75fbcc33f3bf53555a3f1ed674b6cb4aaab05f3ba5c8e22c7e2ce90c9d834969

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page