Skip to content

Commit 50f20a1

Browse files
committed
commenting out debug prints
1 parent a4c6e1c commit 50f20a1

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

microBioRust/src/embl.rs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
//! let mut read_counter: u32 = 0;
123123
//! let mut seq_region: BTreeMap<String, (u32,u32)> = BTreeMap::new();
124124
//! let mut record_vec: Vec<Record> = Vec::new();
125-
//! loop {
125+
//! loop {
126126
//! match records.next() {
127127
//! Some(Ok(mut record)) => {
128128
//! //println!("next record");
@@ -309,7 +309,7 @@ macro_rules! embl {
309309
for rec in reader.records() {
310310
match rec {
311311
Ok(r) => {
312-
println!("this is r {:?}", &r);
312+
//println!("this is r {:?}", &r);
313313
vec.push(r);
314314
}
315315
Err(e) => panic!("Error reading record: {:?}", e),
@@ -722,37 +722,36 @@ where
722722
//collects the DNA sequence and translations on the correct strand
723723
if stra == -1 {
724724
if cod > 1 {
725-
println!(
726-
"reverse strand coding start more than one {:?}",
727-
&iterablecount
728-
);
725+
//println!("reverse strand coding start more than one {:?}",
726+
// &iterablecount
727+
//);
729728
if sto < record.sequence.len() {
730729
sliced_sequence = &record.sequence[sta + cod..sto + 1];
731730
} else {
732731
sliced_sequence = &record.sequence[sta + cod..sto];
733732
}
734733
} else {
735-
println!("record sta {:?} sto {:?} cod {:?} stra {:?} record.seq length {:?}", &sta, &sto, &cod, &stra, &record.sequence.len());
736-
println!(
737-
"sliced sta {:?} sliced sto {:?} record.id {:?}",
738-
sta, sto, &record.id
739-
);
740-
println!(
734+
//println!("record sta {:?} sto {:?} cod {:?} stra {:?} record.seq length {:?}", &sta, &sto, &cod, &stra, &record.sequence.len());
735+
//println!(
736+
// "sliced sta {:?} sliced sto {:?} record.id {:?}",
737+
// sta, sto, &record.id
738+
//);
739+
//println!(
741740
"iterable count is {:?} reverse strand codon start one",
742741
&iterablecount
743-
);
744-
println!("this is the sequence len {:?}", &record.sequence.len());
742+
//);
743+
//println!("this is the sequence len {:?}", &record.sequence.len());
745744
if sto < record.sequence.len() {
746745
sliced_sequence = &record.sequence[sta..sto + 1];
747746
} else {
748747
sliced_sequence = &record.sequence[sta..sto];
749748
}
750-
println!("iterable count after is {:?}", &iterablecount);
749+
//println!("iterable count after is {:?}", &iterablecount);
751750
}
752751
let cds_char = sliced_sequence;
753752
let prot_seq = translate(&revcomp(cds_char.as_bytes()));
754753
let parts: Vec<&str> = prot_seq.split('*').collect();
755-
println!("this is the prot_seq {:?}", &prot_seq);
754+
//println!("this is the prot_seq {:?}", &prot_seq);
756755
record
757756
.seq_features
758757
.set_counter(key.to_string())

0 commit comments

Comments
 (0)