Lifts over a VCF file from one reference build to another.
java -jar picard.jar LiftoverVcf \\ I=input.vcf \\ O=lifted_over.vcf \\ CHAIN=b37tohg38.chain \\ REJECT=rejected_variants.vcf \\ R=reference_sequence.fasta
This table summarizes the command-line arguments that are specific to this tool. For more details on each argument, see the list further down below the table or click on an argument name to jump directly to that entry in the list.
Argument name(s) | Default value | Summary | |
---|---|---|---|
Required Arguments | |||
--CHAIN -C |
null | The liftover chain file. See https://genome.ucsc.edu/goldenPath/help/chain.html for a description of chain files. See http://hgdownload.soe.ucsc.edu/downloads.html#terms for where to download chain files. | |
--INPUT -I |
null | The input VCF/BCF file to be lifted over. | |
--OUTPUT -O |
null | The output location for the lifted over VCF/BCF. | |
--REFERENCE_SEQUENCE -R |
null | The reference sequence (fasta) for the TARGET genome build (i.e., the new one. The fasta file must have an accompanying sequence dictionary (.dict file). | |
--REJECT |
null | File to which to write rejected records. | |
Optional Tool Arguments | |||
--ALLOW_MISSING_FIELDS_IN_HEADER |
false | Allow INFO and FORMAT in the records that are not found in the header | |
--arguments_file |
[] | read one or more arguments files and add them to the command line | |
--help -h |
false | display the help message | |
--LIFTOVER_MIN_MATCH |
1.0 | The minimum percent match required for a variant to be lifted. | |
--LOG_FAILED_INTERVALS -LFI |
true | If true, intervals failing due to match below LIFTOVER_MIN_MATCH will be logged as a warning to the console. | |
--RECOVER_SWAPPED_REF_ALT |
false | If the REF allele of the lifted site does not match the target genome, that variant is normally rejected. For bi-allelic SNPs, if this is set to true and the ALT allele equals the new REF allele, the REF and ALT alleles will be swapped. This can rescue some variants; however, do this carefully as some annotations may become invalid, such as any that are alelle-specifc. See also TAGS_TO_REVERSE and TAGS_TO_DROP. | |
--TAGS_TO_DROP |
[MAX_AF] | INFO field annotations that should be deleted when swapping reference with variant alleles. | |
--TAGS_TO_REVERSE |
[AF] | INFO field annotations that behave like an Allele Frequency and should be transformed with x->1-x when swapping reference with variant alleles. | |
--version |
false | display the version number for this tool | |
--WARN_ON_MISSING_CONTIG -WMC |
false | Warn on missing contig. | |
--WRITE_ORIGINAL_ALLELES |
false | Write the original alleles for lifted variants to the INFO field. If the alleles are identical, this attribute will be omitted. | |
--WRITE_ORIGINAL_POSITION |
false | Write the original contig/position for lifted variants to the INFO field. | |
Optional Common Arguments | |||
--COMPRESSION_LEVEL |
5 | Compression level for all compressed files created (e.g. BAM and VCF). | |
--CREATE_INDEX |
false | Whether to create a BAM index when writing a coordinate-sorted BAM file. | |
--CREATE_MD5_FILE |
false | Whether to create an MD5 digest for any BAM or FASTQ files created. | |
--GA4GH_CLIENT_SECRETS |
client_secrets.json | Google Genomics API client_secrets.json file path. | |
--MAX_RECORDS_IN_RAM |
500000 | When writing files that need to be sorted, this will specify the number of records stored in RAM before spilling to disk. Increasing this number reduces the number of file handles needed to sort the file, and increases the amount of RAM needed. | |
--QUIET |
false | Whether to suppress job-summary info on System.err. | |
--TMP_DIR |
[] | One or more directories with space available to be used by this program for temporary storage of working files | |
--USE_JDK_DEFLATER -use_jdk_deflater |
false | Use the JDK Deflater instead of the Intel Deflater for writing compressed output | |
--USE_JDK_INFLATER -use_jdk_inflater |
false | Use the JDK Inflater instead of the Intel Inflater for reading compressed input | |
--VALIDATION_STRINGENCY |
STRICT | Validation stringency for all SAM files read by this program. Setting stringency to SILENT can improve performance when processing a BAM file in which variable-length data (read, qualities, tags) do not otherwise need to be decoded. | |
--VERBOSITY |
INFO | Control verbosity of logging. | |
Advanced Arguments | |||
--showHidden |
false | display hidden arguments |
Arguments in this list are specific to this tool. Keep in mind that other arguments are available that are shared with other tools (e.g. command-line GATK arguments); see Inherited arguments above.
Allow INFO and FORMAT in the records that are not found in the header
boolean false
read one or more arguments files and add them to the command line
List[File] []
The liftover chain file. See https://genome.ucsc.edu/goldenPath/help/chain.html for a description of chain files. See http://hgdownload.soe.ucsc.edu/downloads.html#terms for where to download chain files.
R File null
Compression level for all compressed files created (e.g. BAM and VCF).
int 5 [ [ -∞ ∞ ] ]
Whether to create a BAM index when writing a coordinate-sorted BAM file.
Boolean false
Whether to create an MD5 digest for any BAM or FASTQ files created.
boolean false
Google Genomics API client_secrets.json file path.
String client_secrets.json
display the help message
boolean false
The input VCF/BCF file to be lifted over.
R File null
The minimum percent match required for a variant to be lifted.
double 1.0 [ [ -∞ ∞ ] ]
If true, intervals failing due to match below LIFTOVER_MIN_MATCH will be logged as a warning to the console.
boolean true
When writing files that need to be sorted, this will specify the number of records stored in RAM before spilling to disk. Increasing this number reduces the number of file handles needed to sort the file, and increases the amount of RAM needed.
Integer 500000 [ [ -∞ ∞ ] ]
The output location for the lifted over VCF/BCF.
R File null
Whether to suppress job-summary info on System.err.
Boolean false
If the REF allele of the lifted site does not match the target genome, that variant is normally rejected. For bi-allelic SNPs, if this is set to true and the ALT allele equals the new REF allele, the REF and ALT alleles will be swapped. This can rescue some variants; however, do this carefully as some annotations may become invalid, such as any that are alelle-specifc. See also TAGS_TO_REVERSE and TAGS_TO_DROP.
boolean false
The reference sequence (fasta) for the TARGET genome build (i.e., the new one. The fasta file must have an accompanying sequence dictionary (.dict file).
R File null
File to which to write rejected records.
R File null
display hidden arguments
boolean false
INFO field annotations that should be deleted when swapping reference with variant alleles.
Collection[String] [MAX_AF]
INFO field annotations that behave like an Allele Frequency and should be transformed with x->1-x when swapping reference with variant alleles.
Collection[String] [AF]
One or more directories with space available to be used by this program for temporary storage of working files
List[File] []
Use the JDK Deflater instead of the Intel Deflater for writing compressed output
Boolean false
Use the JDK Inflater instead of the Intel Inflater for reading compressed input
Boolean false
Validation stringency for all SAM files read by this program. Setting stringency to SILENT can improve performance when processing a BAM file in which variable-length data (read, qualities, tags) do not otherwise need to be decoded.
The --VALIDATION_STRINGENCY argument is an enumerated type (ValidationStringency), which can have one of the following values:
ValidationStringency STRICT
Control verbosity of logging.
The --VERBOSITY argument is an enumerated type (LogLevel), which can have one of the following values:
LogLevel INFO
display the version number for this tool
boolean false
Warn on missing contig.
boolean false
Write the original alleles for lifted variants to the INFO field. If the alleles are identical, this attribute will be omitted.
boolean false
Write the original contig/position for lifted variants to the INFO field.
boolean false
See also General Documentation | Tool Docs Index Tool Documentation Index | Support Forum
GATK version 4.0.11.0 built at 23-11-2018 02:11:49.