@DocumentedFeature public class MergeVcfs extends CommandLineProgram
The input variant data must adhere to the following rules:
You can either directly specify the list of files by specifying INPUT multiple times, or provide a list
in a file with name ending in ".list" to INPUT.
java -jar picard.jar MergeVcfs \
I=input_variants.01.vcf \
I=input_variants.02.vcf.gz \
O=output_variants.vcf.gz
java -jar picard.jar MergeVcfs \
I=input_variant_files.list \
O=output_variants.vcf.gz
| Modifier and Type | Field | Description |
|---|---|---|
List<File> |
INPUT |
|
File |
OUTPUT |
|
File |
SEQUENCE_DICTIONARY |
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, referenceSequence, specialArgumentsCollection, TMP_DIR, USE_JDK_DEFLATER, USE_JDK_INFLATER, VALIDATION_STRINGENCY, VERBOSITY| Constructor | Description |
|---|---|
MergeVcfs() |
| Modifier and Type | Method | Description |
|---|---|---|
protected int |
doWork() |
Do the work after command line has been parsed.
|
static void |
main(String[] argv) |
customCommandLineValidation, getCommandLine, getCommandLineParser, getDefaultHeaders, getFaqLink, getMetricsFile, getStandardUsagePreamble, getStandardUsagePreamble, getVersion, hasWebDocumentation, instanceMain, instanceMainWithExit, makeReferenceArgumentCollection, parseArgs, requiresReference, setDefaultHeaders, useLegacyParser@Argument(shortName="I",
doc="VCF or BCF input files (File format is determined by file extension), or a file having a \'.list\' suffix containing the path to the files, one per line.",
minElements=1)
public List<File> INPUT
@Argument(shortName="O",
doc="The merged VCF or BCF file. File format is determined by file extension.")
public File OUTPUT
@Argument(shortName="D",
doc="The index sequence dictionary to use instead of the sequence dictionary in the input files",
optional=true)
public File SEQUENCE_DICTIONARY
public static void main(String[] argv)
protected int doWork()
CommandLineProgramdoWork in class CommandLineProgram