-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
From @sjackman on February 26, 2015 17:51
The read ID output by wgsim does not include the orientation of the read, is_flip
. It would be really useful to include the orientation.
A read ID currently has six fields separated by underscores
@0_80_129_0:0:0_0:0:0_e/1
Can we add a seventh field that specifies 1
for reverse complement and 0
otherwise? I'd be happy to submit a pull request if you agree.
@0_80_129_0:0:0_0:0:0_e_0/1
or @0_80_129_0:0:0_0:0:0_e_1/1
https://github.com/samtools/samtools/blob/develop/misc/wgsim.c#L345-L347
fprintf(fpo[j], "@%s_%u_%u_%d:%d:%d_%d:%d:%d_%llx/%d\n", ks->name.s, ext_coor[0]+1, ext_coor[1]+1,
n_err[0], n_sub[0], n_indel[0], n_err[1], n_sub[1], n_indel[1],
(long long)ii, j==0? is_flip+1 : 2-is_flip);
Copied from original issue: samtools/samtools#355
Metadata
Metadata
Assignees
Labels
No labels