Skip to content

Commit 205f3d9

Browse files
authored
Update oneliners.md
1 parent 04415aa commit 205f3d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/oneliners.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Bash One-liners with slow5tools
22

33

4+
## Extracting information for eye-balling and inspecting
5+
6+
**Note that these commands are not efficient to be run routinely on giagntic datasets, instead are only for quickly eyeballing and inspecting relatively smaller datasets.**
7+
48
```
59
# print slow5 header:
610
slow5tools view file.blow5 | grep '^[#@]'
@@ -23,6 +27,12 @@ slow5tools get --to slow5 file.blow5 "r1" | grep -v '^[#@]' | awk '{print $8}'
2327
# get statistics of raw signal length (column 7):
2428
slow5tools view file.blow5 | grep -v '^[#@]' | datamash mean 7 median 7 sstdev 7 min 7 max 7 sum 7
2529
30+
```
31+
32+
## Operatings on multiple files in parallel
33+
34+
```
35+
2636
# merge every 10 files together in INPUT_DIR and save to OUTPUT_DIR:
2737
find -name INPUT_DIR/*.blow5 | parallel -I% --max-args 10 slow5tools merge % -o OUTPUT_DIR/{#}.blow5
2838

0 commit comments

Comments
 (0)