sprintf (tag, "Mated reads %d (Utg%lld) and %d (Utg%lld)"
sprintf (tag, "Mated reads %lld (Utg%lld) and %lld (Utg%lld)"
static void  Output_Mates    (int i, int j)//  Output a celamy line for mated reads  Read [i]  and  Read [j]  {   int  mean, sd, diff;   char  tag [200];      mean = int (Dst [Read [i] . dst] . mean);   sd = int (Dst [Read [i] . dst] . stddev);   if  (Read [i] . cam_a <= Read [i] . cam_b)       {        if  (Read [j] . cam_a <= Read [j] . cam_b               || Read [j] . cam_a < Read [i] . cam_a + 200               || Read [j] . cam_a > Read [i] . cam_a + mean + 10 * sd)            {             sprintf (tag, "Read %d (Utg%lld) has bad mate %d (Utg%lld) at coord %d",                 i, Read [i] . unitig_id, j, Read [j] . unitig_id,                 (Read [j] . cam_a + Read [j] . cam_b) / 2);             Output_Single_Read (i, Bad_Read_Col_Id, Bad_Mate_Col_Id, mean,                  Bad_Start_Row, tag);                              sprintf (tag, "Read %d (Utg%lld) has bad mate %d (Utg%lld) at coord %d",                 j, Read [j] . unitig_id, i, Read [i] . unitig_id,                 (Read [i] . cam_a + Read [i] . cam_b) / 2);             Output_Single_Read (j, Bad_Read_Col_Id, Bad_Mate_Col_Id, mean,                  Bad_Start_Row, tag);            }        else if  (Read [j] . cam_a > Read [j] . cam_b)            {             diff = Read [j] . cam_a - Read [i] . cam_a;             sprintf (tag, "Mated reads %d (Utg%lld) and %d (Utg%lld)"                 "  diff=%d mn=%d sd=%d distort=%+.1fsd",                 i, Read [i] . unitig_id, j, Read [j] . unitig_id,                 diff, mean, sd, double (diff - mean) / sd);             if  (mean - 3 * sd <= diff && diff <= mean + 3 * sd)                 Output_Pair (i, j, Good_Read_Col_Id, Good_Mate_Col_Id,                      Good_Start_Row, tag);               else                 Output_Pair (i, j, Stretch_Read_Col_Id, Stretch_Mate_Col_Id,                      Bad_Start_Row, tag);            }       }     else       {        if  (Read [j] . cam_a > Read [j] . cam_b               || Read [i] . cam_a < Read [j] . cam_a + 200               || Read [i] . cam_a > Read [j] . cam_a + mean + 10 * sd)            {             sprintf (tag, "Read %d (Utg%lld) has bad mate %d (Utg%lld) at coord %d",                 i, Read [i] . unitig_id, j, Read [j] . unitig_id,                 (Read [j] . cam_a + Read [j] . cam_b) / 2);             Output_Single_Read (i, Bad_Read_Col_Id, Bad_Mate_Col_Id, mean,                  Bad_Start_Row, tag);                              sprintf (tag, "Read %d (Utg%lld) has bad mate %d (Utg%lld) at coord %d",                 j, Read [j] . unitig_id, i, Read [i] . unitig_id,                 (Read [i] . cam_a + Read [i] . cam_b) / 2);             Output_Single_Read (j, Bad_Read_Col_Id, Bad_Mate_Col_Id, mean,                  Bad_Start_Row, tag);            }        else if  (Read [j] . cam_a <= Read [j] . cam_b)            {             diff = Read [i] . cam_a - Read [j] . cam_a;             sprintf (tag, "Mated reads %d (Utg%lld) and %d (Utg%lld)"                 "  diff=%d mn=%d sd=%d distort=%+.1fsd",                 j, Read [j] . unitig_id, i, Read [i] . unitig_id,                 diff, mean, sd, double (diff - mean) / sd);             if  (mean - 3 * sd <= diff && diff <= mean + 3 * sd)                 Output_Pair (j, i, Good_Read_Col_Id, Good_Mate_Col_Id,                      Good_Start_Row, tag);               else                 Output_Pair (j, i, Stretch_Read_Col_Id, Stretch_Mate_Col_Id,                      Bad_Start_Row, tag);            }       }   return;  }