Skip to content
Snippets Groups Projects
Commit 8b606194 authored by Ruqian Lyu's avatar Ruqian Lyu
Browse files

fix splitN read count bug

parent 72317fff
No related branches found
No related tags found
No related merge requests found
Pipeline #6598 failed
......@@ -28,6 +28,7 @@ testUbuntu:
stage: testStatic
script:
- ./src/sscocaller -h
testDebian:
tags:
- docker
......@@ -35,6 +36,7 @@ testDebian:
stage: testStatic
script:
- ./src/sscocaller -h
## shell executer
testFunction:
stage: testStatic
......
......@@ -33,8 +33,7 @@ proc sscocaller(argv: var seq[string]): int =
-minDP --minDP <minDP> the minimum DP for a SNP to be included in the output file [default: 1]
-maxDP --maxDP <maxDP> the maximum DP for a SNP to be included in the output file [default: 5]
-maxTotalDP --maxTotalDP <maxTotalDP> the maximum DP across all barcodes for a SNP to be included in the output file [default: 25]
-minTotalDP --minTotalDP <minTotalDP> the minimum DP across all barcodes for a SNP to be included in the output file [default: 10]
-minTotalDP --minTotalDP <minTotalDP> the minimum DP across all barcodes for a SNP to be included in the output file [default: 10]
-chrName --chrName <chrName> the chr names with chr prefix or not, if not supplied then no prefix
-thetaREF --thetaREF <thetaREF> the theta for the binomial distribution conditioning on hidden state being REF [default: 0.1]
-thetaALT --thetaALT <thetaALT> the theta for the binomial distribution conditioning on hidden state being ALT [default: 0.9]
......@@ -243,12 +242,12 @@ proc sscocaller(argv: var seq[string]): int =
qoff+=event.len ## the offs to the query sequences
if cons.reference:
off += event.len ## the offs to the reference sequences
if not cons.query:
roff_only += event.len
# if not cons.query:
# roff_only += event.len
if off <= position: continue
over = off - position - roff_only
over = off - position
# get the base
base = aln.base_at(qoff - over)
#base = aln.base_at(qoff - over-1)
break
if aln.base_quality_at(qoff - over-1).cint < minbsq: continue
total_reads+=1
......
AAAGTAGCACGTCTCT-1
AAAGTAGCACGTCTCT-1
TAAGTAGCACGTCTCT-1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment