Skip to content

Commit 7c64689

Browse files
Don't print crazy large index at the end of the conversion.
1 parent a288bf6 commit 7c64689

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samtoram.C

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ void samtoram(const char *datafile = "samexample.sam",
144144

145145
if (!header) {
146146
tree->Fill();
147+
// Add index every 1000 records (this can be tuned)
147148
if (index && nrecords % 1000 == 0)
148149
RAMRecord::GetIndex()->AddItem(r->GetREFID(), r->GetPOS(), nrecords);
149150
nrecords++;
@@ -160,7 +161,7 @@ void samtoram(const char *datafile = "samexample.sam",
160161
RAMRecord::WriteAllRefs();
161162

162163
if (index) {
163-
RAMRecord::GetIndex()->Print();
164+
//RAMRecord::GetIndex()->Print();
164165
RAMRecord::WriteIndex();
165166
}
166167

0 commit comments

Comments
 (0)