Package org.snpsift
Class SnpSiftCmdCaseControl
- java.lang.Object
-
- org.snpsift.SnpSift
-
- org.snpsift.SnpSiftCmdCaseControl
-
- All Implemented Interfaces:
org.snpeff.snpEffect.commandLine.CommandLine,org.snpeff.snpEffect.VcfAnnotator
public class SnpSiftCmdCaseControl extends SnpSift
Count number of cases and controls- Author:
- pablocingolani
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean[]caseControlprotected java.lang.Stringgroupsprotected org.snpeff.ped.PedPedigreepedigreeprotected doublepvalueThresholdstatic intSHOW_EVERYprotected java.lang.StringtfamFileprotected booleanuseChiSquarestatic java.lang.StringVCF_INFO_CASEstatic java.lang.StringVCF_INFO_CC_ALLstatic java.lang.StringVCF_INFO_CC_DOMstatic java.lang.StringVCF_INFO_CC_GENOstatic java.lang.StringVCF_INFO_CC_RECstatic java.lang.StringVCF_INFO_CC_TRENDstatic java.lang.StringVCF_INFO_CONTROL-
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 SnpSiftCmdCaseControl()SnpSiftCmdCaseControl(java.lang.String[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanannotate(org.snpeff.vcf.VcfEntry vcfEntry)Annotate VCF entryprotected java.util.List<org.snpeff.vcf.VcfHeaderEntry>headers()Lines to be added to VCF headervoidinit()Initialize default valuesprotected doublepAllelic(int[] nControl, int[] nCase, double pvalueTh)Allelic model: Count number of SNPsvoidparseArgs(java.lang.String[] args)Parse command line argumentsprotected doublepDominant(int[] nControl, int[] nCase, double pvalueTh)Dominant model: Either a/A or A/A causes the diseaseprotected doublepGenotypic(int[] nControl, int[] nCase)Genotypic model (Chi Square)protected doublepRecessive(int[] nControl, int[] nCase, double pvalueTh)Recessive model: Only A/A causes the diseaseprotected java.lang.StringprocessVcfHeader(org.snpeff.fileIterator.VcfFileIterator vcf)Process VCF header related issuesprotected doublepTrend(int[] nControl, int[] nCase)Trend modelbooleanrun()Load a file compare callsjava.util.List<org.snpeff.vcf.VcfEntry>run(boolean createList)Runprotected voidswapMinorAllele(int[] nControl, int[] nCase)Swap counts if REF is minor allele (instead of ALT)voidusage(java.lang.String msg)Show usage message-
Methods inherited from class org.snpsift.SnpSift
addHeaders, annotateFinish, annotateInit, cmd, commandLineStr, databaseDownload, databaseFind, error, getArgs, getConfig, getConfigFile, getOutput, isOpt, loadConfig, main, openVcfInputFile, setCommand, setCommand, setConfig, setConfigFile, setDbFileName, setDebug, setQuiet, setSaveOutput, setShowVcfHeader, setShowVersion, setSuppressOutput, setVcfHeaderAddProgramVersion, setVerbose, showCmd, showVersion, unSanitize, usageGenericAndDb
-
-
-
-
Field Detail
-
SHOW_EVERY
public static final int SHOW_EVERY
- See Also:
- Constant Field Values
-
VCF_INFO_CASE
public static final java.lang.String VCF_INFO_CASE
- See Also:
- Constant Field Values
-
VCF_INFO_CONTROL
public static final java.lang.String VCF_INFO_CONTROL
- See Also:
- Constant Field Values
-
VCF_INFO_CC_GENO
public static final java.lang.String VCF_INFO_CC_GENO
- See Also:
- Constant Field Values
-
VCF_INFO_CC_ALL
public static final java.lang.String VCF_INFO_CC_ALL
- See Also:
- Constant Field Values
-
VCF_INFO_CC_DOM
public static final java.lang.String VCF_INFO_CC_DOM
- See Also:
- Constant Field Values
-
VCF_INFO_CC_REC
public static final java.lang.String VCF_INFO_CC_REC
- See Also:
- Constant Field Values
-
VCF_INFO_CC_TREND
public static final java.lang.String VCF_INFO_CC_TREND
- See Also:
- Constant Field Values
-
caseControl
protected java.lang.Boolean[] caseControl
-
tfamFile
protected java.lang.String tfamFile
-
groups
protected java.lang.String groups
-
pedigree
protected org.snpeff.ped.PedPedigree pedigree
-
pvalueThreshold
protected double pvalueThreshold
-
useChiSquare
protected boolean useChiSquare
-
-
Method Detail
-
annotate
public boolean annotate(org.snpeff.vcf.VcfEntry vcfEntry)
Annotate VCF entry
-
headers
protected java.util.List<org.snpeff.vcf.VcfHeaderEntry> headers()
Lines to be added to VCF header
-
init
public void init()
Description copied from class:SnpSiftInitialize default values
-
pAllelic
protected double pAllelic(int[] nControl, int[] nCase, double pvalueTh)Allelic model: Count number of SNPs
-
parseArgs
public void parseArgs(java.lang.String[] args)
Description copied from class:SnpSiftParse command line arguments
-
pDominant
protected double pDominant(int[] nControl, int[] nCase, double pvalueTh)Dominant model: Either a/A or A/A causes the disease
-
pGenotypic
protected double pGenotypic(int[] nControl, int[] nCase)Genotypic model (Chi Square)
-
pRecessive
protected double pRecessive(int[] nControl, int[] nCase, double pvalueTh)Recessive model: Only A/A causes the disease
-
processVcfHeader
protected java.lang.String processVcfHeader(org.snpeff.fileIterator.VcfFileIterator vcf)
Description copied from class:SnpSiftProcess VCF header related issues- Overrides:
processVcfHeaderin classSnpSift
-
pTrend
protected double pTrend(int[] nControl, int[] nCase)Trend model
-
run
public boolean run()
Load a file compare calls
-
run
public java.util.List<org.snpeff.vcf.VcfEntry> run(boolean createList)
Run- Parameters:
createList- : Is true , create a list of VcfEntries (used in test cases)- Returns:
- A list of VcfEntry is createList is true
-
swapMinorAllele
protected void swapMinorAllele(int[] nControl, int[] nCase)Swap counts if REF is minor allele (instead of ALT)
-
-