-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better documentation. Fixed testing of swig bindings. Added examples …
…for swig bindings.
- Loading branch information
Guillaume Marcais
committed
Dec 18, 2014
1 parent
339afaf
commit 5d3d057
Showing
11 changed files
with
90 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Simple examples on how to implement (simplified versions of) 'jellyfish dump' and 'jellyfish query' in Python, Ruby and Perl. |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /usr/bin/env perl | ||
|
||
use jellyfish; | ||
|
||
my $mf = jellyfish::ReadMerFile->new($ARGV[0]); | ||
while($mf->next_mer) { | ||
print($mf->mer, " ", $mf->count, "\n"); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /usr/bin/env python | ||
|
||
import jellyfish | ||
import sys | ||
|
||
mf = jellyfish.ReadMerFile(sys.argv[1]) | ||
for mer, count in mf: | ||
print("%s %d" % (mer, count)) |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /usr/bin/env ruby | ||
|
||
require 'jellyfish' | ||
|
||
mf = Jellyfish::ReadMerFile.new(ARGV[0]) | ||
mf.each { |mer, count| | ||
print(mer, " ", count, "\n") | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /usr/bin/env perl | ||
|
||
use jellyfish; | ||
|
||
my $qf = jellyfish::QueryMerFile->new(shift @ARGV); | ||
for my $s (@ARGV) { | ||
print($s, " ", $qf->get(jellyfish::MerDNA->new($s)), "\n"); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /usr/bin/env python | ||
|
||
import jellyfish | ||
import sys | ||
|
||
qf = jellyfish.QueryMerFile(sys.argv[1]) | ||
for str in sys.argv[2:]: | ||
print("%s %d" % (str, qf[jellyfish.MerDNA(str)])) | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /usr/bin/env ruby | ||
|
||
require 'jellyfish' | ||
|
||
qf = Jellyfish::QueryMerFile.new(ARGV[0]) | ||
ARGV[1..-1].each { |s| | ||
print(s, " ", qf[Jellyfish::MerDNA.new(s)], "\n") | ||
} | ||
|
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