Skip to main content

A package to get signature SNVs from a given strain and set of sink and sources, using MIDAS output

Project description

SNV-FEAST

SNV-FEAST is a method to generate signature SNVs for input into FEAST (Shenhav et al. 2019) from MIDAS (Nayfach et al. 2017) SNV output.

Quick start tutorial

  1. Install SNV-FEAST with pip
python3 -m pip install SNV-FEAST==0.0.4

Option 1: Run as a python module in your code

  1. Install SNV-FEAST with pip
  2. Set up your directories and config
  3. use the module
from snv_feast import snv_feast
snv_feast.signature_snvs("Bacteroides_uniformis_57318", 5, 1, 200, "<directory to your config file>config.yaml")

Option 2: Run as a command line tool

  1. git clone this repository
  2. Set up your directories and config
  3. Run CLI script
python snv_feast_cli.py --strain Bacteroides_uniformis_57318 --min_reads 5 --start_index 1 --end_index 200 --config_file_path <directory in which you cloned this repo>/snv-feast/configs/config.yaml

##Setting up directory and config file 'example_template' shows how the directory and config should be set up

Required input:

  1. midas_output: MIDAS output with a subdirectory called 'snps/' with it's own subdirectory for each species. In side each species subsubdirectory are two bzipped files 'snps_depth.txt.bz2' and 'snps_ref_freq.txt.bz2'
  2. sink_source.csv : a comma-delimited file with the sink source configuration. It should have the accession numbers in the first column for each sink of interest, and in the following columns, the accession numbers for the sources for each sink

Try running with 'example_1' on command line

Run in terminal:

snv_feast_cli --strain Bacteroides_uniformis_57318 --min_reads 5 --start_index 1 --end_index 200 --config_file_path /Users/leahbriscoe/Documents/FEASTX/snv-feast/configs/config.yaml

Try running with 'example_1' in a python script

import snv_feast
snv_feast.signature_snvs(strain="Bacteroides_uniformis_57318", min_reads=5, start_index=1, end_index=200, config_file_path="/Users/leahbriscoe/Documents/FEASTX/snv-feast/configs/config.yaml")

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

SNV-FEAST-0.0.8.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SNV_FEAST-0.0.8-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file SNV-FEAST-0.0.8.tar.gz.

File metadata

  • Download URL: SNV-FEAST-0.0.8.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for SNV-FEAST-0.0.8.tar.gz
Algorithm Hash digest
SHA256 797256958fda7697b54a4815e91003b2ce131dfeca1d8988d36a736f4fb7ad53
MD5 9595871eaf0a17c6438239f4b4569582
BLAKE2b-256 608a726b04f574037a196299882b72f1fa903692abe956383513996563bd54e5

See more details on using hashes here.

File details

Details for the file SNV_FEAST-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: SNV_FEAST-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for SNV_FEAST-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ab55a74707cc0ff9573f717cc9bc512ffebe497d5618a3588196dd99a5f58bcb
MD5 7c722c08671dcc4d17f5b15053e29ec0
BLAKE2b-256 ddc5220c232cb7cb6ad661bc8595056db81be9da890aea239dee65181237ab02

See more details on using hashes here.

Supported by

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