X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Transcript.h;h=90f6e6797b17f949b38e4776fcff7eacb8ace2ce;hb=1b2999c4407ef8419fb89b66b843b7141caff4da;hp=8d7be7ae68afae09c773144e45db4ba79b81b36f;hpb=37513308b7557ae65899e59df8e43b5dec90da5c;p=rsem.git diff --git a/Transcript.h b/Transcript.h index 8d7be7a..90f6e67 100644 --- a/Transcript.h +++ b/Transcript.h @@ -113,7 +113,10 @@ void Transcript::read(std::ifstream& fin) { int s; std::string tmp; - fin>>transcript_id>>gene_id>>seqname>>tmp>>length; + getline(fin, transcript_id); + getline(fin, gene_id); + getline(fin, seqname); + fin>>tmp>>length; assert(tmp.length() == 1 && (tmp[0] == '+' || tmp[0] == '-')); strand = tmp[0]; structure.clear(); @@ -130,7 +133,10 @@ void Transcript::read(std::ifstream& fin) { void Transcript::write(std::ofstream& fout) { int s = structure.size(); - fout<