I have several windows interval looking like that:
Start Stop
19136293 19138512
20708651 20716555
31063462 31064384
And then I have data looking like that:
Read TrueC MapC TruePos MappedPos ResMap
JLN6 22 22 16050005 16050091 TP
9MRW 22 22 16050032 16050032 TP
GRR3 22 14 16050075 19792677 FP
V19X 22 * 17023341 0 FN
And I am trying to find the amount of read inside and outside the previous windows; a read is inside the window if TruePos value is inside one window interval. My goal is to have the amount of TP/FP/FN (ResMap column) inside and outside the windows.
I wanted to create for loop on my windows file and then check each line of my datas one by one and sum it but I have 600 Millions lines and I am sure there is a quickest way.. I just don't know it.
Thanks a lot,
Cheers,
Cagami