Skip to content

Commit

Permalink
command line params for neuron annotations to be included or excluded…
Browse files Browse the repository at this point in the history
… from tagging
  • Loading branch information
Cristian Goina committed Dec 5, 2024
1 parent 13209b7 commit 2b74f1d
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ static class TagNeuronMetadataArgs extends AbstractCmdArgs {
variableArity = true, description = "If any of these tags is present do not assign the new tag")
List<String> excludedDataTags = new ArrayList<>();

@Parameter(names = {"--neuron-terms"},
listConverter = ListValueAsFileArgConverter.class,
variableArity = true, description = "Only tag data that has any of these neuron annotations")
List<String> neuronAnnotations = new ArrayList<>();

@Parameter(names = {"--excluded-neuron-terms"},
listConverter = ListValueAsFileArgConverter.class,
variableArity = true, description = "If any of these annotations is present do not assign the new tag")
List<String> excludedNeuronAnnotations = new ArrayList<>();

@Parameter(names = {"--mip-ids"},
listConverter = ListValueAsFileArgConverter.class,
variableArity = true,
Expand Down Expand Up @@ -98,7 +108,9 @@ private void updateNeuronMetadataTags() {
.addNames(args.publishedNames)
.addDatasetLabels(args.dataLabels)
.addTags(args.dataTags)
.addExcludedTags(args.excludedDataTags);
.addAnnotations(args.neuronAnnotations)
.addExcludedTags(args.excludedDataTags)
.addExcludedAnnotations(args.excludedNeuronAnnotations);
args.processingTags.forEach(nv -> neuronSelector.addNewProcessedTagsSelection(nv.argName, nv.argValues));
DaosProvider daosProvider = getDaosProvider();
long nUpdates = daosProvider.getNeuronMetadataDao().updateAll(
Expand Down

0 comments on commit 2b74f1d

Please sign in to comment.