Git Product home page Git Product logo

pnps's Introduction

Usage

usage: SNP_pN_pS_calculate.v4.py [-h] -f FFN -b VCF -o OUTDIR [-d MINDEPTH]
                                 [-c SNPCOVERAGE]

optional arguments:
  -h, --help            show this help message and exit
  -f FFN, --ffn FFN     ffn path from Prodigal
  -b VCF, --vcf VCF     vcf file from bcftools
  -o OUTDIR, --outdir OUTDIR
                        name of outdir
  -d MINDEPTH, --minDepth MINDEPTH
                        minimum depth, default 20
  -c SNPCOVERAGE, --SNPcoverage SNPCOVERAGE
                        SNP coverage, default 0.05

Example The sorted bam file is obtained by mapping the reads to genome.

samtools faidx YB4_M4.fa
bcftools mpileup --threads 8 --annotate DP4 -d 20 -q 20 -Q 30 -O b -f YB4_M4.fa YB4_M4.sort.bam -o YB4_M4.bcf.gz
bcftools filter -e 'TYPE=="INDEL" || DP < 20 || (DP4[*:0]+DP4[*:1]+DP4[*:2]+DP4[*:3] < 20)' --threads 6 -g 10 YB4_M4.bcf.gz | bcftools view -H > YB4_M4.filter.vcf
## add bin names for vcf file
sh modified_vcf.sh YB4_M4.filter.vcf YB4_M4 > YB4_M4.filter.vcf.f
## predicte the CDS
mkdir prodigal_out
prodigal -i YB4_M4.fa -f gff -a prodigal_out/YB4_M4.faa -o prodigal_out/YB4_M4.gff -d prodigal_out/YB4_M4.ffn
## calculate the PNPS
SNP_pN_pS_calculate.v4.py -f Hybrid_Normal_MAGs.prodigal -b YB4_M4.filter.vcf.f -o pnps

pnps's People

Contributors

jinhao94 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.