Skip to content

Commit ccc7caa

Browse files
committed
Add --nointernalgaps option
1 parent 406a3cc commit ccc7caa

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

symmetry-tools/docs/CeSymm.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ Short Option | Long Option | Description
3939
| --fasta=file | Output alignment as FASTA alignment output
4040
-j | --show3d | Force jMol display for each structure [default for <10 structures when specified on command line]
4141
-J | --noshow3d | Disable jMol display [default with --input or for >=10 structures]
42-
| --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]
43-
| --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]
44-
| --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]
42+
| --ordermethod=Class | Order detection method: SEQUENCE_FUNCTION (default), GRAPH_COMPONENT, ANGLE, or USER_INPUT
43+
| --order <int> | Force a particular order. If positive, implies --ordermethod=USER_INPUT.
44+
| --refinemethod=Class | Refiner method: SEQUENCE_FUNCTION (default), NOT_REFINED, or GRAPH_COMPONENT
45+
| --symmtype=Class | Restrict symmetry to: CLOSED, OPEN, or AUTO (default)
4546
| --pdbfilepath=dir | Download directory for new structures [default tmp folder]. Can also be set with the PDB_DIR environmental variable.
4647
| --threads=int | Number of threads
4748
| --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.
4849
| --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
4950
| --winsize=int | This configures the fragment size m of Aligned Fragment Pairs (AFPs).
5051
| --maxrmsd=float | The maximum RMSD at which to stop alignment optimization. (default: unlimited=99)
52+
| --nointernalgaps | Force alignment to include a residue from all repeats. (By default only 50% of repeats must be aligned in each column.)
5153
| --gapopen=float | Gap opening penalty during alignment optimization [default: 5.0].
5254
| --gapextension=float | Gap extension penalty during alignment optimization [default: 0.5].
5355
| --symmlevels=int | Run iteratively the algorithm to find multiple symmetry levels. The parameter controls the maximum symmetry levels allowed. 0 means unbounded. [default: 0].

symmetry-tools/src/main/java/demo/CeSymmMain.java

+13-3
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ public static void main(String[] args) throws InterruptedException {
324324
}
325325

326326
}
327+
328+
if (cli.hasOption("nointernalgaps")) {
329+
params.setGaps(false);
330+
}
327331
if (cli.hasOption("gapopen")) {
328332
String strVal = cli.getOptionValue("gapopen");
329333
try {
@@ -673,7 +677,7 @@ private static Options getOptions() {
673677
options.addOption(Option.builder()
674678
.longOpt("ordermethod")
675679
.hasArg(true)
676-
.argName("class")
680+
.argName("str")
677681
.desc( "Order detection method: "+
678682
CliTools.getEnumValuesAsString(OrderDetectorMethod.class))
679683
.build());
@@ -687,15 +691,15 @@ private static Options getOptions() {
687691
options.addOption(Option.builder()
688692
.longOpt("refinemethod")
689693
.hasArg(true)
690-
.argName("class")
694+
.argName("str")
691695
.desc( "Refiner method: " +
692696
CliTools.getEnumValuesAsString(RefineMethod.class) )
693697
.build());
694698

695699
options.addOption(Option.builder()
696700
.longOpt("symmtype")
697701
.hasArg(true)
698-
.argName("class")
702+
.argName("str")
699703
.desc( "Symmetry Type: " +
700704
CliTools.getEnumValuesAsString(SymmetryType.class))
701705
.build());
@@ -752,6 +756,12 @@ private static Options getOptions() {
752756
+ "optimization. (default: unlimited=99)")
753757
.build());
754758

759+
options.addOption(Option.builder()
760+
.longOpt("nointernalgaps")
761+
.desc( "Force alignment to include a residue from all repeats. "
762+
+ "(By default only 50% of repeats must be aligned in each column.)")
763+
.build());
764+
755765
options.addOption(Option.builder()
756766
.longOpt("gapopen")
757767
.hasArg(true)

0 commit comments

Comments
 (0)