Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add vim coda to rosalind example files
- Loading branch information
Paul Cochrane
committed
Feb 28, 2015
1 parent
f59fdeb
commit 1edd74c
Showing
43 changed files
with
51 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,5 @@ | |
| say @A».&afrq; | ||
|
|
||
| # 0.532 0.75 0.914 | ||
| # vim: ft=perl6 | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,4 +21,4 @@ | |
|
|
||
| say .key, ': ', @profile[.value] for enum <A C G T>; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,4 @@ | |
| say @line.join if 1 < ([+] @line) < @dna-1; | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,4 +21,4 @@ | |
| $line ~~ s/\( (0+) \)/$0/; | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,3 +6,5 @@ | |
| say $/[0].Str | ||
| } | ||
| } | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| use v6; | ||
|
|
||
| <A C G T>.map({ +.comb(/$^symbol/) }).say given slurp; | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| say get.comb.bag<A C G T>; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,5 +18,4 @@ (:$dna, :$gc-content) | |
|
|
||
| say @B; | ||
|
|
||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ | |
|
|
||
| say @fib[$n-1]; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,5 +8,4 @@ | |
|
|
||
| say [+] @population; | ||
|
|
||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,4 @@ | |
| if $a.value.substr(*-3) eq $b.value.substr(0, 3); | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ | |
|
|
||
| say 2 * [+] <1 1 1 3/4 1/2 0> Z* $*IN.get.split: " "; | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| use v6; | ||
|
|
||
| say qx{python -c 'import this'}; | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,4 +28,4 @@ ($a, $b) | |
| } | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,4 @@ | |
| take ~.[0].subst(/\n/,'', :g); | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,4 @@ | |
| } | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,4 +32,4 @@ ($rna) | |
|
|
||
| say mrna $*IN.get; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,4 +15,4 @@ | |
| take $climbs + $descents; | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,4 +35,4 @@ ($dna) | |
|
|
||
| .say for orf $*IN.get; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |
|
|
||
| say [*] map { [*] 1 .. $rna.comb(/$_/).elems }, <U C>; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,5 +14,4 @@ (:$dna, :$gc-content) | |
|
|
||
| say @B».fmt: "%.3f"; | ||
|
|
||
| # vim: ft=perl6 | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,4 +33,4 @@ ($n, $k) | |
| } | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| use v6; | ||
|
|
||
| .flip.trans('ACGT' => 'TGCA').say given slurp; | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| use v6; | ||
|
|
||
| .trans('T' => 'U').say given slurp; | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ | |
|
|
||
| say map { 2*$^x*(1-$x) }, get.split(' ')».Num; | ||
|
|
||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,4 +31,4 @@ | |
|
|
||
| say max :by(*.chars), map &find-protein, @L; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,4 +33,4 @@ (@weight, :$accuracy = .01) | |
| } | ||
| print spec $*IN.lines; | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,4 @@ | |
| take $pos = $/.from + 1; | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,5 +25,4 @@ | |
|
|
||
| show-edges suffix-tree suffixes get; | ||
|
|
||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,4 +14,4 @@ | |
| say $transitions/$transversions; | ||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,4 +51,4 @@ sub trie { | |
|
|
||
| __END__ | ||
|
|
||
| # vim: ft=perl6 | ||
| # vim: expandtab shiftwidth=4 ft=perl6 | ||