Skip to content

Commit cc20d50

Browse files
Fixed typos
1 parent 1b81fca commit cc20d50

40 files changed

+87
-71
lines changed

src/main/java/scriptmanager/cli/Coordinate_Manipulation/BED_Manipulation/SortBEDCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public class SortBEDCLI implements Callable<Integer> {
3636

3737
@Option(names = {"-o", "--output"}, description = "specify output file basename with no .cdt/.bed/.jtv extension (default=<bedFile>_SORT")
3838
private String outputBasename = null;
39-
@Option(names = {"-z", "--gzip"}, description = "gzip output (default=false)")
40-
private boolean gzOutput = false;
4139
@Option(names = {"-c", "--center"}, description = "sort by center on the input size of expansion in bins (default=100)")
4240
private int center = -999;
41+
@Option(names = {"-z", "--gzip"}, description = "gzip output (default=false)")
42+
private boolean gzOutput = false;
4343
@Option(names = {"-x", "--index"}, description = "sort by index from the specified start to the specified stop (0-indexed and half-open interval)",
4444
arity = "2")
4545
private int[] index = {-999, -999};

src/main/java/scriptmanager/cli/Peak_Analysis/RandomCoordinateCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class RandomCoordinateCLI implements Callable<Integer> {
3030
@Option(names = {"-o", "--output"}, description = "Specify output directory (default = current working directory), file name will be random_coordinates_<genomeName>_<window>bp.<ext>")
3131
private File output = null;
3232
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
33-
private boolean zip = false;
33+
private boolean gzOutput = false;
3434
@Option(names = {"-f", "--gff"}, description = "file format output as GFF (default format as BED)")
3535
private boolean formatIsBed = true;
3636
@Option(names = {"-n", "--num-sites"}, description = "number of sites (default=1000)")
@@ -48,7 +48,7 @@ public Integer call() throws Exception {
4848
System.exit(1);
4949
}
5050

51-
RandomCoordinate.execute(genomeName, numSites, window, formatIsBed, output, zip);
51+
RandomCoordinate.execute(genomeName, numSites, window, formatIsBed, output, gzOutput);
5252

5353
System.err.println( "Random Coordinate Generation Complete." );
5454
return(0);

src/main/java/scriptmanager/cli/Peak_Analysis/TileGenomeCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class TileGenomeCLI implements Callable<Integer> {
3030
@Option(names = {"-o", "--output"}, description = "Specify output directory (default = current working directory), file name will be genome_tiles_<genomeName>_<window>bp.<ext>")
3131
private File output = null;
3232
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
33-
private boolean zip = false;
33+
private boolean gzOutput = false;
3434
@Option(names = {"-f", "--gff"}, description = "file format output as GFF (default format as BED)")
3535
private boolean formatIsBed = true;
3636
@Option(names = {"-w", "--window"}, description = "window size in bp (default=200)")
@@ -46,7 +46,7 @@ public Integer call() throws Exception {
4646
System.exit(1);
4747
}
4848

49-
TileGenome.execute(genomeName, window, formatIsBed, output, zip);
49+
TileGenome.execute(genomeName, window, formatIsBed, output, gzOutput);
5050

5151
System.err.println( "Genomic Tiling Complete." );
5252
return(0);

src/main/java/scriptmanager/cli/Read_Analysis/AggregateDataCLI.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
import scriptmanager.objects.ToolDescriptions;
1515
import scriptmanager.scripts.Read_Analysis.AggregateData;
16-
import scriptmanager.util.ExtensionFileFilter;
1716

1817
/**
1918
Read_AnalysisCLI/AggregateDataCLI
@@ -34,7 +33,7 @@ public class AggregateDataCLI implements Callable<Integer> {
3433
@Option(names = {"-o", "--output"}, description = "Specify output file (default = <input1>_SCORES.out, <input2_SCORES.out, ... or ALL_SCORES.out if -m flag is used)")
3534
private File output;
3635
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
37-
private boolean zip = false;
36+
private boolean gzOutput = false;
3837

3938
@ArgGroup(exclusive = true, heading = "Aggregation Method%n")
4039
AggType aggr = new AggType();
@@ -75,7 +74,7 @@ public Integer call() throws Exception {
7574
System.exit(1);
7675
}
7776

78-
AggregateData script_obj = new AggregateData(matFiles, output, merge, startROW, startCOL, aggType, zip);
77+
AggregateData script_obj = new AggregateData(matFiles, output, merge, startROW, startCOL, aggType, gzOutput);
7978
script_obj.run();
8079

8180
System.err.println(script_obj.getMessage());

src/main/java/scriptmanager/cli/Read_Analysis/ScaleMatrixCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class ScaleMatrixCLI implements Callable<Integer> {
3030
@Option(names = {"-o", "--output"}, description = "Specify output file (default = <matrixFilename>_SCALE.tab)")
3131
private File output = null;
3232
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
33-
private boolean zip = false;
33+
private boolean gzOutput = false;
3434
@Option(names = {"-s", "--scaling-factor"}, description = "scaling factor (default=1)")
3535
private double scale = 1;
3636
@Option(names = {"-r", "--start-row"}, description = "")
@@ -49,7 +49,7 @@ public Integer call() throws Exception {
4949
System.exit(1);
5050
}
5151

52-
ScaleMatrix script_obj = new ScaleMatrix(matrixFile, output, scale, startROW, startCOL, zip);
52+
ScaleMatrix script_obj = new ScaleMatrix(matrixFile, output, scale, startROW, startCOL, gzOutput);
5353
script_obj.run();
5454

5555
System.err.println("All Matrices Scaled.");

src/main/java/scriptmanager/cli/Read_Analysis/TagPileupCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static class OutputOptions{
5050
arity="0..1")
5151
private ArrayList<String> outputMatrix = new ArrayList<String>(Arrays.asList("no","matrix","output"));
5252
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
53-
private boolean zip = false;
53+
private boolean gzOutput = false;
5454
@Option(names = {"--cdt"}, description = "output matrix in cdt format (default)")
5555
private boolean cdt = false;
5656
@Option(names = {"--tab"}, description = "output matrix in tab format")
@@ -286,7 +286,7 @@ private String validateInput() throws IOException {
286286
p.setStandard(calcOptions.tagsEqual);
287287

288288
//Set output statuses
289-
p.setGZIPstatus(outputOptions.zip);
289+
p.setGZIPstatus(outputOptions.gzOutput);
290290

291291
//Set Ratio (code to standardize tags sequenced to genome size (1 tag / 1 bp))
292292
if( p.getStandard() && filterOptions.blacklistFilter!=null ){

src/main/java/scriptmanager/cli/Sequence_Analysis/DNAShapefromBEDCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class DNAShapefromBEDCLI implements Callable<Integer> {
3737
"--output" }, description = "Specify basename for output files, files for each shape indicated will share this name with a different suffix")
3838
private String outputBasename = null;
3939
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
40-
private boolean zip = false;
40+
private boolean gzOutput = false;
4141
@Option(names = { "--avg-composite" }, description = "Save average composite")
4242
private boolean avgComposite = false;
4343
@Option(names = { "-n", "--no-force" }, description = "don't force-strandedness (default is to force strandedness)")
@@ -76,7 +76,7 @@ public Integer call() throws Exception {
7676
try {
7777
// Generate Composite Plot
7878
DNAShapefromBED script_obj = new DNAShapefromBED(genomeFASTA, bedFile, outputBasename, OUTPUT_TYPE,
79-
forceStrand, new PrintStream[] { null, null, null, null }, zip);
79+
forceStrand, new PrintStream[] { null, null, null, null }, gzOutput);
8080
script_obj.run();
8181

8282
if (avgComposite) {

src/main/java/scriptmanager/cli/Sequence_Analysis/DNAShapefromFASTACLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class DNAShapefromFASTACLI implements Callable<Integer> {
3737
@Option(names = { "--avg-composite" }, description = "Save average composite")
3838
private boolean avgComposite = false;
3939
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
40-
private boolean zip = false;
40+
private boolean gzOutput = false;
4141

4242
@ArgGroup(validate = false, heading = "Shape Options%n")
4343
ShapeType shape = new ShapeType();
@@ -70,7 +70,7 @@ public Integer call() throws Exception {
7070

7171
// Generate Composite Plot
7272
DNAShapefromFASTA script_obj = new DNAShapefromFASTA(fastaFile, outputBasename, OUTPUT_TYPE,
73-
new PrintStream[] { null, null, null, null }, zip);
73+
new PrintStream[] { null, null, null, null }, gzOutput);
7474
script_obj.run();
7575

7676
// Print Composite Scores

src/main/java/scriptmanager/cli/Sequence_Analysis/RandomizeFASTACLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class RandomizeFASTACLI implements Callable<Integer> {
3434
@Option(names = {"-s", "--seed"}, description = "specify an integer seed for reproducible outputs")
3535
private Integer seed = null;
3636
@Option(names = {"-z", "--gzip"}, description = "output compressed output (default=false)")
37-
private boolean zip = false;
37+
private boolean gzOutput = false;
3838

3939
@Override
4040
public Integer call() throws Exception {
@@ -46,7 +46,7 @@ public Integer call() throws Exception {
4646
System.exit(1);
4747
}
4848

49-
RandomizeFASTA.randomizeFASTA(fastaFile, output, seed, zip);
49+
RandomizeFASTA.randomizeFASTA(fastaFile, output, seed, gzOutput);
5050

5151
System.err.println("Randomization Complete.");
5252
return (0);

src/main/java/scriptmanager/scripts/BAM_Format_Converter/BAMtoBED.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ public void run() throws IOException, InterruptedException {
100100
}
101101

102102
if (OUTPUT_GZIP){
103-
printPS("Output Gzip: yes");
104-
} else{
105-
printPS("Output Gzip: no");
103+
printPS("Output GZip: yes");
104+
} else {
105+
printPS("Output GZip: no");
106106
}
107107

108108
// Build&Print Header

0 commit comments

Comments
 (0)