Coder Social home page Coder Social logo

nipt's Introduction

Non Invasive Prenatal Testing (NIPT)

Scripts to calculate the probability of paternity using NGS data of mother, plasma and alleged father

1. Download NIPT package

  • Download the NIPT package.

  • Using the terminal, change the files permissions with the following command.

    chmod 755 -R NIPT-master
    

2. Download the Samtools package

3. To include a new microhaplotype for analisys

  • Inside the folder 1000G_test, there are two folders, onde named VCF and other named MICRO.

  • Put the vcf (obtained from 1000 Genomes) in the folder VCF. Example of vcf name:

    4.7447228-7447353.ALL.chr4.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf
    
  • Put the microhaplotype's list of SNPs in the folder MICRO. Example of list name:

    list4.7447228-7447353
    
  • Call the script 1000G.pl (inside the NIPT folder).

    ./1000G.pl -v 1000G_test/VCF/vcf_name -m 1000G_test/MICRO/list_name -n microhaplotype_number
    

    Obs: The microhaplotype number has to be sequencial and composed of two numbers.

  • The output is a file named MXX_meta_file.txt (where XX = microhaplotype_number).

  • Put the file MXX_meta_file.txt in the folder Haplotypes.

  • There is a file named Microhaplotypes.txt inside the folder Files. Add a line in the file with chromosome, start position and end position (chr4:7447228-7447353).

  • There is a file named SNPs.bed inside the folder Files. Put the SNPs that compose the microhaplotype in bed format (7 columns).

4. To calculate the probability of paternity

  • Go to the directory where the mother, the plasma and the alleged father's BAM files are located.

  • Call the script Paternity_Calc.pl

    Paternity_Calc.pl -X BAM_alleged_father -Y BAM_mother -Z BAM_plasma
    
  • We settled the default parameters, but it can be changed.

nipt's People

Contributors

jaqueytw avatar

Stargazers

 avatar Zuber avatar  avatar  avatar  avatar

Watchers

James Cloos avatar Computational Systems Biology Laboratory avatar  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.