Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
macklin-10x committed Feb 22, 2024
1 parent 2636066 commit dc703e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 1 addition & 3 deletions exons/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ pub fn fetch_exons(species: &str, exons: &mut Vec<(String, i32, i32, bool, Strin

let root = "/mnt/opt/meowmix_git/ensembl/release-94/gtf";
let gtf = if species == "human" {
format!(
"{root}/homo_sapiens/Homo_sapiens.GRCh38.94.chr_patch_hapl_scaff.gtf"
)
format!("{root}/homo_sapiens/Homo_sapiens.GRCh38.94.chr_patch_hapl_scaff.gtf")
} else {
format!("{root}/mus_musculus/Mus_musculus.GRCm38.94.gtf")
};
Expand Down
3 changes: 0 additions & 3 deletions graph_simple/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ where
tov.insert(s);
}
while let Some(x) = check.pop() {

let n = self.n_to(x as usize);
for i in 0..n {
let y = self.v_to(x as usize, i);
Expand Down Expand Up @@ -212,7 +211,6 @@ where
fromv.insert(s);
}
while let Some(x) = check.pop() {

let n = self.n_from(x as usize);
for i in 0..n {
let y = self.v_from(x as usize, i);
Expand Down Expand Up @@ -256,7 +254,6 @@ where
cnext.clear();
cnext.push(v as u32);
while let Some(w) = cnext.pop() {

if used[w as usize] {
continue;
}
Expand Down
6 changes: 1 addition & 5 deletions hyperbase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@ impl Hyper {

let mut bound = Vec::<(u32, u32)>::new();
while let Some(v) = vertex_queue.pop() {

if !vertex_kill[v.index()] {
continue;
}
Expand Down Expand Up @@ -645,7 +644,6 @@ impl Hyper {
let mut havex: Vec<bool> = vec![false; (maxread + 1) as usize];
self.ids.reserve(bound.len());
while let Some(bounds) = bound.pop() {

let new_edge_no: usize = self.h.g.edge_count();
let mut new_edge = self.h.g.edge_obj(bounds.0).clone();
have = self.ids[bounds.0 as usize].clone();
Expand Down Expand Up @@ -785,9 +783,7 @@ impl Hyper {
);
let (e1, e2) = (homomorphism_fails[0].0, homomorphism_fails[0].1);
let (re1, re2) = (self.inv[e1], self.inv[e2]);
println!(
"first has e1 = {e1}, e2 = {e2}, re1 = {re1}, re2 = {re2}"
);
println!("first has e1 = {e1}, e2 = {e2}, re1 = {re1}, re2 = {re2}");
panic!("bailing because of test_involution failure");
}
}
Expand Down

0 comments on commit dc703e0

Please sign in to comment.