Difference between revisions of "VICES"

From Genome Analysis Wiki
Jump to navigationJump to search
Line 17: Line 17:
 
  ./vices -r reports_list.txt -o contam_estimates.txt
 
  ./vices -r reports_list.txt -o contam_estimates.txt
  
 +
The reports_list.txt file must list the paths of all the Illumina report files (either plaintext or gzipped) you are testing. All files in a single run must be from the same type and version of array with exactly the same markers. Output will be written to the file contam_estimates.txt.
  
The file must list the paths of all the Illumina report files (either plaintext or gzipped, for example see https://support.illumina.com/downloads/humanomniexpress-12-v1-1-product-support-files.html) you are testing. Output is only by stdout at this stage so you will have to redirect. All files in a single run must be from the same type and version of array with exactly the same markers.
+
The output consists of a header (with the number of samples, markers, etc.) then three tab-delimited columns:
 +
*'''Recipient_Index''' the index (starting with 0) of the samples being tested. These are in the same order as in the file with paths to report files provided to VICES. If the --sample-list option is used and points to a file containing sample IDs in the same order as the report files, then this column becomes '''Recipient_ID'''.
 +
*'''Estimated_contamination'''
 +
*'''Sources''' A breakdown of the estimated sources of contamination. Most will have only one source (AF for allele frequencies) because VICES does not perform the donor search for samples with estimated contamination proportion < 0.005 by AF.
 +
Example (simulated) report files and output are provided in the section below
  
The output consists of a header (with the number of samples, markers, etc.) then three tab-delimited columns:
+
We highly recommend running VICES only within the same batches they were genotyped in as the donor estimation can take a long time if you give it a long list of over 1000 samples. Other reasons to run in batches are that samples genotyped in different runs are probably less likely to have traded DNA, and batch effects may influence the calculation of allele frequencies, an important initial step in VICES. Your sequencing core should provide some information on batches. If you don't have any batch information, then running VICES on one (or at most 20) 96-well plate at a time should also work well.  
Recipient_Index: the index (starting with 0) of the samples being tested. These are in the same order as in the file with paths to report files provided to VICES.
 
Estimated_contamination
 
Sources: A breakdown of the estimated sources of contamination. Most will have only one source (AF for allele frequencies) because VICES does not perform the donor search for samples with estimated contamination proportion < 0.005 by AF.
 
I highly recommend running VICES only within the same batches they were genotyped in as the donor estimation can take a long time if you give it a long list of over 1000 samples. Other reasons to run in batches are that samples genotyped in different runs are probably less likely to have traded DNA, and batch effects may influence the calculation of allele frequencies, an important initial step in VICES. Your sequencing core should provide some information on batches. If you don't have any batch information, then running VICES on one (or at most 20) 96-well plate at a time should also work well.  
 
  
 
If any duplicate/twin samples are contaminated, this could bias the results. You might want to consider excluding one of each duplicate/twin pair before running/rerunning.
 
If any duplicate/twin samples are contaminated, this could bias the results. You might want to consider excluding one of each duplicate/twin pair before running/rerunning.
  
To answer some questions I have received, no external allele frequencies are required. VICES calculates these directly from the report files you provide. If there is sufficient interest, providing external frequencies may become an option in the official release.  
+
No external allele frequencies are required. VICES calculates these directly from the report files you provide.
  
 
= Options =
 
= Options =
Line 45: Line 46:
 
  -h, --help                            This help page
 
  -h, --help                            This help page
  
<!---
+
= VICES Example =
= Example Data =
+
Coming soon
--->
+
 
 
= Citation =
 
= Citation =
 
A paper is in the works and should be published soon. For now, you can cite our abstract from the 2017 Biology of Genomes meeting
 
A paper is in the works and should be published soon. For now, you can cite our abstract from the 2017 Biology of Genomes meeting

Revision as of 21:31, 12 February 2019


Introduction

VICES is a program that jointly estimates the proportion of contaminating DNA in samples genotyped on arrays and which other samples in the study it came from.

Download

GitHub Repo: https://github.com/gjmzajac/vices

ZIP archive: https://github.com/gjmzajac/vices/zipball/master/

Usage

To run,

./vices -r reports_list.txt -o contam_estimates.txt

The reports_list.txt file must list the paths of all the Illumina report files (either plaintext or gzipped) you are testing. All files in a single run must be from the same type and version of array with exactly the same markers. Output will be written to the file contam_estimates.txt.

The output consists of a header (with the number of samples, markers, etc.) then three tab-delimited columns:

  • Recipient_Index the index (starting with 0) of the samples being tested. These are in the same order as in the file with paths to report files provided to VICES. If the --sample-list option is used and points to a file containing sample IDs in the same order as the report files, then this column becomes Recipient_ID.
  • Estimated_contamination
  • Sources A breakdown of the estimated sources of contamination. Most will have only one source (AF for allele frequencies) because VICES does not perform the donor search for samples with estimated contamination proportion < 0.005 by AF.

Example (simulated) report files and output are provided in the section below

We highly recommend running VICES only within the same batches they were genotyped in as the donor estimation can take a long time if you give it a long list of over 1000 samples. Other reasons to run in batches are that samples genotyped in different runs are probably less likely to have traded DNA, and batch effects may influence the calculation of allele frequencies, an important initial step in VICES. Your sequencing core should provide some information on batches. If you don't have any batch information, then running VICES on one (or at most 20) 96-well plate at a time should also work well.

If any duplicate/twin samples are contaminated, this could bias the results. You might want to consider excluding one of each duplicate/twin pair before running/rerunning.

No external allele frequencies are required. VICES calculates these directly from the report files you provide.

Options

-r, --report-list <file>              File with paths to Illumina report files
-o, --output <file>                   Write output to a file [standard output]
-f, --maf-threshold <float>           Min minor allele frequency for markers
-c, --contam-threshold <float>        Threshold for estimating donor samples
-s, --sample-list <file>              File with sample ids for report files
-a, --af-only                         Specify analysis with AF only. No donor estimation
-n, --snp-name-col <string>           Name of report file column containing SNP names
-1, --allele1-col <string>            Name of report file column containing allele 1
-2, --allele2-col <string>            Name of report file column containing allele 2
-b, --b-allele-intensity-col <string> Name of report file column containing B allele intensity
-m, --num-markers <int>               Maximum number of markers for contamination estimation
-t, --threads <int>                   Number of threads for parallel computation
-h, --help                            This help page

VICES Example

Coming soon

Citation

A paper is in the works and should be published soon. For now, you can cite our abstract from the 2017 Biology of Genomes meeting

  • G. J. M. Zajac, L. G. Fritsche, S. L. Dagenais, R. H. Lyons, C. M. Brummett, & G. Abecasis. VICES: Verify Intensity Contamination from Estimated Sources. Poster Session presented at: The Biology of Genomes; 2017 May 9-13; Cold Spring Harbor, NY.

Contact

For questions or bug reports, email gzajac at umich.edu

Need Something Else?

More Software: ContaminationDetection