if (cnt % 1000000 == 0) { printf("."); fflush(stdout); }
// at least one segment is not properly mapped
- if ((b->core.flag & 0x0004) || isPaired && (b2->core.flag & 0x0004)) continue;
+ if ((b->core.flag & 0x0004) || (isPaired && (b2->core.flag & 0x0004))) continue;
const Transcript& transcript = transcripts.getTranscriptAt(b->core.tid + 1);
--- /dev/null
+Please uncomment the 4th and 8th lines in sam/Makefile before compiling RSEM.
--- /dev/null
+
+RSEM v1.1.15
+
+- Fixed several bugs causing compilation error
+- Modified samtools' Makefile for cygwin. For cygwin users, please uncomment the 4th and 8th lines in sam/Makefile before compiling RSEM
+
+--------------------------------------------------------------------------------------------
+RSEM v1.1.14
+
+- Added --chunkmbs option to rsem-calculate-expression (patch contributed by earonesty)
+- Added --sampling-for-bam option to rsem-calculate-expression, in the bam file, instead of providing expected weights, for each read RSEM samples one alignment based on the expected weights
+- RSEM can generate BAM and Wiggle files in both genomic-coordinate and transcript-coordinate
+- Added rsem-plot-transcript-wiggles. This script can generate transcript-coordinate wiggle plots in pdf format. One unique feature is, a stacked plot can be generated, with unique read contribution shown as black and multi-read contribution shown as red
+- Added convert_sam_for_rsem script for users do not use bowtie aligner
+- Modified RSEM's GTF file parser. Now RSEM does not require "transcript_id" and "gene_id" be the first two attributes shown
+- Improved descriptions for thread related errors
+
+#include <cstdio>
+#include <cstring>
+#include <cstdlib>
#include <iostream>
+
#include "wiggle.h"
+using namespace std;
+
int main(int argc, char* argv[]) {
- if (argc != 2) {
- printf("Usage: rsem-bam2readdepth sorted_bam_input\n");
- std::exit(1);
- }
+ if (argc != 2) {
+ printf("Usage: rsem-bam2readdepth sorted_bam_input\n");
+ exit(-1);
+ }
+
ReadDepthWriter depth_writer(std::cout);
build_wiggles(argv[1], depth_writer);
- return 0;
+ return 0;
}
#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include "wiggle.h"
bool operator< (const PairedEndT& o) const {
int value = mate1.compare(o.mate1);
- return value < 0 || value == 0 && mate2 < o.mate2;
+ return value < 0 || (value == 0 && mate2 < o.mate2);
}
};
void output() {
if (unaligned || arr.size() == 0) return;
bool isPaired = (arr[0]->core.flag & 0x0001);
- if (isPaired && arr.size() != 2 || !isPaired && arr.size() != 1) return;
+ if ((isPaired && arr.size() != 2) || (!isPaired && arr.size() != 1)) return;
for (int i = 0; i < (int)arr.size(); i++) samwrite(out, arr[i]);
}
CC= gcc
-CFLAGS= -g -Wall -O2 #-m64 #-arch ppc
-DFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1
+
+CFLAGS_EXTRA=
+#CFLAGS_EXTRA= -L/usr/include/ncurses
+CFLAGS= -g -Wall -O2 $(CFLAGS_EXTRA) #-m64 #-arch ppc
+
+DFLAGS_EXTRA=
+#DFLAGS_EXTRA= -Dexpl=exp -Dlogl=log
+DFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 $(DFLAGS_EXTRA)
+
KNETFILE_O= knetfile.o
LOBJS= bgzf.o kstring.o bam_aux.o bam.o bam_import.o sam.o bam_index.o \
bam_pileup.o bam_lpileup.o bam_md.o razf.o faidx.o bedidx.o \
//read model type from modelF
fi = fopen(argv[2], "r");
if (fi == NULL) { fprintf(stderr, "Cannot open %s! It may not exist.\n", argv[2]); exit(-1); }
- fscanf(fi, "%d", &model_type);
+ assert(fscanf(fi, "%d", &model_type) == 1);
fclose(fi);
theta = new double[M + 1];
+++ /dev/null
-In this version of RSEM, several things are updated:
-
-- Added --chunkmbs option to rsem-calculate-expression (patch contributed by earonesty)
-- Added --sampling-for-bam option to rsem-calculate-expression, in the bam file, instead of providing expected weights, for each read RSEM samples one alignment based on the expected weights
-- RSEM can generate BAM and Wiggle files in both genomic-coordinate and transcript-coordinate
-- Added rsem-plot-transcript-wiggles. This script can generate transcript-coordinate wiggle plots in pdf format. One unique feature is, a stacked plot can be generated, with unique read contribution shown as black and multi-read contribution shown as red
-- Added convert_sam_for_rsem script for users do not use bowtie aligner
-- Modified RSEM's GTF file parser. Now RSEM does not require "transcript_id" and "gene_id" be the first two attributes shown
-- Improved descriptions for thread related errors.
-