Sign inSign up

flobenhsj/quantisnp_penncnv

By flobenhsj

•Updated 7 months ago

This Docker provide QuantiSNP and PennCNV

Image
Developer tools
2

1.6K

flobenhsj/quantisnp_penncnv repository overview

⁠QuantiSNP + PennCNV Docker Image

This Docker image integrates both QuantiSNP and PennCNV, allowing you to run both tools seamlessly within the same container environment.


⁠🧪 Tools Included

  • QuantiSNP 2.3: A tool for detecting and quantifying copy number variations (CNVs) using SNP genotyping data and a Hidden Markov Model (HMM).
  • PennCNV 1.0.5: Another widely used CNV detection tool for Illumina SNP arrays, supporting integration with population-level and family-based data.

⁠🚀 Usage

⁠▶️ To run QuantiSNP:
### ⚠️ This is an example — paths refer to files INSIDE the QuantiSNP Docker image

# Chromosomes to analyse:
chr="1:23"

# Sample biological sex (used for chrX correction):
gender="male"   # or "female"

# QuantiSNP parameter and model files
config="/usr/local/QuantiSNP-2.3/bin/config/params.dat"
levels="/usr/local/QuantiSNP-2.3/bin/config/levels.dat"

# GC correction directory (genome_version = GRCh38 or GRCh37)
gcdir="/usr/local/QuantiSNP-2.3/GC_correction/${genome_version}/GCdir/"


quantisnp \
  --chr "${chr}" \
  --outdir . \
  --sampleid <sample_id> \             # unique sample identifier (string)
  --gender "${gender}" \               # male or female
  --config "${config}" \               # params.dat
  --levels "${levels}" \               # levels.dat
  --gcdir "${gcdir}" \                 # GC correction directory
  --input-files <path/to/input.tsv> \  # tab-separated SNP file (LRR + BAF)
  --doXcorrect \                       # enable X-chromosome correction
  --verbose &> <sample_id>.quanti.log  # redirect stdout+stderr to log
⁠▶️ To run PennCNV:
# HMM files are available inside the container at:
#   /usr/local/PennCNV-1.0.5/lib/
#     - hhall.hmm  -> general high-density SNP arrays
#     - hh550.hmm  -> Illumina HumanHap550-specific
#     - wgs.hmm    -> whole-genome sequencing

```bash
penncnv --test \
  --pfbfile pfbfile.pfb \
  --hmmfile <path/to/hmmfile> \
  --logfile <sample_id>.pcnv.chrx.log \
  --minlength <minlength> \
  --minconf <minconf> \
  --output <sample_id>.pcnv.chrx.out \
  --gcmodelfile <path/to/gcmodelfile.txt> \
  --sexfile <path/to/sexfile.tsv> \
  --chrx \
  <path/to/tsv_input_file>

⁠🛠️ Entrypoints

  • The quantisnp and penncnv commands are symbolic wrappers provided via:

    • /usr/local/bin/quantisnp
    • /usr/local/bin/penncnv

Tag summary

Content type

Image

Digest

sha256:2aed9a848…

Size

912.4 MB

Last updated

over 1 year ago

docker pull flobenhsj/quantisnp_penncnv