How to Use snpeff to analyze SNP results

Source: Internet
Author: User

Snpeff is a variant annotation and effect prediction tool. It annotates and predicts the effects of variants on Genes

For more information, see:

Http://snpeff.sourceforge.net/SnpEff_manual.html

 

1. installation:

First, download the installation package in the home directory.

Wget http://sourceforge.net/projects/snpeff/files/snpEff_latest_core.zip

Decompress the package

Unzip snpeff_latest_core.zip

All programs in the snpeff directory will be generated.

2. Configure your own genome and annotation files. The official database contains a large number of reference genome files, which generally do not need to be configured. If it is not found in the official database, you need to configure it yourself

Assume that I have a reference genome: osativa_204.fa

There is a comment file for this genome: osativa_204_gene.gff3

First, edit the configuration file and add the entry to the new genome.

The configuration file is in the snpeff directory and the configuration file name is snpeff. config

Use VI to edit and add the following two lines

# Rice genome, version osativa_204
Osativa_204.genome: Rice

Save and exit

Or in the snpeff file, create the directory data

Mkdir data

CD Data

Create the osativa_204 and genomes Directories

Mkdir osativa_204

Mkdir genoems

Put your gff3 comment file in the osativa_204 directory

Put your reference sequence file under the genomes directory

Note: Rename the annotation file genes. gff.

Return to the snpeff directory and run the following command:

Java-jar snpeff. Jar build-gff3-V osativa_204

 

Run:

Copy the VCF file to the data directory first.

Then run the following command in the snpeff directory:

Java-xmx8g-jar snpeff. Jar osativa_204 data/testgroup. Filtered. Ordered. VCF> test. Eff. VCF

After the command is executed, three files are generated in the snpeff directory.

Snpeff_genes.txt

Snpeff_summary.html

Test. Eff. VCF

Then, open snpeff_summary.html in the browser to view the summary of the results.

 

 

 

 

By freemao

Fafu.

[Email protected]

 

How to Use snpeff to analyze SNP results

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.