Package org.snpsift
Class SnpSiftCmdVcf2Tped
- java.lang.Object
-
- org.snpsift.SnpSift
-
- org.snpsift.SnpSiftCmdVcf2Tped
-
- All Implemented Interfaces:
org.snpeff.snpEffect.commandLine.CommandLine,org.snpeff.snpEffect.VcfAnnotator
public class SnpSiftCmdVcf2Tped extends SnpSift
Transform a VCF to a TPED file- Author:
- pcingola
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnpSiftCmdVcf2Tped.UseMissing
-
Field Summary
-
Fields inherited from class org.snpsift.SnpSift
args, BUILD, command, config, configFile, dataDir, dbFileName, dbTabix, dbType, debug, download, EMPTY_ARGS, errCount, genomeVersion, help, log, needsConfig, needsDb, needsGenome, numWorkers, output, quiet, REVISION, saveOutput, shiftArgs, SHOW_EVERY_VCFLINES, showVcfHeader, showVersion, SOFTWARE_NAME, suppressOutput, vcfHeaderAddProgramVersion, vcfHeaderProcessed, vcfInputFile, verbose, VERSION, VERSION_MAJOR, VERSION_NO_NAME, VERSION_SHORT
-
-
Constructor Summary
Constructors Constructor Description SnpSiftCmdVcf2Tped()SnpSiftCmdVcf2Tped(java.lang.String[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Default parametersvoidparseArgs(java.lang.String[] args)Parse command line argumentsbooleanrun()Run annotationsvoidusage(java.lang.String msg)Show usage messagevoidvcf2Tped(java.lang.String vcfFile, java.lang.String tfamFile, java.lang.String outTfamFile, java.lang.String outTpedFile)Convert a VCF to a TPED file-
Methods inherited from class org.snpsift.SnpSift
addHeaders, annotate, annotateFinish, annotateInit, cmd, commandLineStr, databaseDownload, databaseFind, error, getArgs, getConfig, getConfigFile, getOutput, headers, isOpt, loadConfig, main, openVcfInputFile, processVcfHeader, setCommand, setCommand, setConfig, setConfigFile, setDbFileName, setDebug, setQuiet, setSaveOutput, setShowVcfHeader, setShowVersion, setSuppressOutput, setVcfHeaderAddProgramVersion, setVerbose, showCmd, showVersion, unSanitize, usageGenericAndDb
-
-
-
-
Method Detail
-
parseArgs
public void parseArgs(java.lang.String[] args)
Description copied from class:SnpSiftParse command line arguments
-
run
public boolean run()
Run annotations
-
usage
public void usage(java.lang.String msg)
Show usage message
-
vcf2Tped
public void vcf2Tped(java.lang.String vcfFile, java.lang.String tfamFile, java.lang.String outTfamFile, java.lang.String outTpedFile)Convert a VCF to a TPED file- Parameters:
vcfFile-tpedFile- Important: If the variant is NOT a SNP, we create a 'fake' snp ( A -> T ). This is done in order to be able to MAP InDels into PED files and keep compatibility with downstream programs (GenAble). Yes, it's an awful hack. YOu've been warned!
-
-