Skip to content

Commit

Permalink
Fixed a bug that can result in displaying only part of gene names in …
Browse files Browse the repository at this point in the history
…result files
  • Loading branch information
Bo Li committed Jan 31, 2016
1 parent 4dcc6f3 commit 0fc9c6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Transcript.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,13 @@ void Transcript::read(std::ifstream& fin) {

getline(fin, tmp);
strin.str(tmp);
strin>> transcript_id>> transcript_name;
getline(strin, transcript_id, '\t');
getline(strin, transcript_name);

getline(fin, tmp);
strin.clear(); strin.str(tmp);
strin>> gene_id>> gene_name;
getline(strin, gene_id, '\t');
getline(strin, gene_name);

getline(fin, seqname);

Expand Down

0 comments on commit 0fc9c6f

Please sign in to comment.