src/webBlat/webBlat.c 1.9
1.9 2009/08/05 20:33:50 galt
use width 60 for protein codons, and 50 for nucleotides
Index: src/webBlat/webBlat.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/webBlat/webBlat.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/webBlat/webBlat.c 4 Aug 2009 00:30:33 -0000 1.8
+++ src/webBlat/webBlat.c 5 Aug 2009 20:33:50 -0000 1.9
@@ -299,11 +299,14 @@
/* Parse out file:seq into file and seq, and load needed part of target seq. */
parseFileSeq(psl->tName, &tFileName, &tSeqName);
-tStart = psl->tStart - 100;
+
+int lineWidth = protQuery ? 60 : 50;
+int extraContext = 2 * lineWidth; /* one line before and one line after */
+tStart = psl->tStart - extraContext;
if (tStart < 0) tStart = 0;
-tEnd = psl->tEnd + 100;
+tEnd = psl->tEnd + extraContext;
if (tEnd > psl->tSize)
tEnd = psl->tSize;
tSeq = readSeqFrag(server->seqDir, tFileName, tSeqName, tStart, tEnd);