Package org.snpeff.snpEffect.commandLine
Class SnpEffCmdPdb
- java.lang.Object
-
- org.snpeff.SnpEff
-
- org.snpeff.snpEffect.commandLine.SnpEffCmdPdb
-
- All Implemented Interfaces:
CommandLine
public class SnpEffCmdPdb extends SnpEff
PDB distance analysisReferences: http://biojava.org/wiki/BioJava:CookBook:PDB:read
- Author:
- pcingola
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.snpeff.SnpEff
SnpEff.GeneDatabaseFormat, SnpEff.InputFormat, SnpEff.OutputFormat
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_DISTANCE_THRESHOLDstatic java.lang.StringDEFAULT_ID_MAP_FILEstatic java.lang.StringDEFAULT_INTERACT_FILEstatic doubleDEFAULT_MAX_MISMATCH_RATEstatic java.lang.StringDEFAULT_PDB_DIRstatic intDEFAULT_PDB_MIN_AA_SEPARATIONstatic java.lang.StringDEFAULT_PDB_ORGANISM_COMMONstatic java.lang.StringDEFAULT_PDB_ORGANISM_SCIENTIFICstatic doubleDEFAULT_PDB_RESOLUTIONstatic java.util.ArrayList<DistanceResult>EMPTY_DISTANCESstatic java.lang.StringPDB_EXTstatic java.lang.StringPDB_EXT_GZstatic java.lang.String[]PDB_EXTSstatic java.lang.StringPROTEIN_INTERACTION_FILEstatic java.lang.StringUNIPROT_DATABASE-
Fields inherited from class org.snpeff.SnpEff
args, BUILD, BUILD_DATE, canonical, canonicalFile, command, COMMAND_LINE_WIDTH, config, configFile, configOverride, customIntervalFiles, dataDir, debug, DEFAULT_COMMAND, download, expandIub, filterIntervalFiles, genome, genomeVer, help, hgvs, hgvsForce, hgvsOld, hgvsOneLetterAa, hgvsShift, hgvsTrId, interaction, log, maxTranscriptSupportLevel, motif, multiThreaded, nextProt, nextProtKeepAllTrs, noGenome, numWorkers, onlyProtein, onlyRegulation, onlyTranscriptsFile, output, quiet, regulationTracks, REVISION, saveOutput, shiftArgs, snpEffCmd, SOFTWARE_NAME, spliceRegionExonSize, spliceRegionIntronMax, spliceRegionIntronMin, spliceSiteSize, strict, suppressOutput, treatAllAsProteinCoding, upDownStreamLength, verbose, VERSION, VERSION_AUTHOR, VERSION_BUILD, VERSION_MAJOR, VERSION_SHORT
-
-
Constructor Summary
Constructors Constructor Description SnpEffCmdPdb()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DistanceResult>getDistanceResults()voidinitialize()Load all datavoidloadIdMapper()voidparseArgs(java.lang.String[] args)Parse command line argumentsvoidpdb()PDB analysisprotected voidpdbAnalysis()Check that protein sequences form PDB matches sequences from Genome Return an IdMapped of confirmed entries (i.e.protected voidpdbAnalysis(java.lang.String pdbFileName)Analyze a PDB fileorg.biojava.nbio.structure.StructurereadPdbFile(java.lang.String pdbFileName)Read and parse PDB filebooleanrun()Run according to command line optionsbooleanrun(boolean storeResults)voidsetDistanceThresholdNon(double distanceThresholdNon)voidusage(java.lang.String message)Show 'usage;' message and exit with an error code '-1'-
Methods inherited from class org.snpeff.SnpEff
addRegulationTrack, canonical, cmd, commandLineStr, getArgs, getConfig, getConfigFile, getOutput, isOpt, load, loadConfig, loadCustomFile, loadDb, loadMarkers, main, reportValues, run, setCanonical, setConfig, setConfigFile, setDebug, setGenomeVer, setLog, setNextProt, setNextProtKeepAllTrs, setShiftHgvs, setSpliceSiteSize, setSupressOutput, setUpDownStreamLength, setVerbose, usageDb, usageGeneric, usageGenericAndDb
-
-
-
-
Field Detail
-
DEFAULT_PDB_DIR
public static final java.lang.String DEFAULT_PDB_DIR
- See Also:
- Constant Field Values
-
DEFAULT_ID_MAP_FILE
public static final java.lang.String DEFAULT_ID_MAP_FILE
- See Also:
- Constant Field Values
-
DEFAULT_INTERACT_FILE
public static final java.lang.String DEFAULT_INTERACT_FILE
- See Also:
- Constant Field Values
-
PDB_EXT
public static final java.lang.String PDB_EXT
- See Also:
- Constant Field Values
-
PDB_EXT_GZ
public static final java.lang.String PDB_EXT_GZ
- See Also:
- Constant Field Values
-
PDB_EXTS
public static final java.lang.String[] PDB_EXTS
-
PROTEIN_INTERACTION_FILE
public static final java.lang.String PROTEIN_INTERACTION_FILE
- See Also:
- Constant Field Values
-
UNIPROT_DATABASE
public static final java.lang.String UNIPROT_DATABASE
- See Also:
- Constant Field Values
-
DEFAULT_DISTANCE_THRESHOLD
public static final double DEFAULT_DISTANCE_THRESHOLD
- See Also:
- Constant Field Values
-
DEFAULT_MAX_MISMATCH_RATE
public static final double DEFAULT_MAX_MISMATCH_RATE
- See Also:
- Constant Field Values
-
DEFAULT_PDB_MIN_AA_SEPARATION
public static final int DEFAULT_PDB_MIN_AA_SEPARATION
- See Also:
- Constant Field Values
-
DEFAULT_PDB_ORGANISM_COMMON
public static final java.lang.String DEFAULT_PDB_ORGANISM_COMMON
- See Also:
- Constant Field Values
-
DEFAULT_PDB_ORGANISM_SCIENTIFIC
public static final java.lang.String DEFAULT_PDB_ORGANISM_SCIENTIFIC
- See Also:
- Constant Field Values
-
DEFAULT_PDB_RESOLUTION
public static final double DEFAULT_PDB_RESOLUTION
- See Also:
- Constant Field Values
-
EMPTY_DISTANCES
public static final java.util.ArrayList<DistanceResult> EMPTY_DISTANCES
-
-
Method Detail
-
getDistanceResults
public java.util.List<DistanceResult> getDistanceResults()
-
initialize
public void initialize()
Load all data
-
loadIdMapper
public void loadIdMapper()
-
parseArgs
public void parseArgs(java.lang.String[] args)
Parse command line arguments- Specified by:
parseArgsin interfaceCommandLine- Overrides:
parseArgsin classSnpEff
-
pdb
public void pdb()
PDB analysis
-
pdbAnalysis
protected void pdbAnalysis()
Check that protein sequences form PDB matches sequences from Genome Return an IdMapped of confirmed entries (i.e. AA sequence matches between transcript and PDB)
-
pdbAnalysis
protected void pdbAnalysis(java.lang.String pdbFileName)
Analyze a PDB file
-
readPdbFile
public org.biojava.nbio.structure.Structure readPdbFile(java.lang.String pdbFileName)
Read and parse PDB file
-
run
public boolean run()
Description copied from class:SnpEffRun according to command line options- Specified by:
runin interfaceCommandLine- Overrides:
runin classSnpEff
-
run
public boolean run(boolean storeResults)
-
setDistanceThresholdNon
public void setDistanceThresholdNon(double distanceThresholdNon)
-
usage
public void usage(java.lang.String message)
Show 'usage;' message and exit with an error code '-1'- Specified by:
usagein interfaceCommandLine- Overrides:
usagein classSnpEff- Parameters:
message-
-
-