Comments (2)
It looks like path naming is partly broken. I think your post includes everything I'll need to test.
from vg.
First I set things up in the same way:
➜ test git:(master) ✗ vg construct -r tiny/tiny.fa >t.vg
➜ test git:(master) ✗ vg index -s -k 11 t.vg
It looks like the problem is that introducing the SNP into the first few bases of the read doesn't result in an alignment that detects the SNP. Note that the first edit in the mapping has "to_length" : 2
. "from_length" : 0
is implied. This is equivalent to an insertion, but when we have it at the start or end of the alignment it means "soft clip".
➜ test git:(master) ✗ vg map -s CGAATAAGGCTTGGAAATTTTCTGGAGTTCTATTATATTCCAACTCTCTT -Q new t.vg | vg view -a - | jq .
{
"sequence": "CGAATAAGGCTTGGAAATTTTCTGGAGTTCTATTATATTCCAACTCTCTT",
"path": {
"mapping": [
{
"position": {
"offset": 2,
"node_id": 1
},
"edit": [
{
"to_length": 2
},
{
"from_length": 47,
"to_length": 47
},
{
"to_length": 1
}
]
}
]
},
"name": "new",
"score": 94
}
So there isn't any variation reported by the alignment. This is typical and actually a big part of why single reference-based alignment has problems for stuff like allele specific expression.
Inclusion will work provided we can align through the variant. So, I insert a SNP later on in the read.
➜ test git:(master) ✗ vg construct -r tiny/tiny.fa >t.vg
➜ test git:(master) ✗ vg index -s -k 11 t.vg
➜ test git:(master) ✗ vg map -s CAAATAAGGCTTGGAAATGTTCTGGAGTTCTATTATATTCCAACTCTCTT -Q new t.vg | vg mod -i - t.vg | vg view -
H HVN:Z:1.0
S 2 CAAATAAGGCTTGGAAAT
P 2 x + 18M
L 2 - 4 + 0M
L 2 - 6 + 0M
S 4 T
P 4 x + 1M
L 4 - 5 + 0M
S 5 TTCTGGAGTTCTATTATATTCCAACTCTCTG
P 5 x + 31M
S 6 G
P 6 new + 1M
L 6 - 5 + 0M
from vg.
Related Issues (20)
- Low-complexity pruning is slow in surjection
- Turn off surjection anchor limit by default
- Bump necessary magic numbers for long-read index types HOT 1
- vg autoindex --workflow mpmap HOT 1
- GAF nodes do not correspond to VCF nodes HOT 3
- Fastq analysis in euka HOT 2
- Protobuf errors mapping HOT 4
- vg augment crashes in combination with giraffe .gam outputs HOT 5
- when i do the code :vg stats -a var1.gam > var1.stats ,show me a bug HOT 2
- vg surject and pack fail on GraphAligner produced .gam HOT 4
- About the usage of vg deconstruct HOT 5
- Right method to annotate genes on pangenome graph HOT 1
- vg call report missing allele HOT 2
- vg call error HOT 2
- How do different methods affect precision? HOT 4
- Giraffe alignment is very slow and produces warning[vg::Watchdog] messages unless rescue is disabled HOT 12
- Giraffe needs to better deal with systems where multiple processes opening the distance index causes slowdowns
- Any option like BWA MEM '-C'?
- vg convert failes while converting gbz to xg with signal 6 error HOT 5
- Release vg v1.60.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vg.