Search in sources :

Example 1 with ArgumentDefinition

use of net.sourceforge.ondex.args.ArgumentDefinition in project knetbuilder by Rothamsted.

the class Parser method getArgumentDefinitions.

public ArgumentDefinition<?>[] getArgumentDefinitions() {
    StringArgumentDefinition taxId = new StringArgumentDefinition(ArgumentNames.TAXID_ARG, ArgumentNames.TAXID_ARG_DESC, false, null, true);
    FileArgumentDefinition inputDir = new FileArgumentDefinition(FileArgumentDefinition.INPUT_DIR, "directory with generif files", true, true, true, false);
    return new ArgumentDefinition<?>[] { taxId, inputDir };
}
Also used : StringArgumentDefinition(net.sourceforge.ondex.args.StringArgumentDefinition) StringArgumentDefinition(net.sourceforge.ondex.args.StringArgumentDefinition) FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition) ArgumentDefinition(net.sourceforge.ondex.args.ArgumentDefinition) FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition)

Example 2 with ArgumentDefinition

use of net.sourceforge.ondex.args.ArgumentDefinition in project knetbuilder by Rothamsted.

the class Parser method getArgumentDefinitions.

@Override
public ArgumentDefinition<?>[] getArgumentDefinitions() {
    FileArgumentDefinition arg1 = new FileArgumentDefinition("firstInputFile", "The first OXL input file.", true, true, false);
    FileArgumentDefinition arg2 = new FileArgumentDefinition("secondInputFile", "The second OXL input file.", true, true, false);
    return new ArgumentDefinition<?>[] { arg1, arg2 };
}
Also used : FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition) ArgumentDefinition(net.sourceforge.ondex.args.ArgumentDefinition) FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition)

Example 3 with ArgumentDefinition

use of net.sourceforge.ondex.args.ArgumentDefinition in project knetbuilder by Rothamsted.

the class NT2ProteinBLASTxAlignmentMapping method getArgumentDefinitions.

@Override
public ArgumentDefinition<?>[] getArgumentDefinitions() {
    Set<ArgumentDefinition<?>> extendedDefinition = new HashSet<ArgumentDefinition<?>>();
    extendedDefinition.add(new FileArgumentDefinition(PROGRAM_DIR_ARG, PROGRAM_DIR_DESC, true, true, true));
    return extendedDefinition.toArray(new ArgumentDefinition<?>[extendedDefinition.size()]);
}
Also used : FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition) ArgumentDefinition(net.sourceforge.ondex.args.ArgumentDefinition) FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition) HashSet(java.util.HashSet)

Example 4 with ArgumentDefinition

use of net.sourceforge.ondex.args.ArgumentDefinition in project knetbuilder by Rothamsted.

the class Mapping method getArgumentDefinitions.

public ArgumentDefinition<?>[] getArgumentDefinitions() {
    Set<ArgumentDefinition<?>> extendedDefinition = new HashSet<ArgumentDefinition<?>>();
    // Add blast program params
    extendedDefinition.add(new RangeArgumentDefinition<Float>(E_VALUE_ARG, E_VALUE_DESC, true, 0.000001F, 0f, Float.MAX_VALUE, Float.class));
    extendedDefinition.add(new RangeArgumentDefinition<Integer>(BITSCORE_ARG, BITSCORE_DESC, true, 200, 0, Integer.MAX_VALUE, Integer.class));
    extendedDefinition.add(new StringArgumentDefinition(TAX_ID_ARG, TAX_ID_ARG_DESC, false, null, true));
    extendedDefinition.add(new SequenceTypeArgumentDefinition(SEQ_TYPE_ARG, true, ATT_AMINO_ACID_SEQ));
    extendedDefinition.add(new FileArgumentDefinition(PROGRAM_DIR_ARG, PROGRAM_DIR_DESC, true, true, true));
    extendedDefinition.add(new SequenceAlignmentProgramArgumentDefinition(SEQ_ALIGNMENT_PROG_ARG, true, SequenceAlignmentProgramArgumentDefinition.DECYPHER));
    extendedDefinition.add(new RangeArgumentDefinition<Float>(OVERLAP_ARG, OVERLAP_DESC, false, 0.25F, 0F, Float.MAX_VALUE, Float.class));
    extendedDefinition.add(new RangeArgumentDefinition<Integer>(CUTOFF_ARG, CUTOFF_DESC, false, 5, 0, Integer.MAX_VALUE, Integer.class));
    return extendedDefinition.toArray(new ArgumentDefinition<?>[extendedDefinition.size()]);
}
Also used : SequenceTypeArgumentDefinition(net.sourceforge.ondex.args.SequenceTypeArgumentDefinition) StringArgumentDefinition(net.sourceforge.ondex.args.StringArgumentDefinition) StringArgumentDefinition(net.sourceforge.ondex.args.StringArgumentDefinition) FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition) ArgumentDefinition(net.sourceforge.ondex.args.ArgumentDefinition) RangeArgumentDefinition(net.sourceforge.ondex.args.RangeArgumentDefinition) SequenceTypeArgumentDefinition(net.sourceforge.ondex.args.SequenceTypeArgumentDefinition) FileArgumentDefinition(net.sourceforge.ondex.args.FileArgumentDefinition) HashSet(java.util.HashSet)

Example 5 with ArgumentDefinition

use of net.sourceforge.ondex.args.ArgumentDefinition in project knetbuilder by Rothamsted.

the class Transformer method getArgumentDefinitions.

@Override
public ArgumentDefinition<?>[] getArgumentDefinitions() {
    StringMappingPairArgumentDefinition conceptAnToRegex = new StringMappingPairArgumentDefinition(anConceptArg, anConceptDesc, false, null, true);
    StringArgumentDefinition conceptAnSquareRoot = new StringArgumentDefinition(squareRootConceptArg, squareRootConceptDesc, false, null, true);
    StringArgumentDefinition conceptAnCubeRoot = new StringArgumentDefinition(cubeRootConceptArg, cubeRootConceptDesc, false, null, true);
    StringMappingPairArgumentDefinition relationAnToRegex = new StringMappingPairArgumentDefinition(anRelationArg, anRelationDesc, false, null, true);
    StringArgumentDefinition relationAnSquareRoot = new StringArgumentDefinition(squareRootRelationArg, squareRootRelationDesc, false, null, true);
    StringArgumentDefinition relationAnCubeRoot = new StringArgumentDefinition(cubeRootRelationArg, cubeRootRelationDesc, false, null, true);
    return new ArgumentDefinition<?>[] { conceptAnToRegex, conceptAnSquareRoot, relationAnToRegex, relationAnSquareRoot, conceptAnCubeRoot, relationAnCubeRoot };
}
Also used : StringMappingPairArgumentDefinition(net.sourceforge.ondex.args.StringMappingPairArgumentDefinition) StringArgumentDefinition(net.sourceforge.ondex.args.StringArgumentDefinition) StringArgumentDefinition(net.sourceforge.ondex.args.StringArgumentDefinition) StringMappingPairArgumentDefinition(net.sourceforge.ondex.args.StringMappingPairArgumentDefinition) ArgumentDefinition(net.sourceforge.ondex.args.ArgumentDefinition)

Aggregations

ArgumentDefinition (net.sourceforge.ondex.args.ArgumentDefinition)62 StringArgumentDefinition (net.sourceforge.ondex.args.StringArgumentDefinition)43 FileArgumentDefinition (net.sourceforge.ondex.args.FileArgumentDefinition)29 BooleanArgumentDefinition (net.sourceforge.ondex.args.BooleanArgumentDefinition)27 RangeArgumentDefinition (net.sourceforge.ondex.args.RangeArgumentDefinition)17 StringMappingPairArgumentDefinition (net.sourceforge.ondex.args.StringMappingPairArgumentDefinition)9 ONDEXPluginArguments (net.sourceforge.ondex.ONDEXPluginArguments)7 ArrayList (java.util.ArrayList)5 HashSet (java.util.HashSet)5 ONDEXConcept (net.sourceforge.ondex.core.ONDEXConcept)4 ONDEXGraph (net.sourceforge.ondex.core.ONDEXGraph)4 ONDEXRelation (net.sourceforge.ondex.core.ONDEXRelation)4 SequenceTypeArgumentDefinition (net.sourceforge.ondex.args.SequenceTypeArgumentDefinition)3 LuceneEnv (net.sourceforge.ondex.core.searchable.LuceneEnv)3 FunctionException (net.sourceforge.ondex.scripting.FunctionException)3 IOException (java.io.IOException)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 IntegerRangeArgumentDefinition (net.sourceforge.ondex.args.IntegerRangeArgumentDefinition)2 ONDEXFilter (net.sourceforge.ondex.filter.ONDEXFilter)2 NamespaceUtils (info.marcobrandizi.rdfutils.namespaces.NamespaceUtils)1