-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME.samtools_alignment
More file actions
47 lines (23 loc) · 1.12 KB
/
README.samtools_alignment
File metadata and controls
47 lines (23 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Where does my read ACTCTCTG actually align?
If it aligns like so ...
ACTCTCTG
||||||||
---------ACTCTCTG---
12345678901234567890
And you want to know the FIRST position of your read (say the beginning of an insertion)
samtools will say it aligned FORWARD at position 10 and this is the actual position.
If you wanted to know the LAST position of your read (say the ending of an insertion)
samtools will still say it aligned forward at position 10
but you would need to add the length minus 1 to get the location of G.
If it aligns REVERSE COMPLEMENTED like so ...
CAGAGAGT
||||||||
---------CAGAGAGT---
12345678901234567890
And you want to know the FIRST position of your read (say the beginning of an insertion)
samtools will say it aligned REVERSE COMPLEMENTED at position 10
The actual position of the beginning of your read is
this position plus the length minus 1.
If you wanted to know the LAST position of your read (say the ending of an insertion)
samtools will still say it aligned REVERSE COMPLEMENTED at position 10
and this is the actual position of the end of your read.