Skip to content

Commit 8026d8f

Browse files
paolopavanunknown
authored andcommitted
Comments and credits.
1 parent 5bea7f3 commit 8026d8f

File tree

13 files changed

+111
-101
lines changed

13 files changed

+111
-101
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/search/io/Hit.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
71
package org.biojava.nbio.core.search.io;
82

93
import java.util.Iterator;
104
import java.util.List;
115
import org.biojava.nbio.core.sequence.template.Sequence;
126

137
/**
14-
*
15-
* @author pavanpa
8+
* This class models a search Hit.
9+
* You will retrieve a list of this using iterator of a Result
10+
* Designed by Paolo Pavan.
11+
* You may want to find my contacts on Github and LinkedIn for code info
12+
* or discuss major changes.
13+
* https://github.com/paolopavan
14+
*
15+
* @author Paolo Pavan
1616
*/
17+
1718
public abstract class Hit implements Iterable<Hsp>{
1819
private final int hitNum;
1920
private final String hitId;

biojava-core/src/main/java/org/biojava/nbio/core/search/io/Hsp.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
71
package org.biojava.nbio.core.search.io;
82

93
import java.util.ArrayList;
@@ -24,9 +18,17 @@
2418
import org.biojava.nbio.core.sequence.template.Sequence;
2519

2620
/**
27-
*
28-
* @author pavanpa
21+
* This class models a search Hsp.
22+
* You will retrieve a list of this using iterator of a Hit
23+
*
24+
* Designed by Paolo Pavan.
25+
* You may want to find my contacts on Github and LinkedIn for code info
26+
* or discuss major changes.
27+
* https://github.com/paolopavan
28+
*
29+
* @author Paolo Pavan
2930
*/
31+
3032
public abstract class Hsp <S extends Sequence<C>, C extends Compound> {
3133
private Integer hspNum;
3234
private Double hspBitScore;

biojava-core/src/main/java/org/biojava/nbio/core/search/io/Result.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
71
package org.biojava.nbio.core.search.io;
82

93
import java.util.HashMap;
@@ -13,10 +7,17 @@
137
import org.biojava.nbio.core.sequence.template.Sequence;
148

159
/**
16-
* This class models a search result.
10+
* This class models a search result.
1711
* You will find one of this for every query sequence specified in the run.
18-
* @author pavanpa
12+
*
13+
* Designed by Paolo Pavan.
14+
* You may want to find my contacts on Github and LinkedIn for code info
15+
* or discuss major changes.
16+
* https://github.com/paolopavan
17+
*
18+
* @author Paolo Pavan
1919
*/
20+
2021
public abstract class Result implements Iterable<Hit>{
2122
private String program;
2223
private String version;
@@ -116,7 +117,7 @@ public String getProgramSpecificParameter(String key) {
116117
return programSpecificParameters.get(key);
117118
}
118119
/**
119-
* returns the reference th the original and whole sequence used to query the database.
120+
* returns the reference to the original and whole sequence used to query the database.
120121
* Available only if the ResultFactory implements setQueryReferences and
121122
* it was used before the parsing with SearchIO
122123
* @return Sequence object

biojava-core/src/main/java/org/biojava/nbio/core/search/io/ResultFactory.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
61
package org.biojava.nbio.core.search.io;
72

83
import java.io.File;
94
import java.util.List;
105

116
/**
12-
*
13-
* @author pavanpa
7+
* Designed by Paolo Pavan.
8+
* You may want to find my contacts on Github and LinkedIn for code info
9+
* or discuss major changes.
10+
* https://github.com/paolopavan
11+
*
12+
* @author Paolo Pavan
1413
*/
14+
1515
public interface ResultFactory {
1616
/**
1717
* returns a list of file extensions associated to this ResultFactory

biojava-core/src/main/java/org/biojava/nbio/core/search/io/SearchIO.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
71
package org.biojava.nbio.core.search.io;
82

93
import java.io.File;
@@ -13,9 +7,14 @@
137
import java.util.ServiceLoader;
148

159
/**
16-
*
17-
* @author pavanpa
10+
* Designed by Paolo Pavan.
11+
* You may want to find my contacts on Github and LinkedIn for code info
12+
* or discuss major changes.
13+
* https://github.com/paolopavan
14+
*
15+
* @author Paolo Pavan
1816
*/
17+
1918
public class SearchIO implements Iterable<Result>{
2019
static private HashMap<String,ResultFactory> extensionFactoryAssociation;
2120

biojava-core/src/main/java/org/biojava/nbio/core/search/io/blast/BlastHitBuilder.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
61
package org.biojava.nbio.core.search.io.blast;
72

83

94
import org.biojava.nbio.core.search.io.Hsp;
105
import java.util.List;
116
import org.biojava.nbio.core.sequence.template.Sequence;
127

13-
8+
/**
9+
* Designed by Paolo Pavan.
10+
* You may want to find my contacts on Github and LinkedIn for code info
11+
* or discuss major changes.
12+
* https://github.com/paolopavan
13+
*
14+
* @author Paolo Pavan
15+
*/
1416
public class BlastHitBuilder {
1517
private int hitNum;
1618
private String hitId;

biojava-core/src/main/java/org/biojava/nbio/core/search/io/blast/BlastHspBuilder.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
61
package org.biojava.nbio.core.search.io.blast;
72

3+
/**
4+
* Designed by Paolo Pavan.
5+
* You may want to find my contacts on Github and LinkedIn for code info
6+
* or discuss major changes.
7+
* https://github.com/paolopavan
8+
*
9+
* @author Paolo Pavan
10+
*/
811

912
public class BlastHspBuilder {
1013
private int hspNum;

biojava-core/src/main/java/org/biojava/nbio/core/search/io/blast/BlastResult.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
71
package org.biojava.nbio.core.search.io.blast;
82

93
import org.biojava.nbio.core.search.io.Hit;
@@ -13,9 +7,16 @@
137
import org.biojava.nbio.core.sequence.template.Sequence;
148

159
/**
16-
* This class models a Blast/Blast plus result.
10+
* This class models a Blast/Blast plus result.
1711
* You will find one of this for every query sequence specified in the run.
18-
* @author pavanpa
12+
*
13+
* Designed by Paolo Pavan.
14+
* You may want to find my contacts on Github and LinkedIn for code info
15+
* or discuss major changes.
16+
* https://github.com/paolopavan
17+
*
18+
* @author Paolo Pavan
19+
*
1920
*/
2021
public class BlastResult extends Result{
2122
public BlastResult(String program, String version, String reference, String dbFile, HashMap<String, String> programSpecificParameters, int iterationNumber, String queryID, String queryDef, int queryLength, List<Hit> hits, Sequence querySequence) {

biojava-core/src/main/java/org/biojava/nbio/core/search/io/blast/BlastResultBuilder.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
71
package org.biojava.nbio.core.search.io.blast;
82

93
import org.biojava.nbio.core.search.io.Hit;
104
import java.util.HashMap;
115
import java.util.List;
126
import org.biojava.nbio.core.sequence.template.Sequence;
137

8+
/**
9+
* Designed by Paolo Pavan.
10+
* You may want to find my contacts on Github and LinkedIn for code info
11+
* or discuss major changes.
12+
* https://github.com/paolopavan
13+
*
14+
* @author Paolo Pavan
15+
*/
1416

1517
public class BlastResultBuilder {
1618
private String program;

biojava-core/src/main/java/org/biojava/nbio/core/search/io/blast/BlastTabularParser.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
71
package org.biojava.nbio.core.search.io.blast;
82

93
import java.io.File;
@@ -22,10 +16,14 @@
2216
import org.biojava.nbio.core.search.io.ResultFactory;
2317

2418
/**
25-
*
19+
* Designed by Paolo Pavan.
20+
* You may want to find my contacts on Github and LinkedIn for code info
21+
* or discuss major changes.
22+
* https://github.com/paolopavan
23+
*
2624
* @author Paolo Pavan
27-
* https://it.linkedin.com/pub/paolo-pavan/6/15a/956
2825
*/
26+
2927
public class BlastTabularParser implements ResultFactory {
3028
private final String blastReference =
3129
"Zheng Zhang, Scott Schwartz, Lukas Wagner, and Webb Miller (2000), A greedy algorithm for aligning DNA sequences&quot;, J Comput Biol 2000; 7(1-2):203-14.";

0 commit comments

Comments
 (0)