Skip to content

Commit

Permalink
fix empty seq
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Jun 5, 2024
1 parent 2d9ff76 commit b73803f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/padlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,13 @@ namespace dicey
ofile << gRegions[refIndex][i].strand << '\t';
ofile << c.chrname[refIndex] << ':' << gRegions[refIndex][i].start + 1 << '-' << gRegions[refIndex][i].end + 1 << '\t';
ofile << arm1 << '-' << arm2 << '\t';
ofile << c.spacerleft << '\t' << c.anchor << '\t';
if (c.spacerleft.size()) ofile << c.spacerleft << '\t';
else ofile << "n.a." << '\t';
if (c.anchor.size()) ofile << c.anchor << '\t';
else ofile << "n.a." << '\t';
ofile << geneInfo[gRegions[refIndex][i].lid].barcode << '\t';
ofile << c.spacerright << '\t';
if (c.spacerright.size()) ofile << c.spacerright << '\t';
else ofile << "n.a." << '\t';
ofile << padlock << '\t';
ofile << arm1TM << '\t' << arm2TM << '\t' << barTM << '\t' << probeTM << '\t';
ofile << arm1GC << '\t' << arm2GC << '\t' << barGC << '\t' << probeGC << std::endl;
Expand All @@ -420,10 +424,13 @@ namespace dicey
rcfile << "\"" << gRegions[refIndex][i].strand << "\", ";
rcfile << "\"" << c.chrname[refIndex] << ':' << gRegions[refIndex][i].start + 1 << '-' << gRegions[refIndex][i].end + 1 << "\", ";
rcfile << "\"" << arm1 << '-' << arm2 << "\", ";
rcfile << "\"" << c.spacerleft << "\", ";
rcfile << "\"" << c.anchor << "\", ";
if (c.spacerleft.size()) rcfile << "\"" << c.spacerleft << "\", ";
else rcfile << "\"n.a.\", ";
if (c.anchor.size()) rcfile << "\"" << c.anchor << "\", ";
else rcfile << "\"n.a.\", ";
rcfile << "\"" << geneInfo[gRegions[refIndex][i].lid].barcode << "\", ";
rcfile << "\"" << c.spacerright << "\", ";
if (c.spacerright.size()) rcfile << "\"" << c.spacerright << "\", ";
else rcfile << "\"n.a.\", ";
rcfile << "\"" << padlock << "\", ";
rcfile << "\"" << arm1TM << "\", ";
rcfile << "\"" << arm2TM << "\", ";
Expand Down

0 comments on commit b73803f

Please sign in to comment.