@DocumentedFeature public final class GetSampleName extends GATKTool
Note: If the bam has zero or more than one sample names in the header, this tool will error, by design. This tool has not been tested extensively. Most options supported by the GATK are irrelevant for this tool.
gatk GetSampleName \ -I input.bam \ -O sample_name.txt
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
outputSampleNameFile |
static java.lang.String |
STANDARD_ENCODING |
static java.lang.String |
URL_ENCODING_LONG_NAME |
static java.lang.String |
URL_ENCODING_SHORT_NAME |
protected boolean |
urlEncode |
addOutputSAMProgramRecord, addOutputVCFCommandLine, cloudIndexPrefetchBuffer, cloudPrefetchBuffer, createOutputBamIndex, createOutputBamMD5, createOutputVariantIndex, createOutputVariantMD5, disableBamIndexCaching, features, intervalArgumentCollection, lenientVCFProcessing, outputSitesOnlyVCFs, progressMeter, readArguments, referenceArguments, SECONDS_BETWEEN_PROGRESS_UPDATES_NAME, seqValidationArguments
GATK_CONFIG_FILE, logger, NIO_MAX_REOPENS, NIO_PROJECT_FOR_REQUESTER_PAYS, QUIET, specialArgumentsCollection, tmpDir, useJdkDeflater, useJdkInflater, VERBOSITY
Constructor and Description |
---|
GetSampleName() |
Modifier and Type | Method and Description |
---|---|
void |
onTraversalStart()
Operations performed just prior to the start of traversal.
|
boolean |
requiresReads()
Does this tool require reads? Traversals types and/or tools that do should override to return true.
|
void |
traverse()
A complete traversal from start to finish.
|
addFeatureInputsAfterInitialization, closeTool, createSAMWriter, createSAMWriter, createVCFWriter, createVCFWriter, directlyAccessEngineFeatureManager, directlyAccessEngineReadsDataSource, directlyAccessEngineReferenceDataSource, doWork, getBestAvailableSequenceDictionary, getDefaultCloudIndexPrefetchBufferSize, getDefaultCloudPrefetchBufferSize, getDefaultReadFilters, getDefaultToolVCFHeaderLines, getDefaultVariantAnnotationGroups, getDefaultVariantAnnotations, getGenomicsDBOptions, getHeaderForFeatures, getHeaderForReads, getHeaderForSAMWriter, getMasterSequenceDictionary, getPluginDescriptors, getProgressMeterRecordLabel, getReferenceDictionary, getSequenceDictionaryValidationArgumentCollection, getToolName, getTransformedReadStream, getTraversalIntervals, hasFeatures, hasReads, hasReference, hasUserSuppliedIntervals, makePostReadFilterTransformer, makePreReadFilterTransformer, makeReadFilter, makeVariantAnnotations, onShutdown, onStartup, onTraversalSuccess, requiresFeatures, requiresIntervals, requiresReference, transformTraversalIntervals, useVariantAnnotations
customCommandLineValidation, getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getSupportInformation, getToolkitName, getToolkitShortName, getToolStatusWarning, getUsage, getVersion, instanceMain, instanceMainPostParseArgs, isBetaFeature, isExperimentalFeature, parseArgs, printLibraryVersions, printSettings, printStartupMessage, runTool, setDefaultHeaders, warnOnToolStatus
public static final java.lang.String STANDARD_ENCODING
@Argument(doc="Output file with only the sample name in it.", fullName="output", shortName="O") protected java.io.File outputSampleNameFile
public static final java.lang.String URL_ENCODING_LONG_NAME
public static final java.lang.String URL_ENCODING_SHORT_NAME
@Argument(doc="Apply URL encoding to convert spaces and other special characters in sample name.", fullName="use-url-encoding", shortName="encode") protected boolean urlEncode
public void traverse()
GATKTool
public boolean requiresReads()
GATKTool
requiresReads
in class GATKTool
public void onTraversalStart()
GATKTool
onTraversalStart
in class GATKTool