You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that you don't have to store the graph on disk at all, you can simply pipe it into the local aligner:
198
+
*`vg giraffe` is designed to be fast for highly accurate short reads, against graphs with haplotype information.
199
+
*`vg map` is a general-purpose read mapper.
200
+
*`vg mpmap` does "munti-path" mapping, to allow describing local alignment uncertainty. [This is useful for transcriptomics.](#Transcriptomic-analysis)
202
201
203
-
<!-- !test check Align a string to a piped graph -->
202
+
#### Mapping with `vg giraffe`
203
+
204
+
To use `vg giraffe` to map reads, you will first need to prepare indexes. This is best done using `vg autoindex`. In order to get `vg autoindex` to use haplotype information from a VCF file, you can give it the VCF and the associated linear reference directly.
205
+
206
+
<!-- !test check Simulate and map back with surjection with Giraffe -->
Most commands allow the streaming of graphs into and out of`vg`.
218
+
[More information on using `vg girafe` can be found on the`vg` wiki.](https://github.com/vgteam/vg/wiki/Mapping-short-reads-with-Giraffe)
209
219
210
-
### Mapping
220
+
####Mapping with `vg map`
211
221
212
222
If your graph is large, you want to use `vg index` to store the graph and `vg map` to align reads. `vg map` implements a kmer based seed and extend alignment model that is similar to that used in aligners like novoalign or MOSAIK. First an on-disk index is built with `vg index` which includes the graph itself and kmers of a particular size. When mapping, any kmer size shorter than that used in the index can be employed, and by default the mapper will decrease the kmer size to increase sensitivity when alignment at a particular _k_ fails.
213
223
214
-
<!-- !test check Simulate and map back with surjection -->
224
+
<!-- !test check Simulate and map back with surjection with map -->
215
225
```sh
216
226
# construct the graph (paths below assume running from `vg/test` directory)
This will produce alignments in the multipath format. For more information on the multipath alignment format and `vg mpmap` see [wiki page on mpmap](https://github.com/vgteam/vg/wiki/Multipath-alignments-and-vg-mpmap). Running the two commands on the small example data using 4 threads should on most machines take less than a minute.
383
393
394
+
### Alignment
395
+
396
+
If you have a small graph, you can align a sequence to the whole graph, using a full-length partial order alignment:
0 commit comments