File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3131import java .net .URL ;
3232import java .util .ArrayList ;
3333import java .util .List ;
34+ import java .util .zip .GZIPInputStream ;
3435
3536import org .biojava .nbio .structure .Group ;
3637import org .biojava .nbio .structure .ResidueNumber ;
@@ -95,8 +96,11 @@ public static List<SecStrucState> fetch(String pdb,
9596 Structure structure , boolean assign )
9697 throws IOException , StructureException {
9798
98- InputStream in = new URL ("http://www.rcsb.org/pdb/files/" +
99- pdb +".dssp" ).openStream ();
99+ URL url = new URL ("http://files.rcsb.org/dssp/" +
100+ pdb .toLowerCase ().substring (1 , 3 ) + "/" +
101+ pdb .toLowerCase () + "/" +
102+ pdb + ".dssp.gz" );
103+ InputStream in = new GZIPInputStream (url .openStream ());
100104 Reader read = new InputStreamReader (in );
101105 BufferedReader reader = new BufferedReader (read );
102106 return generalParse (reader , structure , assign );
You can’t perform that action at this time.
0 commit comments