Skip to main content

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")

Release files for SNV-FEAST 0.0.8

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

Source distribution (sdist)

Source distribution for SNV-FEAST 0.0.8
File Size Uploaded
SNV-FEAST-0.0.8.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SNV-FEAST 0.0.8
File Interpreter ABI Platform
SNV_FEAST-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / SNV-FEAST-0.0.8.tar.gz

Download URL SNV-FEAST-0.0.8.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
797256958fda7697b54a4815e91003b2ce131dfeca1d8988d36a736f4fb7ad53
BLAKE2b-256 checksum
How to use checksums
608a726b04f574037a196299882b72f1fa903692abe956383513996563bd54e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / SNV_FEAST-0.0.8-py3-none-any.whl

Download URL SNV_FEAST-0.0.8-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab55a74707cc0ff9573f717cc9bc512ffebe497d5618a3588196dd99a5f58bcb
BLAKE2b-256 checksum
How to use checksums
ddc5220c232cb7cb6ad661bc8595056db81be9da890aea239dee65181237ab02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

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