Skip to content

Commit a819c03

Browse files
dicknetherlandsandreasprlic
authored andcommitted
/* A DNA sequence */
1 parent 7d1eb06 commit a819c03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_wikis/BioJava3:HowTo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ All the examples in this section require the biojava-dna module.
6969
` Collections.reverse(mySeq.subList(2,4)); // Java Collections API.`
7070
`   `
7171
` // Do the same, 1-indexed bio style?`
72-
` Collections.reverse(mySeq.subList_bio(3,5));`
72+
` Collections.reverse(((SymbolList)mySeq).subList_bio(3,5));`
7373

7474
### Editing the sequence
7575

@@ -78,7 +78,7 @@ All the examples in this section require the biojava-dna module.
7878
` mySeq.subList(1,3).clear();`
7979
` `
8080
` // Remove only 2nd base, bio-style.`
81-
` mySeq.remove_bio(2);`
81+
` ((SymbolList)mySeq).remove_bio(2);`
8282
` `
8383
` // Get another sequence and insert it after the 1st base.`
8484
` List`<Symbol>` otherSeq = SymbolListFormatter.parseSymbolList("GGGG");`

_wikis/BioJava3:HowTo.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ All the examples in this section require the biojava-dna module.
5959
Collections.reverse(mySeq.subList(2,4)); // Java Collections API.
6060
6161
// Do the same, 1-indexed bio style?
62-
Collections.reverse(mySeq.subList_bio(3,5));
62+
Collections.reverse(((SymbolList)mySeq).subList_bio(3,5));
6363
6464
=== Editing the sequence ===
6565

@@ -68,7 +68,7 @@ All the examples in this section require the biojava-dna module.
6868
mySeq.subList(1,3).clear();
6969
7070
// Remove only 2nd base, bio-style.
71-
mySeq.remove_bio(2);
71+
((SymbolList)mySeq).remove_bio(2);
7272
7373
// Get another sequence and insert it after the 1st base.
7474
List<Symbol> otherSeq = SymbolListFormatter.parseSymbolList("GGGG");

0 commit comments

Comments
 (0)