Minimal representations of DNA and RNA genetic sequences using BitArray
s in Julia.
The current release can be installed from the Julia REPL with:
pkg> add GeneticBitArrays
The development version (master branch) can be installed with:
pkg> add GeneticBitArrays#master
Input using String
, Vector{Char}
with nucleotides indicated by their IUPAC code. You may also construct a sequence with a 4 x n BitArray
- the same way sequences are represented internally with this package.
julia> x = DNASeq("NVHMDRWABSYCKGT-")
16nt DNA sequence
NVHMDRWABSYCKGT-
julia> x.data
4×16 BitArray{2}:
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
- For a full featured package for biological sequences see BioSequences.jl.