ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GFaSeqGet.cpp
(Generate patch)
# Line 50 | Line 50
50   }
51  
52   GFaSeqGet::GFaSeqGet(FILE* f, off_t fofs, bool validate) {
53 < if (f==NULL) GError("Error (GFaSeqGet) : null file handle!\n");
54 < seq_len=0;
55 < fh=f;
56 < initialParse(fofs, validate);
57 < lastsub=new GSubSeq();
53 >  fname=NULL;
54 >  fseqstart=0;
55 >  if (f==NULL) GError("Error (GFaSeqGet) : null file handle!\n");
56 >  seq_len=0;
57 >  fh=f;
58 >  initialParse(fofs, validate);
59 >  lastsub=new GSubSeq();
60   }
61  
62   void GFaSeqGet::initialParse(off_t fofs, bool checkall) {
# Line 256 | Line 258
258    int lineofs = seqofs % line_len;
259    off_t fstart=fseqstart + (startlno*line_blen);
260    fstart+=lineofs;
261 <  
261 >
262    fseeko(fh, fstart, SEEK_SET);
263    int toread=clen;
264    int maxlen=(seq_len>0)? seq_len-cstart+1 : MAX_FASUBSEQ ;
# Line 310 | Line 312
312      }
313    //lastsub->sqlen+=sublen;
314    clen=sublen;
315 <  
315 >
316    return (const char*)seqp;
317    }
318  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines