27
27
* and it's associated index file, or a .fasta reference file and it's associated index and dictionary files).
28
28
* Bundle files can be supplied as inputs for many GATK tools. The primary advantage to using a bundle input
29
29
* over an individual file input is that a bundle allows the individual resources to be located in different
30
- * directories (ie., when providing a VCF input, it's corresponding index file generally need to be a sibling
31
- * file in the same directory as the VCF, whereas using a bundle file, because you reference each resource
32
- * explicitly, the index can be located in a different directory from the VCF).
30
+ * directories (ie., when providing a VCF input, the corresponding index file generally needs to be a sibling
31
+ * file in the same directory as the VCF, whereas using a bundle file, because each resource is specified
32
+ * explicitly, the index file can be located in a different directory than the VCF).
33
33
* <p>
34
34
* Each resource in a bundle has an associated content type, which is a string that identifies the type of data
35
35
* in that resource. One resource in the bundle is always designated as the "primary" resource, which determines
57
57
* may also be supplied.
58
58
* <p>
59
59
* The simplest way to use CreateBundle is to specify only the primary resource. In this case, with no secondary
60
- * resources are explicitly provided, CreateBundle will attempt to locate and infer "standard" secondary resources
60
+ * resources are explicitly provided, CreateBundle will attempt to locate and resolve "standard" secondary resources
61
61
* (see "Standard Secondary Resources" below) for the primary resource, as long as:
62
62
* <ul>
63
63
* <li>the content type of the primary resource can be determined from the resources's file extension</li>
64
64
* <li>the primary resource content type is a well known type (i.e., a variants or a fasta file)</li>
65
65
* <li>the secondary resources are siblings (in the same parent directory) as the primary resource</li>
66
66
* </ul>
67
- * The "--suppress-resource-resolution" argument can be used to suppress this secondary
68
- * resource inference behavior. If the type of the primary resource is not expliclty provided, or cannot be
69
- * determined from the file extensions, or if the standard secondary resources for a standard primary resource
70
- * cannot be found in the same director as the primary, an exception will be thrown.
67
+ * The "--suppress-resource-resolution" argument can be used to suppress secondary resource resolution behavior.
68
+ * If the type of the primary resource is not explicitly provided, or cannot be determined from the file extension,
69
+ * or if a standard secondary resource for a standard primary resource cannot be found in the same directory as
70
+ * the primary, an exception will be thrown.
71
71
* <p>
72
- * Alternatively, you can explicitly specify all of the resources and their content types. This is useful when
72
+ * Alternatively, you can specify all of the resources and their content types explicitly . This is useful when
73
73
* the resources are not in the same directory, or when the content types are not standard.
74
74
* <p>
75
75
* For the primary resource, if the content type is not specified on the command line (content types are
82
82
* <h3>Standard Content Types</h3>
83
83
* In general, bundle content types can be any string, but many tools expect bundles to use standard, well known
84
84
* content types that are pre-defined, such as content types for a VCF, a VCF index, a .fasta file, or a reference
85
- * dictionary file. The common well known content types are:
85
+ * dictionary file. The common well known content type strings that can be used as command line argument tags are:
86
86
* <h4>Standard VCF Content Types:</h4>
87
87
* <ul>
88
88
* <li>"CT_VARIANT_CONTEXTS": a VCF file</li>
@@ -208,7 +208,7 @@ public class CreateBundle extends CommandLineProgram {
208
208
shortName = StandardArgumentDefinitions .SECONDARY_RESOURCE_SHORT_NAME ,
209
209
doc = "Path to a secondary resource for" + StandardArgumentDefinitions .PRIMARY_RESOURCE_LONG_NAME +
210
210
" (usually an index). If no secondary resource is specified, standard secondary resources" +
211
- " for the primary bundle resource will be automatically inferred unless " +
211
+ " for the primary bundle resource will be automatically resolved unless " +
212
212
SUPPRESS_SECONDARY_RESOURCE_RESOLUTION_FULL_NAME +
213
213
" is specified." ,
214
214
optional = true )
@@ -319,7 +319,7 @@ private Bundle createVCFBundle() {
319
319
if (indexPath .isEmpty ()) {
320
320
throw new IllegalArgumentException (
321
321
String .format (
322
- "Could not infer an index for %s, you must either specify the index path as a secondary input on the command line or specify the %s argument." ,
322
+ "Could not resolve an index for %s, you must either specify the index path as a secondary input on the command line or specify the %s argument." ,
323
323
primaryResource .getRawInputString (),
324
324
SUPPRESS_SECONDARY_RESOURCE_RESOLUTION_FULL_NAME ));
325
325
}
@@ -344,7 +344,7 @@ private Bundle createVCFBundle() {
344
344
private Bundle createHaploidReferenceBundle () {
345
345
final Collection <BundleResource > bundleResources = new ArrayList <>();
346
346
if (secondaryResource == null && (otherResources == null || otherResources .isEmpty ())) {
347
- // infer dictionary and index
347
+ // resolve dictionary and index
348
348
return HaploidReferenceResolver .referenceBundleFromFastaPath (primaryResource , GATKPath ::new );
349
349
}
350
350
0 commit comments