Skip to content

Commit 59e8365

Browse files
committed
Fix broken examples
1 parent 0eece0d commit 59e8365

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

alignment/smithwaterman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void main(String[] args) throws Exception {
3636
}
3737

3838
private static ProteinSequence getSequenceForId(String uniProtId) throws Exception {
39-
URL uniprotFasta = new URL(String.format("http://www.uniprot.org/uniprot/%s.fasta", uniProtId));
39+
URL uniprotFasta = new URL(String.format("https://www.uniprot.org/uniprot/%s.fasta", uniProtId));
4040
ProteinSequence seq = FastaReaderHelper.readFastaProteinSequence(uniprotFasta.openStream()).get(uniProtId);
4141
System.out.printf("id : %s %s%s%s", uniProtId, seq, System.getProperty("line.separator"), seq.getOriginalHeader());
4242
System.out.println();

core/readwrite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Here an example that parses a UniProt FASTA file into a protein sequence.
1313

1414
```java
1515
public static ProteinSequence getSequenceForId(String uniProtId) throws Exception {
16-
URL uniprotFasta = new URL(String.format("http://www.uniprot.org/uniprot/%s.fasta", uniProtId));
16+
URL uniprotFasta = new URL(String.format("https://www.uniprot.org/uniprot/%s.fasta", uniProtId));
1717
ProteinSequence seq = FastaReaderHelper.readFastaProteinSequence(uniprotFasta.openStream()).get(uniProtId);
1818
System.out.printf("id : %s %s%s%s", uniProtId, seq, System.getProperty("line.separator"), seq.getOriginalHeader());
1919
System.out.println();

core/translating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ An example for how to parse a sequence from a String and using the Translation e
6363

6464
// define the Ambiguity Compound Sets
6565
AmbiguityDNACompoundSet ambiguityDNACompoundSet = AmbiguityDNACompoundSet.getDNACompoundSet();
66-
CompoundSet<NucleotideCompound> nucleotideCompoundSet = AmbiguityRNACompoundSet.getDNACompoundSet();
66+
CompoundSet<NucleotideCompound> nucleotideCompoundSet = AmbiguityRNACompoundSet.getRNACompoundSet();
6767

6868
FastaReader<DNASequence, NucleotideCompound> proxy =
6969
new FastaReader<DNASequence, NucleotideCompound>(

0 commit comments

Comments
 (0)