Changeset 5753
- Timestamp:
- Nov 22, 2019, 1:10:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other/pipeline/trunk/gc_stat.py
r5747 r5753 9 9 10 10 0: Chromosome (printed to VCF#CHROM) 11 1: Start (=original location - 50; not used)11 1: Start (=original location - 50; or 0 if original location < 50) 12 12 2: Stop (=original location + 50; not used) 13 13 3: Original location (printed to VCF#POS) … … 35 35 # Column indexes from the BED file we are reading 36 36 COL_CHR = 0 37 COL_START = 1 38 COL_END = 2 37 39 COL_POS = 3 38 40 COL_REF = 4 … … 79 81 cols = line.rstrip().split('\t') 80 82 seq = cols[COL_SEQ] 81 seqLocal = cols[COL_SEQ][NORM_LEN-LOCAL_LEN:NORM_LEN+LOCAL_LEN] 83 posInSeq = int(cols[COL_POS])-int(cols[COL_START]) 84 seqLocal = cols[COL_SEQ][max(posInSeq-LOCAL_LEN, 0):posInSeq+LOCAL_LEN] 82 85 gcNorm, strengthNorm = getSequenceInfo(seq) 83 86 gcLocal, strengthLocal = getSequenceInfo(seqLocal)
Note: See TracChangeset
for help on using the changeset viewer.