npro->write(fo);
if (mw != NULL) {
- fprintf(fo, "%d\n", M);
+ fprintf(fo, "\n%d\n", M);
for (int i = 0; i < M; i++) {
fprintf(fo, "%.15g ", mw[i]);
}
nqpro->write(fo);
if (mw != NULL) {
- fprintf(fo, "%d\n", M);
+ fprintf(fo, "\n%d\n", M);
for (int i = 0; i < M; i++) {
fprintf(fo, "%.15g ", mw[i]);
}
pro->read(fi);
npro->read(fi);
- fclose(fi);
-
if (fscanf(fi, "%d", &M) == 1) {
mw = new double[M + 1];
for (int i = 0; i <= M; i++) fscanf(fi, "%lf", &mw[i]);
npro->write(fo);
if (mw != NULL) {
- fprintf(fo, "%d\n", M);
+ fprintf(fo, "\n%d\n", M);
for (int i = 0; i < M; i++) {
fprintf(fo, "%.15g ", mw[i]);
}
nqpro->write(fo);
if (mw != NULL) {
- fprintf(fo, "%d\n", M);
+ fprintf(fo, "\n%d\n", M);
for (int i = 0; i < M; i++) {
fprintf(fo, "%.15g ", mw[i]);
}
if ($is_sam || $is_bam) {
pod2usage(-msg => "Invalid number of arguments!", -exitval => 2, -verbose => 2) if (scalar(@ARGV) != 3);
pod2usage(-msg => "--sam and --bam cannot be active at the same time!", -exitval => 2, -verbose => 2) if ($is_sam == 1&& $is_bam == 1);
- pod2usage(-msg => "--bowtie-path, --bowtie-n, --bowtie-e, --bowtie-m, --phred33-quals, --phred64-quals or --solexa-quals cannot be set if input is SAM/BAM format!", -exitval => 2, -verbose => 2) if ($bowtie_path ne "" || $C != 2 || $E != 999999 || $maxHits != 200 || $phred33 || $phred64 || $solexa);
+ pod2usage(-msg => "--bowtie-path, --bowtie-n, --bowtie-e, --bowtie-m, --phred33-quals, --phred64-quals or --solexa-quals cannot be set if input is SAM/BAM format!", -exitval => 2, -verbose => 2) if ($bowtie_path ne "" || $C != 2 || $E != 99999999 || $maxHits != 200 || $phred33 || $phred64 || $solexa);
}
else {
pod2usage(-msg => "Invalid number of arguments!", -exitval => 2, -verbose => 2) if (!$paired_end && scalar(@ARGV) != 3 || $paired_end && scalar(@ARGV) != 4);