Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed May 16, 2024
1 parent a9c64ed commit 8ad98ee
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,22 @@ This data structure can be used to quickly approximate distances between sequenc
```julia
julia> using VectorizedKmers, BioSequences

julia> kmer_array = count_kmers(dna"ACCGGGTTTT", 1)
KmerArray{4, 1, Int64, Vector{Int64}} with size (4,)
julia> kmer_array = count_kmers(dna"AACCGGTT", 2)
KmerArray{4, 2, Int64, Matrix{Int64}} with size (4, 4)

julia> kmer_array |> values
4-element Vector{Int64}:
1
2
3
4

julia> count_kmers(dna"AATT", 2) |> values # 2-mers of AATT
4×4 Matrix{Int64}:
1 0 0 0
0 0 0 0
0 0 0 0
1 0 0 1

julia> count_kmers(aa"AY", 1) |> values
20-element Vector{Int64}:
1
0
0
0
1
0
1 1 0 0
0 1 1 0
0 0 1 1

julia> kmer_array[dna"AC"]
1

julia> kmer_array[dna"CA"]
0
```
For more examples, see the [documentation](https://anton083.github.io/VectorizedKmers.jl/stable/).

## Limitations

Expand Down

0 comments on commit 8ad98ee

Please sign in to comment.