Skip to content

Commit d04c6e4

Browse files
committed
Merge branch 'master' into java9
2 parents 519a4b7 + f7a2a16 commit d04c6e4

File tree

43 files changed

+708
-319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+708
-319
lines changed

CHANGELOG.md

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
BioJava 5.1.0
2+
=============
3+
### New feature
4+
* ABI tracer ported from legacy biojava, #769, thanks @MaxGreil
5+
6+
### Bug fixes
7+
* Performance improvement for secondary structure calculation, #789
8+
* Fixed issue #731
9+
* Improved alt locs docs and some fixes, #778
10+
* Jmol dep updated to 14.29.17
11+
* Fixed issue #712
12+
* Fixed issue #791
13+
* Fixed issue #797
14+
* Fixed issue #784
15+
16+
BioJava 5.0.2
17+
=============
18+
### Bug fixes
19+
* Fixed issue #770
20+
* Upgraded to latest mmtf-java 1.0.8
21+
22+
BioJava 5.0.1
23+
=============
24+
### Bug fixes
25+
* Fixed issue #767
26+
* Fixed issue #761
27+
* Pom fixes for mvn site
28+
* Some logging fixes
29+
130
BioJava 5.0.0
231
=============
332

@@ -239,3 +268,98 @@ BioJava 4.2.0 offers many new features, as well several bug-fixes.
239268
- provide methods for common distance matrix calculations and framework for user-defined distances
240269
- update the forester version to have the correct NJ tree constructor
241270
- correct some of the tree evaluator statistics.
271+
272+
BioJava 4.1.0
273+
=============
274+
275+
release date: June 24th 2015
276+
277+
### New Features:
278+
279+
- New algorithm for multiple structure alignments
280+
- Improved visualization of structural alignments in Jmol
281+
- Support for the ECOD protein classification
282+
- Better mmCIF support: limited write support, better parsing
283+
284+
BioJava 4.0.0
285+
=============
286+
287+
release date: January 30th 2015
288+
289+
### New Features:
290+
291+
- General
292+
- Consistent error logging. SLF4J is used for logging and provides adaptors for all major
293+
logging implementations. (many contributors, including @benjamintboyle and @josemduarte)
294+
- Improved handling of exceptions (@dmyersturnbull)
295+
- Removed deprecated methods
296+
- Expanded the BioJava tutorial (@andreasprlic, @josemduarte, and @sbliven)
297+
- Updated dependencies where applicable
298+
- Available on Maven Central (@andreasprlic and @heuermh)
299+
- biojava3-core
300+
- Improved Genbank parser, including support for feature records, qualifiers, and nested
301+
locations. (@paolopavan and @jgrzebyta)
302+
- biojava3-structure
303+
- Better support for crystallographic information, including crystallographic operators,
304+
unit cells, and protein-protein interfaces. (@josemduarte)
305+
- Better organization of downloaded structure files (set using the PDB_DIR and PDB_CACHE_DIR
306+
environmental variables) (@sbliven)
307+
- Better command-line tools for structure alignment (@sbliven)
308+
- New algorithm for symmetry detection in biological assemblies (@pwrose)
309+
- New algorithm for fast contact calculation, both intra-chain and inter-chain (@josemduarte)
310+
- Support for Accessible Surface Area (ASA) calculation through and implementation of
311+
the Shrake & Rupley algorithm, both single-thread and parallel (memory permitting) (@josemduarte)
312+
- Support for large structures (memory permitting) and multi-character chain IDs.
313+
- Default to mmCIF file format, as recommended by the wwPDB
314+
315+
This version is compatible with Java 6, 7, and 8.
316+
317+
### Upgrading
318+
Since we renamed all package names to be consistent across the whole project,
319+
there will be import errors when upgrading to this version. These can automatically get resolved
320+
by IDEs such as Eclipse or IntelliJ by selecting the Optimize Import menu item.
321+
322+
BioJava 3.1.0
323+
=============
324+
325+
release date: August 25th 2014
326+
327+
While most development is going towards the upcoming 4.0.0 release, this release provides
328+
bug fixes and a few new features:
329+
330+
- CE-CP version 1.4, with additional parameters
331+
- Update to SCOPe 2.04
332+
- Improvements in FASTQ parsing
333+
- Fix bugs in PDB parsing
334+
- Minor fixes in structure alignments
335+
336+
This version is compatible with Java 6 and 7.
337+
338+
BioJava 3.0.8
339+
=============
340+
341+
release date: March 25th 2014
342+
343+
New Features:
344+
345+
- New Genbank writer
346+
- New parser for Karyotype file from UCSC
347+
- New parser for Gene locations from UCSC
348+
- New parser for Gene names file from genenames.org
349+
- New module for Cox regression code for survival analysis
350+
- New calculation of accessible surface area (ASA)
351+
- New module for parsing .OBO files (ontologies)
352+
- Improved representation of SCOP and Berkeley-SCOP classifications
353+
354+
BioJava 3.0.7
355+
=============
356+
357+
release date: September 23rd 2013
358+
359+
New features:
360+
361+
- added a basic genbank parser
362+
- fixed a problem when translating codons with N
363+
- now can infer bonds in protein structures
364+
- added support to parse mmcif records for organism and expression system
365+
- many small bug fixes and improvements

biojava-aa-prop/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<parent>
33
<artifactId>biojava</artifactId>
44
<groupId>org.biojava</groupId>
5-
<version>5.1.0-SNAPSHOT</version>
5+
<version>5.1.1-SNAPSHOT</version>
66
</parent>
77
<modelVersion>4.0.0</modelVersion>
88
<artifactId>biojava-aa-prop</artifactId>
@@ -70,12 +70,12 @@
7070
<dependency>
7171
<groupId>org.biojava</groupId>
7272
<artifactId>biojava-core</artifactId>
73-
<version>5.1.0-SNAPSHOT</version>
73+
<version>5.1.1-SNAPSHOT</version>
7474
</dependency>
7575
<dependency>
7676
<groupId>org.biojava</groupId>
7777
<artifactId>biojava-structure</artifactId>
78-
<version>5.1.0-SNAPSHOT</version>
78+
<version>5.1.1-SNAPSHOT</version>
7979
</dependency>
8080

8181
<!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->

biojava-alignment/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>biojava</artifactId>
66
<groupId>org.biojava</groupId>
7-
<version>5.1.0-SNAPSHOT</version>
7+
<version>5.1.1-SNAPSHOT</version>
88
</parent>
99
<artifactId>biojava-alignment</artifactId>
1010
<name>biojava-alignment</name>
@@ -47,7 +47,7 @@
4747
<dependency>
4848
<groupId>org.biojava</groupId>
4949
<artifactId>biojava-core</artifactId>
50-
<version>5.1.0-SNAPSHOT</version>
50+
<version>5.1.1-SNAPSHOT</version>
5151
<scope>compile</scope>
5252
</dependency>
5353
<dependency>

biojava-alignment/src/test/java/org/biojava/nbio/alignment/TestSubOptimalMSA.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public void gapPenalty52() {
5555
Profile<DNASequence, NucleotideCompound> msa = Alignments
5656
.getMultipleSequenceAlignment(sequences, gapP);
5757

58-
assertEquals("TTGGGGCCTCTAAACGGGGTCTT\n"
59-
+ "TTGGGGCCTCTAAACGGG-TCTT\n"
60-
+ "TTGGGGC-TCTAA-CGGG-TCTT\n",
58+
assertEquals("TTGGGGCCTCTAAACGGGGTCTT" + System.lineSeparator()
59+
+ "TTGGGGCCTCTAAACGGG-TCTT" + System.lineSeparator()
60+
+ "TTGGGGC-TCTAA-CGGG-TCTT" + System.lineSeparator(),
6161
msa.toString());
6262

6363
ConcurrencyTools.shutdown();
@@ -71,9 +71,9 @@ public void gapPenaltyDefault() {
7171
.getMultipleSequenceAlignment(sequences, gapP);
7272

7373
// TODO test not passing (see issue 288 in github) - Aleix 03.2016
74-
assertEquals("TTGGGGCCTCTAAACGGGGTCTT\n"
75-
+ "TTGGGGCCTCTAAACGGG-TCTT\n"
76-
+ "TTGGGGC-TCTAA-CGGG-TCTT\n",
74+
assertEquals("TTGGGGCCTCTAAACGGGGTCTT" + System.lineSeparator()
75+
+ "TTGGGGCCTCTAAACGGG-TCTT" + System.lineSeparator()
76+
+ "TTGGGGC-TCTAA-CGGG-TCTT" + System.lineSeparator(),
7777
msa.toString());
7878

7979
ConcurrencyTools.shutdown();

biojava-alignment/src/test/java/org/biojava/nbio/phylo/TestForesterWrapper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public void testMSAconversion() throws Exception {
7272
String expected = "";
7373
for (ProteinSequence proteinSequence : proteinSequences.values()) {
7474
msa.addAlignedSequence(proteinSequence);
75-
expected += ">" + proteinSequence.getOriginalHeader() + "\n"
76-
+ proteinSequence.toString() + "\n";
75+
expected += ">" + proteinSequence.getOriginalHeader() + System.lineSeparator()
76+
+ proteinSequence.toString() + System.lineSeparator();
7777
}
7878

7979
// Convert the biojava MSA to a FASTA String
@@ -95,8 +95,8 @@ public String getHeader(ProteinSequence sequence) {
9595

9696
StringBuilder sb = new StringBuilder();
9797
for (int i = 0; i < fMsa.getNumberOfSequences(); i++) {
98-
sb.append(">" + fMsa.getIdentifier(i) + "\n");
99-
sb.append(fMsa.getSequenceAsString(i) + "\n");
98+
sb.append(">" + fMsa.getIdentifier(i) + System.lineSeparator());
99+
sb.append(fMsa.getSequenceAsString(i) + System.lineSeparator());
100100
}
101101
String forester = sb.toString();
102102

biojava-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>biojava</artifactId>
55
<groupId>org.biojava</groupId>
6-
<version>5.1.0-SNAPSHOT</version>
6+
<version>5.1.1-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>biojava-core</artifactId>

biojava-core/src/main/java/org/biojava/nbio/core/sequence/loader/UniprotProxySequenceReader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ public class UniprotProxySequenceReader<C extends Compound> implements ProxySequ
7676
private static final String TREMBLID_PATTERN = "[A-NR-Z][0-9]([A-Z][A-Z0-9]{2}[0-9]){1,2}";
7777
public static final Pattern UP_AC_PATTERN = Pattern.compile("(" + SPID_PATTERN + "|" + TREMBLID_PATTERN + ")");
7878

79-
private static String uniprotbaseURL = "http://www.uniprot.org"; //"http://pir.uniprot.org";
79+
public static final String DEFAULT_UNIPROT_BASE_URL = "https://www.uniprot.org";
80+
81+
private static String uniprotbaseURL = DEFAULT_UNIPROT_BASE_URL;
8082
private static String uniprotDirectoryCache = null;
8183
private String sequence;
8284
private CompoundSet<C> compoundSet;

biojava-genome/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>biojava</artifactId>
55
<groupId>org.biojava</groupId>
6-
<version>5.1.0-SNAPSHOT</version>
6+
<version>5.1.1-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>biojava-genome</artifactId>
@@ -85,13 +85,13 @@
8585
<dependency>
8686
<groupId>org.biojava</groupId>
8787
<artifactId>biojava-core</artifactId>
88-
<version>5.1.0-SNAPSHOT</version>
88+
<version>5.1.1-SNAPSHOT</version>
8989
<scope>compile</scope>
9090
</dependency>
9191
<dependency>
9292
<groupId>org.biojava</groupId>
9393
<artifactId>biojava-alignment</artifactId>
94-
<version>5.1.0-SNAPSHOT</version>
94+
<version>5.1.1-SNAPSHOT</version>
9595
<scope>compile</scope>
9696
</dependency>
9797
<dependency>

biojava-integrationtest/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>biojava</artifactId>
66
<groupId>org.biojava</groupId>
7-
<version>5.1.0-SNAPSHOT</version>
7+
<version>5.1.1-SNAPSHOT</version>
88
</parent>
99
<artifactId>biojava-integrationtest</artifactId>
1010
<packaging>jar</packaging>
@@ -28,7 +28,7 @@
2828
<dependency>
2929
<groupId>org.biojava</groupId>
3030
<artifactId>biojava-structure</artifactId>
31-
<version>5.1.0-SNAPSHOT</version>
31+
<version>5.1.1-SNAPSHOT</version>
3232
</dependency>
3333
<!-- logging dependencies (managed by parent pom, don't set versions or scopes here) -->
3434
<dependency>

biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/io/TestBioassemblies.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,11 @@ public void test4OPJ() throws IOException, StructureException {
145145
assertEquals(3, multiModelBioAssemblies.get(0).getPolyChains(0).size() + multiModelBioAssemblies.get(0).getPolyChains(1).size());
146146
// 3 chains in flattened structure in bioassembly 1
147147
assertEquals(3, flattenedBioAssemblies.get(0).getPolyChains().size());
148-
148+
149149
// 3 chains divided into 2 models in bioassembly 2
150-
assertEquals(3, multiModelBioAssemblies.get(1).getPolyChains(0).size() + multiModelBioAssemblies.get(0).getPolyChains(1).size());
150+
assertEquals(3, multiModelBioAssemblies.get(1).getPolyChains(0).size() + multiModelBioAssemblies.get(1).getPolyChains(1).size());
151151
// 3 chains in flattened structure in bioassembly 2
152152
assertEquals(3, flattenedBioAssemblies.get(1).getPolyChains().size());
153-
154153

155154
// chain ids and names don't contain underscores in multimodel
156155
for (int modelIdx = 0; modelIdx<multiModelBioAssemblies.get(0).nrModels(); modelIdx++) {

0 commit comments

Comments
 (0)