Skip to content

Commit

Permalink
Add --nointernalgaps option
Browse files Browse the repository at this point in the history
  • Loading branch information
sbliven committed Mar 24, 2016
1 parent 406a3cc commit ccc7caa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
8 changes: 5 additions & 3 deletions symmetry-tools/docs/CeSymm.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ Short Option | Long Option | Description
| --fasta=file | Output alignment as FASTA alignment output
-j | --show3d | Force jMol display for each structure [default for <10 structures when specified on command line]
-J | --noshow3d | Disable jMol display [default with --input or for >=10 structures]
| --ordermethod=Class | Order detection method. Can be a full class name or a short class name from the org.biojava.nbio.structure.align.symmetry.internal package. [default SequenceFunctionOrderDetector]
| --refinemethod=Class | Refiner method. Can be a full class name or a short class name from the org.biojava.nbio.structure.align.symmetry.internal package. [default Single]
| --symmtype=Class | Symmetry Type. Can be a full class name or a short class name from the org.biojava.nbio.structure.align.symmetry.internal package. [default Auto]
| --ordermethod=Class | Order detection method: SEQUENCE_FUNCTION (default), GRAPH_COMPONENT, ANGLE, or USER_INPUT
| --order <int> | Force a particular order. If positive, implies --ordermethod=USER_INPUT.
| --refinemethod=Class | Refiner method: SEQUENCE_FUNCTION (default), NOT_REFINED, or GRAPH_COMPONENT
| --symmtype=Class | Restrict symmetry to: CLOSED, OPEN, or AUTO (default)
| --pdbfilepath=dir | Download directory for new structures [default tmp folder]. Can also be set with the PDB_DIR environmental variable.
| --threads=int | Number of threads
| --maxgapsize=float| This parameter configures the maximum gap size G, that is applied during the AFP extension. The larger the value, the longer the calculation time can become, Default value is 30. Set to 0 for no limit.
| --scoringstrategy=str | Which scoring function to use: CA_SCORING, SIDE_CHAIN_SCORING, SIDE_CHAIN_ANGLE_SCORING, CA_AND_SIDE_CHAIN_ANGLE_SCORING, or SEQUENCE_CONSERVATION
| --winsize=int | This configures the fragment size m of Aligned Fragment Pairs (AFPs).
| --maxrmsd=float | The maximum RMSD at which to stop alignment optimization. (default: unlimited=99)
| --nointernalgaps | Force alignment to include a residue from all repeats. (By default only 50% of repeats must be aligned in each column.)
| --gapopen=float | Gap opening penalty during alignment optimization [default: 5.0].
| --gapextension=float | Gap extension penalty during alignment optimization [default: 0.5].
| --symmlevels=int | Run iteratively the algorithm to find multiple symmetry levels. The parameter controls the maximum symmetry levels allowed. 0 means unbounded. [default: 0].
Expand Down
16 changes: 13 additions & 3 deletions symmetry-tools/src/main/java/demo/CeSymmMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ public static void main(String[] args) throws InterruptedException {
}

}

if (cli.hasOption("nointernalgaps")) {
params.setGaps(false);
}
if (cli.hasOption("gapopen")) {
String strVal = cli.getOptionValue("gapopen");
try {
Expand Down Expand Up @@ -673,7 +677,7 @@ private static Options getOptions() {
options.addOption(Option.builder()
.longOpt("ordermethod")
.hasArg(true)
.argName("class")
.argName("str")
.desc( "Order detection method: "+
CliTools.getEnumValuesAsString(OrderDetectorMethod.class))
.build());
Expand All @@ -687,15 +691,15 @@ private static Options getOptions() {
options.addOption(Option.builder()
.longOpt("refinemethod")
.hasArg(true)
.argName("class")
.argName("str")
.desc( "Refiner method: " +
CliTools.getEnumValuesAsString(RefineMethod.class) )
.build());

options.addOption(Option.builder()
.longOpt("symmtype")
.hasArg(true)
.argName("class")
.argName("str")
.desc( "Symmetry Type: " +
CliTools.getEnumValuesAsString(SymmetryType.class))
.build());
Expand Down Expand Up @@ -752,6 +756,12 @@ private static Options getOptions() {
+ "optimization. (default: unlimited=99)")
.build());

options.addOption(Option.builder()
.longOpt("nointernalgaps")
.desc( "Force alignment to include a residue from all repeats. "
+ "(By default only 50% of repeats must be aligned in each column.)")
.build());

options.addOption(Option.builder()
.longOpt("gapopen")
.hasArg(true)
Expand Down

0 comments on commit ccc7caa

Please sign in to comment.