Skip to content

Commit

Permalink
add load data R script
Browse files Browse the repository at this point in the history
  • Loading branch information
pimentel committed Feb 6, 2015
1 parent ce2cbfb commit 7c03b47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EMAlgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct EMAlgorithm {
"kallisto_id" << "\t" <<
"rho" << "\t" <<
"tpm" << "\t" <<
"expected_counts" <<
"est_counts" <<
std::endl;

const double MILLION = 1e6;
Expand Down
4 changes: 3 additions & 1 deletion src/KmerIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ struct KmerIndex
assert(num_trans == target_names_.size());
for (auto& tid : target_names_) {
// 9.1 write out how many bytes
// XXX: Note: this doesn't actually encore the max targ id size.
// might cause problems in the future
tmp_size = tid.size();
out.write((char*)&tmp_size, sizeof(tmp_size));

Expand Down Expand Up @@ -396,7 +398,7 @@ struct KmerIndex
target_names_.reserve(num_trans);

size_t tmp_size;
char buffer[1024];
char buffer[1024]; // if your target_name is longer than this, screw you.
for (auto i = 0; i < num_trans; ++i) {
// 9.1 read in the size
in.read((char*)&tmp_size, sizeof(tmp_size));
Expand Down

0 comments on commit 7c03b47

Please sign in to comment.