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

Port peptfilter to typescript #175

Merged
merged 6 commits into from
Jun 21, 2024
Merged

Port peptfilter to typescript #175

merged 6 commits into from
Jun 21, 2024

Conversation

bmesuere
Copy link
Member

This PR reimplements the peptfilter command in typescript.

I ran peptfilter on swissprot as a benchmark.
The original ruby code took 25 seconds, the reimplementation takes 4 seconds.

@bmesuere bmesuere requested a review from pverscha June 20, 2024 11:01
@@ -0,0 +1,6 @@
#!/usr/bin/env node

import { Peptfilter } from '../lib/commands/peptfilter.js';
Copy link
Member

Choose a reason for hiding this comment

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

Why is this import from a "js" file? Shouldn't this be "ts"?

Copy link
Member Author

Choose a reason for hiding this comment

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

You can make .js, .ts and nothing work with the right settings. I would have prefered using no extension, but couldn't get it to work in all conditions: the typescript compiler itself, running it after compilation, running it with yarn and running it through tests. This is the only way I managed to get it to work under all conditions.

@bmesuere bmesuere marked this pull request as ready for review June 21, 2024 12:30
@bmesuere bmesuere merged commit b071301 into next Jun 21, 2024
2 checks passed
@bmesuere bmesuere deleted the next-peptfilter branch June 21, 2024 12:30
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