Ejemplo n.º 1
0
/*
  The following function prints a PPA line, which shows the start and end
  position of the poly-A tail in the cDNA (iff a poly-A tail could be
  determined).
*/
static void showppaline(GthSA *sa, GtFile *outfp)
{
  if (gth_sa_polyAtail_start(sa) ||
      gth_sa_polyAtail_stop(sa)) {
    gt_file_xprintf(outfp,
                    " PPA                                  cDNA %6" GT_WUS " %6"
                    GT_WUS "\n", gth_sa_polyAtail_start(sa) + OUTPUTOFFSET,
                    gth_sa_polyAtail_stop(sa) + OUTPUTOFFSET);
  }
}
Ejemplo n.º 2
0
/*
  The following function prints a PPA line, which shows the start and end
  position of the poly-A tail in the cDNA (iff a poly-A tail could be
  determined).
*/
static void xml_showppaline(GthSA *sa, unsigned int indentlevel,
                           GtFile *outfp)
{
  if (gth_sa_polyAtail_start(sa) ||
      gth_sa_polyAtail_stop(sa)) {
    gth_indent(outfp, indentlevel);
    gt_file_xprintf(outfp,
                       "<PPA_line polyA_start=\"%lu\" polyA_stop=\"%lu\"/>\n",
                       gth_sa_polyAtail_start(sa) + OUTPUTOFFSET,
                       gth_sa_polyAtail_stop(sa) + OUTPUTOFFSET);
  }
}
static void showpolyAtailpos(GthSA *sa, unsigned int indentlevel,
                             GtFile *outfp)
{
  gth_indent(outfp, indentlevel);
  gt_file_xprintf(outfp, "<polyAtailpos>\n");
  indentlevel++;

  gth_indent(outfp, indentlevel);
  gt_file_xprintf(outfp, "<polyAstart>"GT_WU"</polyAstart>\n",
                     gth_sa_polyAtail_start(sa));
  gth_indent(outfp, indentlevel);
  gt_file_xprintf(outfp, "<polyAstop>"GT_WU"</polyAstop>\n",
                     gth_sa_polyAtail_stop(sa));

  indentlevel--;
  gth_indent(outfp, indentlevel);
  gt_file_xprintf(outfp, "</polyAtailpos>\n");
}