Description Usage Arguments Value Functions Htsjdk Exceptions See Also
View source: R/SamExceptions.R
These are a collection of functions to create data exception objects when there are problems with the format or content of sam files or sam data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | SamFileFormatException(path = NA, line = NA, data = NA,
message = "*", call = NULL, package = packageName(), ...)
SamFileHeaderException(path = NA, line = NA, data = NA,
message = "*", call = NULL, package = packageName(), ...)
SamFileReadException(path = NA, line = NA, data = NA,
message = "*", call = NULL, package = packageName(), ...)
MISSING_HEADER_Exception(path = NA, data = NA, line = NA,
message = "*", call = NULL, package = packageName(), ...)
HeaderOnlyException(path = NA, data = NA, line = NA, message = "*",
call = NULL, package = packageName(), ...)
|
path |
The path associated with an exception, as a one element character
vector. It may be |
line |
The line number associated with an exception, as a one element
integer vector. It may be |
data |
The data or value associated with an exception, the format can
vary. Accessible via the the |
message |
The message associated with the exception, for reading by
humans. The default message is usually good enough, but can be overridden
through this parameter if needed. When constructed inside packages, the
message displayed will have the name of the package prepended as
|
call |
The call or call stack associated with the exception. By default
this is NULL as |
package |
The package where this exception is generated. May be
|
... |
Extra parameters for additional key=value data as desired. |
An Exception
object whose class hierarchy is set by the
function call and that may contain additional data.
SamFileFormatException
: This exception and sub-classes describe problems with sam files.
message = [package] A SamFileFormatException occurred at line line in sam file: "file". (Running in: "getwd()"). That line began: "first 80 char of data".
class = c( "SamFileFormatException", "FileFormatException",
"DataException", "Exception", "condition" )
SamFileHeaderException
: This exception and sub-classes describe problems with sam file headers.
message = [package] A SamFileHeaderException occurred parsing the sam file header at line line in file: "file". (Running in: "getwd()"). That line began: "first 80 char of data".
class = c( "SamFileHeaderException", "SamFileFormatException",
"FileFormatException", "DataException", "Exception", "condition" )
SamFileReadException
: This exception and sub-classes describe problems with sam file reads.
message = [package] A SamFileReadException occurred parsing the sam file read at line line in file: "file". (Running in: "getwd()"). That line began: "first 80 char of data".
class = c( "SamFileReadException","SamFileFormatException",
"FileFormatException", "DataException", "Exception", "condition" )
MISSING_HEADER_Exception
: Sam files require headers. Temporary files with just reads are not true sam
files.
message = [package] A MISSING_HEADER Exception occurred in sam file: "file". (Running in: "getwd()"). Sam files require headers. Temporary files with just reads are not true sam files.'
class = c( "MISSING_HEADER_Exception",
"SamFileHeaderException", "SamFileFormatException", "FileFormatException",
"DataException", "Exception", "condition" )
HeaderOnlyException
: Sam files require reads. Temporary files with just headers are not true sam
files.
message = [package] A HeaderOnlyException occurred in sam file: "file". (Running in: "getwd()"). Sam files require reads. Temporary files with just headers are not true sam files.'
class = c( "HeaderOnlyException",
"SamFileReadException", "SamFileFormatException", "FileFormatException",
"DataException", "Exception", "condition" )
Names in all capitals are consistent with Htsjdk Exceptions (A Java API for high-throughput sequencing data (HTS) formats, https://github.com/samtools/htsjdk, specifically the MIT licensed file ‘src/main/java/htsjdk/samtools/SAMValidationError.java’). These Java errors are used, for instance, by then MIT licensed Picard tools, http://broadinstitute.github.io/picard/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.