Skip to content

wonderful1/variation_normalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

variation_normalize

A variant normalization procedure

  1. Left-align and normalize indels;
  2. check if REF alleles match the reference;
  3. split multiallelic sites into multiple rows;

usage

View instructions by running python3 variation_normalize.py -h

python3 variation_normalize.py [-h] -ref FASTA -f info -c column number -o outpre

optional arguments:
  -h, --help            show this help message and exit
  -ref FASTA, --reference FASTA
                        The genome sequencing
  -f info, --input_file info
                        the path of input file, should be Tab-separated file.
  -c column number, --cpra column number
                        the column number of chr-pos-ref-alt(CPRA), for example: 1,2,4,5
  -o outpre, --outpre outpre
                        filename of output

example

python variation_normalize.py -ref test_data/chrY.fa -f test_data/chrY.vcf.gz -c 1,2,4,5  -o ./test.out

About

a variant normalization procedure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published