| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ public static void main(String[] args) throws Exception { | |||
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | 38 | 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)); | ||
| 40 | 40 | ProteinSequence seq = FastaReaderHelper.readFastaProteinSequence(uniprotFasta.openStream()).get(uniProtId); | |
| 41 | 41 | System.out.printf("id : %s %s%s%s", uniProtId, seq, System.getProperty("line.separator"), seq.getOriginalHeader()); | |
| 42 | 42 | System.out.println(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ Here an example that parses a UniProt FASTA file into a protein sequence. | |||
| 13 | 13 | ||
| 14 | 14 | ```java | |
| 15 | 15 | 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)); | ||
| 17 | 17 | ProteinSequence seq = FastaReaderHelper.readFastaProteinSequence(uniprotFasta.openStream()).get(uniProtId); | |
| 18 | 18 | System.out.printf("id : %s %s%s%s", uniProtId, seq, System.getProperty("line.separator"), seq.getOriginalHeader()); | |
| 19 | 19 | System.out.println(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ An example for how to parse a sequence from a String and using the Translation e | |||
| 63 | 63 | ||
| 64 | 64 | // define the Ambiguity Compound Sets | |
| 65 | 65 | AmbiguityDNACompoundSet ambiguityDNACompoundSet = AmbiguityDNACompoundSet.getDNACompoundSet(); | |
| 66 | - CompoundSet<NucleotideCompound> nucleotideCompoundSet = AmbiguityRNACompoundSet.getDNACompoundSet(); | ||
| 66 | + CompoundSet<NucleotideCompound> nucleotideCompoundSet = AmbiguityRNACompoundSet.getRNACompoundSet(); | ||
| 67 | 67 | ||
| 68 | 68 | FastaReader<DNASequence, NucleotideCompound> proxy = | |
| 69 | 69 | new FastaReader<DNASequence, NucleotideCompound>( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments