Skip to content

Commit 6cec6f2

Browse files
committed
More text cleanup.
1 parent ebe0fc1 commit 6cec6f2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/main/java/org/broadinstitute/hellbender/tools/CreateBundle.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
* and it's associated index file, or a .fasta reference file and it's associated index and dictionary files).
2828
* Bundle files can be supplied as inputs for many GATK tools. The primary advantage to using a bundle input
2929
* 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).
3333
* <p>
3434
* Each resource in a bundle has an associated content type, which is a string that identifies the type of data
3535
* in that resource. One resource in the bundle is always designated as the "primary" resource, which determines
@@ -57,19 +57,19 @@
5757
* may also be supplied.
5858
* <p>
5959
* 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
6161
* (see "Standard Secondary Resources" below) for the primary resource, as long as:
6262
* <ul>
6363
* <li>the content type of the primary resource can be determined from the resources's file extension</li>
6464
* <li>the primary resource content type is a well known type (i.e., a variants or a fasta file)</li>
6565
* <li>the secondary resources are siblings (in the same parent directory) as the primary resource</li>
6666
* </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.
7171
* <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
7373
* the resources are not in the same directory, or when the content types are not standard.
7474
* <p>
7575
* For the primary resource, if the content type is not specified on the command line (content types are
@@ -82,7 +82,7 @@
8282
* <h3>Standard Content Types</h3>
8383
* In general, bundle content types can be any string, but many tools expect bundles to use standard, well known
8484
* 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:
8686
* <h4>Standard VCF Content Types:</h4>
8787
* <ul>
8888
* <li>"CT_VARIANT_CONTEXTS": a VCF file</li>
@@ -208,7 +208,7 @@ public class CreateBundle extends CommandLineProgram {
208208
shortName = StandardArgumentDefinitions.SECONDARY_RESOURCE_SHORT_NAME,
209209
doc = "Path to a secondary resource for" + StandardArgumentDefinitions.PRIMARY_RESOURCE_LONG_NAME +
210210
" (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 " +
212212
SUPPRESS_SECONDARY_RESOURCE_RESOLUTION_FULL_NAME +
213213
" is specified.",
214214
optional = true)
@@ -319,7 +319,7 @@ private Bundle createVCFBundle() {
319319
if (indexPath.isEmpty()) {
320320
throw new IllegalArgumentException(
321321
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.",
323323
primaryResource.getRawInputString(),
324324
SUPPRESS_SECONDARY_RESOURCE_RESOLUTION_FULL_NAME));
325325
}
@@ -344,7 +344,7 @@ private Bundle createVCFBundle() {
344344
private Bundle createHaploidReferenceBundle() {
345345
final Collection<BundleResource> bundleResources = new ArrayList<>();
346346
if (secondaryResource == null && (otherResources == null || otherResources.isEmpty())) {
347-
// infer dictionary and index
347+
// resolve dictionary and index
348348
return HaploidReferenceResolver.referenceBundleFromFastaPath(primaryResource, GATKPath::new);
349349
}
350350

0 commit comments

Comments
 (0)