Skip to main content

A Machine Learning Model to Estimate Within-Species DNA Contamination.

Project description

PredDNAContam

PredDNAContam is a tool for DNA contamination prediction from biosample data.

Input File Format (CSV)

When using PredDNAContam, your input data should be in CSV format with the following columns:

Column Description
GQ Genotype quality
DP Total read depth
AF Allele frequency
VAF Variant allele frequency

Example CSV File

The CSV file is generated by extracting the following key features from a VCF (Variant Call Format) file for each variant.

Here’s an example of how the CSV should look after extracting these features:

GQ,DP,AF,VAF
20,47,0.5,0.23
60,25,0.5,0.24
23,55,0.5,0.78

Example config.txt file:

Before running PredDNAContam, you need to configure the paths in the config.txt file. This file contains important directory paths and filenames, which should be set as follows:

input_dir=/path/to/csv_files output_dir=/path/to/output_directory/output_PredDNAcontam model_filename=/path/to/PredDNAContam_model/Random_Forest_Contamination_Model.joblib scaler_filename=/path/to/PredDNAContam_model_scaler/scaler.joblib

Download and Installation

To install PredDNAContam, follow these steps:

  1. Download the package You can download the package from PyPI: 👉 PredDNAContam on PyPI 🔗 https://pypi.org/project/PredDNAContam/#files

Download the file: 📂 preddnacontam-0.0.2.tar.gz

  1. Extract the package
After downloading, unzip the file:
tar -xvzf preddnacontam-0.0.2.tar.gz
cd preddnacontam-0.0.2
  1. Install the package Inside the extracted directory, run:
pip install .

Running PredDNAContam

  1. Modify the configuration file Navigate to the scripts directory and update config.txt to set the correct paths for your input files, model, and output directory.

  2. Run the tool After configuring the paths, execute PredDNAContam:

PredDNAContam

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

preddnacontam-0.0.2.tar.gz (28.2 MB view details)

Uploaded Source

Built Distribution

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

PredDNAContam-0.0.2-py3-none-any.whl (28.9 MB view details)

Uploaded Python 3

File details

Details for the file preddnacontam-0.0.2.tar.gz.

File metadata

  • Download URL: preddnacontam-0.0.2.tar.gz
  • Upload date:
  • Size: 28.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.15

File hashes

Hashes for preddnacontam-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7f7ea6a562e114a344ba0f48e940574455dd1b145d434381557830ea469867d6
MD5 817e925ca7de090386d6e941e986e288
BLAKE2b-256 b5a9bdf4a2880e20f7f88c90b358e150bffdf6f8be720ec889b2bfe64a8dbbef

See more details on using hashes here.

File details

Details for the file PredDNAContam-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: PredDNAContam-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 28.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.15

File hashes

Hashes for PredDNAContam-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b7be201533094650c05ad63bda60c18314113f937f70a42d7ce6ba44fbb273e
MD5 e642adc0b3df59d4071c519354431e4c
BLAKE2b-256 61dbcfeaf5252783ee56f4d56a3b18ba4f68409a22ccb8f0e72a41f0fecd1b77

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