Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFA export #42

Merged
merged 8 commits into from
Sep 17, 2024
Merged

GFA export #42

merged 8 commits into from
Sep 17, 2024

Conversation

dkhofer
Copy link
Collaborator

@dkhofer dkhofer commented Sep 13, 2024

No description provided.

@dkhofer dkhofer force-pushed the gfa-export branch 2 times, most recently from dc47915 to 26a3c33 Compare September 16, 2024 20:29
}
}

(graph, edges_by_node_pair)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love having to return edges_by_node_pair here, but I couldn't think of a more elegant way to get a mapping from one representation of edge (pair of black IDs) to the regular edge object

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can assign more information to edges than we have been, but we can do that later. the () part of the DiGraphMap is edge storage iirc. So we could put some custom structure there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good to know. I'll keep that in mind

@@ -255,218 +239,11 @@ impl BlockGroup {
}
}

pub fn get_block_boundaries(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this is just refactoring, moving it into the Edge model, which I think is a better place for it.

@@ -0,0 +1,70 @@
use rusqlite::types::Value;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Felt like putting Collection into its own file while I was at it

@dkhofer dkhofer requested a review from Chris7 September 16, 2024 20:35
Copy link
Collaborator

@Chris7 Chris7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

.into_string()
.unwrap();

export_gfa(&conn, collection_name, &gfa_path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a fyi, you can use pathbuf and avoid the string conversions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, that does simplify things a bit, done here and with gfa imports

}
}

(graph, edges_by_node_pair)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can assign more information to edges than we have been, but we can do that later. the () part of the DiGraphMap is edge storage iirc. So we could put some custom structure there.

@dkhofer dkhofer merged commit 7881be7 into main Sep 17, 2024
1 check passed
@Chris7 Chris7 deleted the gfa-export branch September 24, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants