Skip to content

Commit 3a070f9

Browse files
committed
args for excluded tags
1 parent 617bb66 commit 3a070f9

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

colormipsearch-tools/src/main/java/org/janelia/colormipsearch/cmd/AbstractGradientScoresArgs.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,16 @@ class AbstractGradientScoresArgs extends AbstractColorDepthMatchArgs {
3535
variableArity = true)
3636
List<String> maskDatasets = new ArrayList<>();
3737

38-
@Parameter(names = {"--masks-tags"}, description = "Tags associated with the mask of the match to be scored",
38+
@Parameter(names = {"--mask-tags", "--masks-tags"}, description = "Tags associated with the mask of the match to be scored",
3939
listConverter = ListValueAsFileArgConverter.class,
4040
variableArity = true)
4141
List<String> maskTags = new ArrayList<>();
4242

43+
@Parameter(names = {"--mask-excluded-tags", "--masks-excluded-tags"}, description = "Tags that should not be associated with the mask of the match to be scored",
44+
listConverter = ListValueAsFileArgConverter.class,
45+
variableArity = true)
46+
List<String> maskExcludedTags = new ArrayList<>();
47+
4348
@Parameter(names = {"--masks-terms"}, description = "Terms associated with the mask of the match to be scored",
4449
listConverter = ListValueAsFileArgConverter.class,
4550
variableArity = true)
@@ -64,11 +69,16 @@ class AbstractGradientScoresArgs extends AbstractColorDepthMatchArgs {
6469
variableArity = true)
6570
List<String> targetDatasets = new ArrayList<>();
6671

67-
@Parameter(names = {"--targets-tags"}, description = "Tags associated with the target of the match to be scored",
72+
@Parameter(names = {"--target-tags", "--targets-tags"}, description = "Tags associated with the target of the match to be scored",
6873
listConverter = ListValueAsFileArgConverter.class,
6974
variableArity = true)
7075
List<String> targetTags = new ArrayList<>();
7176

77+
@Parameter(names = {"--target-excluded-tags", "--targetss-excluded-tags"}, description = "Tags that should not be associated with the target of the match to be scored",
78+
listConverter = ListValueAsFileArgConverter.class,
79+
variableArity = true)
80+
List<String> targetExcludedTags = new ArrayList<>();
81+
7282
@Parameter(names = {"--targets-published-names"}, description = "Selected target names",
7383
listConverter = ListValueAsFileArgConverter.class,
7484
variableArity = true)

colormipsearch-tools/src/main/java/org/janelia/colormipsearch/cmd/CalculateGradientScoresCmd.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ List<CDMatchEntity<M, T>> startAllGradientScores() {
251251
.addMipIDs(args.masksMIPIDs)
252252
.addDatasets(args.maskDatasets)
253253
.addTags(args.maskTags)
254+
.addExcludedTags(args.maskExcludedTags)
254255
.addAnnotations(args.maskAnnotations)
255256
.addExcludedAnnotations(args.excludedMaskAnnotations)
256257
.addProcessingTags(args.getMasksProcessingTags())
@@ -332,6 +333,7 @@ List<GroupedItems<M, CDMatchEntity<M, T>>> getCDMatchesForMaskMipID(NeuronMatche
332333
.addMipIDs(args.targetsMIPIDs)
333334
.addDatasets(args.targetDatasets)
334335
.addTags(args.targetTags)
336+
.addExcludedTags(args.targetExcludedTags)
335337
.addAnnotations(args.targetAnnotations)
336338
.addExcludedAnnotations(args.excludedTargetAnnotations)
337339
.addProcessingTags(args.getTargetsProcessingTags()),

0 commit comments

Comments
 (0)