This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update adaptor ligase finding algorithm
Removed unneeded, confusing parameters -cc and -al Removed unused code
- Loading branch information
koen
authored and
koen
committed
Jul 3, 2015
1 parent
4278e2d
commit ae53a65
Showing
10 changed files
with
617 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file renamed
BIN
+285 KB
releases/latest/GBSX_v1.1.3.jar → releases/GBSX_v1.1.4/GBSX_v1.1.4.jar
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
568 changes: 21 additions & 547 deletions
568
src/be/uzleuven/gc/logistics/GBSX/demultiplexer/application/FastqDemultiplex.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
src/be/uzleuven/gc/logistics/GBSX/demultiplexer/model/ProcessedFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package be.uzleuven.gc.logistics.GBSX.demultiplexer.model; | ||
|
||
import be.uzleuven.gc.logistics.GBSX.utils.fastq.model.FastqRead; | ||
import be.uzleuven.gc.logistics.GBSX.utils.sampleBarcodeEnzyme.model.Sample; | ||
|
||
/** | ||
* | ||
* @author koen | ||
*/ | ||
public class ProcessedFragment { | ||
|
||
/** | ||
* all information of the processed fragment: | ||
* <br> the sample of the read, | ||
* <br> read1 (as HashMap of FastqParts and String) | ||
* <br> read2 (only pair-end) (as HashMap of FastqParts and String) | ||
* <br> mismatch occured in finding the barcode/enzyme | ||
*/ | ||
|
||
private Sample sample; | ||
private FastqRead read1; | ||
private FastqRead read2; | ||
private int mismatch; | ||
private String sequenceComment = ""; | ||
|
||
/** | ||
* create a new ProcessedFragment (pair-end) | ||
* @param sample Sample | the sample of the fragment | ||
* @param read1 FastqRead | the first read of the fragment | ||
* @param read2 FastqRead | the second read of the fragment (only pair-end) | ||
* @param mismatch int | number of mismatches in the barcode/enzyme | ||
* @param sequenceComment String | the comment on the cut of the sequence | ||
*/ | ||
public ProcessedFragment(Sample sample, FastqRead read1, FastqRead read2, int mismatch, String sequenceComment){ | ||
this.sample = sample; | ||
this.read1 = read1; | ||
this.read2 = read2; | ||
this.mismatch = mismatch; | ||
this.sequenceComment = sequenceComment; | ||
} | ||
|
||
/** | ||
* create a new ProcessedFragment (pair-end) | ||
* @param sample Sample | the sample of the fragment | ||
* @param read1 FastqRead | the first read of the fragment | ||
* @param read2 FastqRead | the second read of the fragment (only pair-end) | ||
* @param mismatch int | number of mismatches in the barcode/enzyme | ||
*/ | ||
public ProcessedFragment(Sample sample, FastqRead read1, FastqRead read2, int mismatch){ | ||
this.sample = sample; | ||
this.read1 = read1; | ||
this.read2 = read2; | ||
this.mismatch = mismatch; | ||
} | ||
|
||
/** | ||
* create a new ProcessedFragment (single read) | ||
* @param sample Sample | the sample of the fragment | ||
* @param read1 FastqRead | the only read of the fragment | ||
* @param mismatch int | number of mismatches in the barcode/enzyme | ||
*/ | ||
public ProcessedFragment(Sample sample, FastqRead read1, int mismatch){ | ||
this.sample = sample; | ||
this.read1 = read1; | ||
this.read2 = null; | ||
this.mismatch = mismatch; | ||
} | ||
|
||
/** | ||
* | ||
* @return Sample | the sample of this fragment | ||
*/ | ||
public Sample getSample(){ | ||
return this.sample; | ||
} | ||
|
||
/** | ||
* | ||
* @return HashMap of FastqParts and String | the first read | ||
*/ | ||
public FastqRead getRead1(){ | ||
return this.read1; | ||
} | ||
|
||
/** | ||
* | ||
* @return HashMap of FastqParts and String | the second read (only by pair-end) | ||
*/ | ||
public FastqRead getRead2(){ | ||
return this.read2; | ||
} | ||
|
||
/** | ||
* | ||
* @return int | number of mismatches in barcode/enzyme | ||
*/ | ||
public int getMismatch(){ | ||
return this.mismatch; | ||
} | ||
|
||
/** | ||
* | ||
* @return String | the comment on the cut of the reads | ||
*/ | ||
public String getComment(){ | ||
return this.sequenceComment; | ||
} | ||
|
||
} |
91 changes: 91 additions & 0 deletions
91
src/be/uzleuven/gc/logistics/GBSX/demultiplexer/model/SampleBarcodeCombination.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package be.uzleuven.gc.logistics.GBSX.demultiplexer.model; | ||
|
||
import be.uzleuven.gc.logistics.GBSX.utils.sampleBarcodeEnzyme.model.Sample; | ||
/** | ||
* | ||
* @author koen | ||
*/ | ||
public class SampleBarcodeCombination { | ||
|
||
/** | ||
* a combination of a sample, a barcode and enzyme, the mismatches (between sequence and barcode/enzyme) and the start location of the barcode in the sequence | ||
*/ | ||
|
||
private final Sample sample; | ||
private final String enzymeCutSite; | ||
private final int location; | ||
private final int mismatches; | ||
private final int lengthFoundBarcode; | ||
private final int lengthFoundEnzyme; | ||
/** | ||
* | ||
* @param sample Sample | the sample of this combination | ||
* @param enzymeCutSite String | the used enzyme cutsite | ||
* @param location int | the start location of the barcodeEnzyme | ||
* @param mismatches int | the amount of mismatches | ||
* @param lengthFoundBarcode int | length of the found barcode | ||
* @param lengthFoundEnzyme int | length of the found enzyme | ||
*/ | ||
public SampleBarcodeCombination(Sample sample, String enzymeCutSite, int location, int mismatches, int lengthFoundBarcode, int lengthFoundEnzyme){ | ||
this.sample = sample; | ||
this.enzymeCutSite = enzymeCutSite; | ||
this.location = location; | ||
this.mismatches = mismatches; | ||
this.lengthFoundBarcode = lengthFoundBarcode; | ||
this.lengthFoundEnzyme = lengthFoundEnzyme; | ||
} | ||
|
||
/** | ||
* | ||
* @return Sample | the sample of this combination | ||
*/ | ||
public Sample getSample(){ | ||
return this.sample; | ||
} | ||
|
||
/** | ||
* | ||
* @return String | the enzymeCutsite | ||
*/ | ||
public String getEnzymeCutsite(){ | ||
return this.enzymeCutSite; | ||
} | ||
|
||
/** | ||
* | ||
* @return int | the location of the barcode + enzyme in a sequence | ||
*/ | ||
public int getLocation(){ | ||
return this.location; | ||
} | ||
|
||
/** | ||
* | ||
* @return int | the amount of mismatches between the barcode + enzyme and the sequence | ||
*/ | ||
public int getMismatches(){ | ||
return this.mismatches; | ||
} | ||
|
||
/** | ||
* | ||
* @return int | the length of the found enzyme | ||
*/ | ||
public int getLengthFoundEnzyme(){ | ||
return this.lengthFoundEnzyme; | ||
} | ||
|
||
/** | ||
* | ||
* @return int | the lenght of the found barcode | ||
*/ | ||
public int getLengthFoundBarcode(){ | ||
return this.lengthFoundBarcode; | ||
} | ||
|
||
} |