mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 21:39:55 +00:00
docs: Add examples of alignment getters
This commit is contained in:
parent
341faa45e3
commit
6b2bd018e2
1 changed files with 18 additions and 0 deletions
|
@ -39,6 +39,24 @@ human2 == bovine
|
||||||
human2 == human
|
human2 == human
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Alignment reconstruction
|
||||||
|
|
||||||
|
Just like [Sequence reconstruction](@ref), alignments can also be reconstructed
|
||||||
|
from `Haplotype`s using the extension of the [`BioAlignments.alignment`](@ref)
|
||||||
|
function.
|
||||||
|
|
||||||
|
```@repl call_variants
|
||||||
|
human_alignment = alignment(bos_human_haplotype)
|
||||||
|
human_alignment == bos_human_alignment
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively, you can get the information in CIGAR format using the
|
||||||
|
extension of the [`BioAlignments.cigar`](@ref) function.
|
||||||
|
|
||||||
|
```@repl call_variants
|
||||||
|
cigar(bos_human_haplotype)
|
||||||
|
```
|
||||||
|
|
||||||
## Reference switching
|
## Reference switching
|
||||||
|
|
||||||
All variations within a haplotype can be mapped to a new reference sequence
|
All variations within a haplotype can be mapped to a new reference sequence
|
||||||
|
|
Loading…
Reference in a new issue