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

Bypass filesystem with uniwig using fifos #32

Open
nsheff opened this issue Oct 10, 2024 · 0 comments
Open

Bypass filesystem with uniwig using fifos #32

nsheff opened this issue Oct 10, 2024 · 0 comments

Comments

@nsheff
Copy link
Member

nsheff commented Oct 10, 2024

We could process the 3 to bigwig in parallel like this

mkfifo starts.wig
mkfifo ends.wig
mkfifo core.wig

wigToBigWig -clip starts.wig `refgenie seek hg38/fasta.chrom_sizes` starts.bw &
wigToBigWig -clip ends.wig `refgenie seek hg38/fasta.chrom_sizes` ends.bw &
wigToBigWig -clip core.wig `refgenie seek hg38/fasta.chrom_sizes` core.bw &

cargo run uniwig ... --starts starts.wig --ends ends.wig --core core.wig	 

rm starts.wig
rm ends.wig
rm core.wig

could probably do this from within rust: https://docs.rs/nix/latest/nix/unistd/fn.mkfifo.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant