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

Parse sequences in Rust/wasm #4

Merged
merged 4 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,522 changes: 2,122 additions & 2,400 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 4 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mgnify-sourmash-component",
"version": "0.2.4",
"version": "0.3.0",
"description": "A web component to select FastA file and generate sourmash signatures locally.",
"module": "dist/mgnify-sourmash-component.js",
"main": "dist/mgnify-sourmash-component.js",
Expand All @@ -24,8 +24,6 @@
"author": "Gustavo A. Salazar",
"license": "ISC",
"devDependencies": {
"@types/pumpify": "1.4.1",
"@types/through2": "2.0.36",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"eslint": "7.32.0",
Expand All @@ -37,25 +35,16 @@
"prettier": "2.4.0",
"ts-loader": "9.2.5",
"typescript": "4.4.2",
"webpack": "5.52.1",
"webpack": "^5.90.3",
"webpack-cli": "4.8.0",
"webpack-dev-server": "4.2.0"
"webpack-dev-server": "^4.15.1"
},
"dependencies": {
"bl": "5.0.0",
"buffer": "6.0.3",
"buffer-from": "1.1.2",
"duplexify": "4.1.2",
"fastqstream": "0.1.0",
"filestream": "5.0.0",
"lit": "2.0.0-rc.2",
"lit-css-loader": "1.0.1",
"process": "0.11.10",
"pumpify": "2.0.1",
"sourmash": "0.11.0",
"split": "1.0.1",
"stream": "0.0.2",
"through2": "4.0.2",
"sourmash": "0.13.1",
"util": "0.12.4",
"worker-loader": "3.0.8"
}
Expand Down
23 changes: 0 additions & 23 deletions src/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ declare module '*.css' {
export default content;
}

interface Read {
// eslint-disable-next-line @typescript-eslint/no-misused-new
new (file: File): Read;
reader: {
onprogress: (data: any) => void;
};
pipe: (f: () => any) => any;
}

interface KmerMinHashOptions {
num: number;
ksize: number;
Expand All @@ -24,20 +15,6 @@ interface KmerMinHashOptions {
track_abundance: boolean;
}

type DataChunk = Uint8Array | Uint16Array | Uint32Array;

declare module 'filestream' {
export const read: Read;
}

type SwapFuntion = (_: any, x?: any) => any;

// declare module 'fasta-parser' {
// import { Stream } from 'stream';
// const Fasta: () => Stream;
// export default Fasta;
// }

declare module '*.worker.ts' {
// You need to change `Worker`, if you specified a different value for the `workerType` option
class WebpackWorker extends Worker {
Expand Down
53 changes: 0 additions & 53 deletions src/fasta-parser/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import style from './index.css';

const worker = new Worker();

const SUPPORTED_EXTENSIONS = ['.fa', '.fasta', '.fna'];
const SUPPORTED_EXTENSIONS = ['.fa', '.fasta', '.fna', '.gz', '.fq', '.fastq'];
@customElement('mgnify-sourmash-component')
export class MGnifySourmash extends LitElement {
@property({ type: Boolean, reflect: true })
Expand Down
78 changes: 0 additions & 78 deletions src/peek-stream/index.js

This file was deleted.

Loading
Loading