Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ deploy:
file: build/libs/DamageProfiler-0.3.11.jar
skip_cleanup: true
on:
all_branches: true
branch: master
repo: Integrative-Transcriptomics/DamageProfiler
Empty file modified LICENSE
100644 → 100755
Empty file.
7 changes: 3 additions & 4 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ Shows this help page.\
The input sam/bam file.\
\
**-o,--output <OUTPUT>**\
The output folder\
The output folder.\
\

Options
**-l,--length <LENGTH>**\
Number of bases which are computations.\
\
**-mapped,--all_mapped_reads**\
Use all mapped reads to calculate damage plots. Default: false.\
**-merged,--all_mapped_and_merged_reads**\
Use all mapped and merged reads to calculate damage plot instead of using all mapped reads. The SAM/BAM entry must start with 'M_', otherwise it will be skipped. Default: false\
\
**-r,--reference <REFERENCE>**\
The reference file\
Expand Down
Empty file modified arch-pkgbuild/PKGBUILD
100644 → 100755
Empty file.
Empty file modified arch-pkgbuild/starter.sh
100644 → 100755
Empty file.
Empty file modified arch-pkgbuild/updatePKGBuild.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion build.gradle
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.uni-tuebingen.de.it.eager.damageprofiler'
version '0.3.14'
version '0.4.5'

buildscript {
repositories {
Expand Down
Empty file modified docs/Makefile
100644 → 100755
Empty file.
Empty file modified docs/conf.py
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions docs/contents/generalUsage.rst
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ How to run
----------

.. code-block:: bash

java -jar DamageProfiler-VERSION.jar <arguments> [options]


Expand All @@ -32,7 +31,7 @@ Options:

* **-l,--length <LENGTH>** : Number of bases which are computations.
* **-mapped,--all_mapped_reads** : Use all mapped reads to calculate damage plots. Default: false.
* **-r,--reference <REFERENCE>** : The reference file.
* **-r,--reference <REFERENCE>** : The reference file. The reference is only needed if the mapping file doesn't have MD tags.
* **-s,--specie <SPECIE>** : RefSeq ID of the reference genome. This will just use the reads mapping to the specific reference for creating the damage profile. It can for example be used for MALT output files. In this case, please make sure that you run MALT without *--sparseSAM* option. This would create a sam file with is not readable. Example: -s NC_022116.1
* **-sf,--specieslist file <SPECIES LIST>** : List with species (RefSeq IDs) for which damage profile has to be calculated. One species per line, given as text file (.txt). Species must have the same format like *-s* parameter.
* **-t,--threshold <THRESHOLD>** : Number of bases which are considered for plotting nucleotide misincorporations.
Expand Down
Empty file modified docs/contents/installation.rst
100644 → 100755
Empty file.
Empty file modified docs/index.rst
100644 → 100755
Empty file.
Empty file modified settings.gradle
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/BamFileChooserFX.java
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/CopyTask.java
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/MainGuiFX.java
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/OutputDirChooserFX.java
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/Progress.java
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/ReferenceFileChooserFX.java
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/RescaleAdvanced.form
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/RescaleAdvanced.java
100644 → 100755
Empty file.
Empty file modified src/main/java/GUI/SpeciesListFileChooser.java
100644 → 100755
Empty file.
161 changes: 11 additions & 150 deletions src/main/java/IO/Communicator.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ public class Communicator {

// damage calculation
private int threshold = 25;

private double yAxis;
private int length = 100;
private boolean use_merged_and_mapped_reads = true;
private boolean use_merged_and_mapped_reads = false;
private boolean use_all_reads = false;

// specie filtering
private String species_ref_identifier = null;
Expand All @@ -24,26 +26,6 @@ public class Communicator {
private String title_plots;


//
// // options recsaling
// private boolean perform_rescaling = false;
//
// private int rand = 30; // Number of random starting points for the likelihood optimization
// private int burn = 10000; // Number of burnin iterations
// private int adjust = 10; // Number of adjust proposal variance parameters iterations
// private int iter = 50000; // Number of final MCMC iterations
// private boolean forward = false; // Using only the 5' end of the seqs
// private boolean reverse = false; // Using only the 3' end of the seqs
// private boolean var_disp = false; // Variable dispersion in the overhangs
// private boolean jukes_cantor = false; // Use Jukes Cantor instead of HKY85
// private boolean diff_hangs = false; // The overhangs are different for 5' and 3'
// private int nu_samples = 0;
// private boolean fix_nicks = false; // Fix the nick frequency vector (Only C.T from the 5' end and G.A from the 3' end)
// private boolean use_raw_nick_freq = false; // Use the raw nick frequency vector without smoothing
// private boolean single_stranded = false; // Single stranded protocol
// private int seq_length = 12; // how long sequence to use from each side
// private int minQual = 0;


public Communicator(){

Expand Down Expand Up @@ -105,6 +87,14 @@ public void setUse_merged_and_mapped_reads(boolean use_merged_and_mapped_reads)
this.use_merged_and_mapped_reads = use_merged_and_mapped_reads;
}

public boolean isUse_all_reads() {
return use_all_reads;
}

public void setUse_all_reads(boolean use_all_reads) {
this.use_all_reads = use_all_reads;
}

public void setyAxis(double yAxis) {
this.yAxis = yAxis;
}
Expand All @@ -130,134 +120,5 @@ public void setSpecieslist_filepath(String specieslist_filepath) {
}


// public boolean isPerform_rescaling() {
// return perform_rescaling;
// }
//
// public void setPerform_rescaling(boolean perform_rescaling) {
// this.perform_rescaling = perform_rescaling;
// }
//
//
// public int getRand() {
// return rand;
// }
//
// public void setRand(int rand) {
// this.rand = rand;
// }
//
// public int getBurn() {
// return burn;
// }
//
// public void setBurn(int burn) {
// this.burn = burn;
// }
//
// public int getAdjust() {
// return adjust;
// }
//
// public void setAdjust(int adjust) {
// this.adjust = adjust;
// }
//
// public int getIter() {
// return iter;
// }
//
// public void setIter(int iter) {
// this.iter = iter;
// }
//
// public boolean isForward() {
// return forward;
// }
//
// public void setForward(boolean forward) {
// this.forward = forward;
// }
//
// public boolean isReverse() {
// return reverse;
// }
//
// public void setReverse(boolean reverse) {
// this.reverse = reverse;
// }
//
// public boolean isVar_disp() {
// return var_disp;
// }
//
// public void setVar_disp(boolean var_disp) {
// this.var_disp = var_disp;
// }
//
// public boolean isJukes_cantor() {
// return jukes_cantor;
// }
//
// public void setJukes_cantor(boolean jukes_cantor) {
// this.jukes_cantor = jukes_cantor;
// }
//
// public boolean isDiff_hangs() {
// return diff_hangs;
// }
//
// public void setDiff_hangs(boolean diff_hangs) {
// this.diff_hangs = diff_hangs;
// }
//
// public int getNu_samples() {
// return nu_samples;
// }
//
// public void setNu_samples(int nu_samples) {
// this.nu_samples = nu_samples;
// }
//
// public boolean isFix_nicks() {
// return fix_nicks;
// }
//
// public void setFix_nicks(boolean fix_nicks) {
// this.fix_nicks = fix_nicks;
// }
//
// public boolean isUse_raw_nick_freq() {
// return use_raw_nick_freq;
// }
//
// public void setUse_raw_nick_freq(boolean use_raw_nick_freq) {
// this.use_raw_nick_freq = use_raw_nick_freq;
// }
//
// public boolean isSingle_stranded() {
// return single_stranded;
// }
//
// public void setSingle_stranded(boolean single_stranded) {
// this.single_stranded = single_stranded;
// }
//
// public int getSeq_length() {
// return seq_length;
// }
//
// public void setSeq_length(int seq_length) {
// this.seq_length = seq_length;
// }
//
// public int getMinQual() {
// return minQual;
// }
//
// public void setMinQual(int minQual) {
// this.minQual = minQual;
// }


}
Empty file modified src/main/java/IO/DOMParser.java
100644 → 100755
Empty file.
Empty file modified src/main/java/IO/FastACacher.java
100644 → 100755
Empty file.
Empty file modified src/main/java/IO/Histogram.java
100644 → 100755
Empty file.
Empty file modified src/main/java/IO/LinePlot.java
100644 → 100755
Empty file.
Empty file modified src/main/java/IO/LogClass.java
100644 → 100755
Empty file.
Empty file modified src/main/java/IO/OutputGenerator.java
100644 → 100755
Empty file.
Empty file modified src/main/java/IO/SpeciesListParser.java
100644 → 100755
Empty file.
Empty file modified src/main/java/IO/Unzip.java
100644 → 100755
Empty file.
134 changes: 12 additions & 122 deletions src/main/java/IO/UserOptionsParser.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -76,78 +76,14 @@ private void parse(){
.create("yaxis"));


Option mapped_and_merged = new Option("mapped", "all_mapped_reads", false,
"Use all mapped reads to calculate damage plots. Default: false ");
Option mapped_and_merged = new Option("merged", "all_mapped_and_merged_reads", false,
"Use all mapped and merged reads to calculate damage plot instead of using all mapped reads. The SAM/BAM entry must start with 'M_', otherwise " +
" it will be skipped. Default: false ");
options.addOption(mapped_and_merged);


// // recsaling options
// Option rescaling = new Option("rescale", "Rescaling_misincorporations", false,
// "Correct the damaged bases and generate new BAM file.");
// options.addOption(rescaling);
// options.addOption(OptionBuilder.withLongOpt("rand")
// .withArgName("RAND")
// .withDescription("Number of random starting points for the likelihood optimization")
// .hasArg()
// .create("rand"));
// options.addOption(OptionBuilder.withLongOpt("burn")
// .withArgName("BURN")
// .withDescription("Number of burnin iterations ")
// .hasArg()
// .create("burn"));
// options.addOption(OptionBuilder.withLongOpt("adjust")
// .withArgName("ADJUST")
// .withDescription("Number of adjust proposal variance parameters iterations.")
// .hasArg()
// .create("adjust"));
// options.addOption(OptionBuilder.withLongOpt("iter")
// .withArgName("Iterations")
// .withDescription("Number of final MCMC iterations")
// .hasArg()
// .create("iter"));
// options.addOption(OptionBuilder.withLongOpt("Q")
// .withArgName("MINQUALITY")
// .withDescription("Minimal base quality Phred score considered")
// .hasArg()
// .create("Q"));
// options.addOption(OptionBuilder.withLongOpt("seq_length")
// .withArgName("SEQ_LENGTH")
// .withDescription("How long sequence to use from each side by considering the damage probabilities. Default: 12")
// .hasArg()
// .create("seq_length"));
//
// Option only_forward = new Option("forward", "only_forward", false,
// "Using only forward reads (5' end). Default: false");
// options.addOption(only_forward);
//
// Option only_reverse = new Option("reverse", "only_reverse", false,
// "Using only reverse reads (3' end). Default: false");
// options.addOption(only_reverse);
//
// Option var_disp_opt = new Option("var_disp", "var_disp", false,
// "Variable dispersion in the overhangs . Default: false");
// options.addOption(var_disp_opt);
//
// Option jukes_cantor_opt = new Option("jukes_cantor", "jukes_cantor", false,
// "Use Jukes Cantor transition matrix instead of HKY85. Default: false");
// options.addOption(jukes_cantor_opt);
//
// Option diff_hangs_opt = new Option("diff_hangs", "diff_hangs", false,
// "The overhangs are different for 5' and 3'. Default: false");
// options.addOption(diff_hangs_opt);
//
// Option fix_nicks_opt = new Option("fix_nicks", "fix_nicks", false,
// "Fix the nick frequency vector (Only C>T from the 5' end and G>A from the 3' end). Default: false");
// options.addOption(fix_nicks_opt);
//
// Option use_raw_nick_freq_opt = new Option("use_raw_nick_freq", "use_raw_nick_freq", false,
// "Use the raw nick frequency vector without smoothing. Default: false");
// options.addOption(use_raw_nick_freq_opt);
//
// Option single_stranded_opt = new Option("single_stranded", "single_stranded", false,
// "Use Single stranded protocol. Default: false");
// options.addOption(single_stranded_opt);
//
Option use_all_reads = new Option("useall", "use_all_reads", false,
"Use all reads (mapped and unmapped) to calculate damage plot. Default: false ");
options.addOption(use_all_reads);


HelpFormatter helpformatter = new HelpFormatter();
Expand Down Expand Up @@ -194,8 +130,12 @@ private void parse(){
if (cmd.hasOption('l')) {
communicator.setLength(Integer.parseInt(cmd.getOptionValue('l')));
}
if(cmd.hasOption("all_mapped_reads")) {
communicator.setUse_merged_and_mapped_reads(false);
if(cmd.hasOption("all_mapped_and_merged_reads")) {
communicator.setUse_merged_and_mapped_reads(true);
}

if(cmd.hasOption("use_all_reads")) {
communicator.setUse_all_reads(false);
}

// Plotting
Expand All @@ -212,56 +152,6 @@ private void parse(){
communicator.setThreshold(Integer.parseInt(cmd.getOptionValue('t')));
}

//
// // options for rescaling
//
// if(cmd.hasOption("Rescaling_misincorporations")) {
// communicator.setPerform_rescaling(true);
// }
//
// if(cmd.hasOption("rand")) {
// communicator.setRand(Integer.parseInt(cmd.getOptionValue("rand")));
// }
// if(cmd.hasOption("burn")) {
// communicator.setBurn(Integer.parseInt(cmd.getOptionValue("burn")));
// }
// if(cmd.hasOption("adjust")) {
// communicator.setAdjust(Integer.parseInt(cmd.getOptionValue("adjust")));
// }
// if(cmd.hasOption("iter")) {
// communicator.setIter(Integer.parseInt(cmd.getOptionValue("iter")));
// }
// if(cmd.hasOption("only_forward")) {
// communicator.setForward(true);
// }
// if(cmd.hasOption("only_reverse")) {
// communicator.setReverse(true);
// }
// if(cmd.hasOption("var_disp")) {
// communicator.setVar_disp(true);
// }
// if(cmd.hasOption("jukes_cantor")) {
// communicator.setJukes_cantor(true);
// }
// if(cmd.hasOption("diff_hangs")) {
// communicator.setDiff_hangs(true);
// }
// if(cmd.hasOption("fix_nicks")) {
// communicator.setFix_nicks(true);
// }
// if(cmd.hasOption("use_raw_nick_freq")) {
// communicator.setUse_raw_nick_freq(true);
// }
// if(cmd.hasOption("single_stranded")) {
// communicator.setSingle_stranded(false);
// }
// if(cmd.hasOption("seq_length")) {
// communicator.setSeq_length(Integer.parseInt(cmd.getOptionValue("seq_length")));
// }
// if(cmd.hasOption('Q')) {
// communicator.setMinQual(Integer.parseInt(cmd.getOptionValue('Q')));
// }


} catch (ParseException e) {
helpformatter.printHelp(CLASS_NAME, options);
Expand Down
Loading