arnederoeck / NanoSatellite

Dynamic time warping of Oxford Nanopore squiggle data to characterize tandem repeats.
MIT License
32 stars 1 forks source link

python script to extract signal data #2

Closed wdecoster closed 6 years ago

wdecoster commented 6 years ago

Adding the first version of a python script to extract signal level data using the ont_fast5_api

usage:

fast5_extract.py [-h] [-d DIR] [-f [FILE [FILE ...]]] [-r]

Extract signal level from fast5 files

optional arguments:
  -h, --help            show this help message and exit
  -d DIR, --dir DIR     directory with fast5 file(s) to extract signal from
  -f [FILE [FILE ...]], --file [FILE [FILE ...]]
                        fast5 file(s) to extract signal from
  -r, --recursive       recursively go through directories

Either supply a directory of fast5 files using -d/--dir, searched optionally recursive with -r/--recursive OR supply on or more fast5 files with -f/--file

Output is: path-to-fast5 \t signal,signal,signal,...

Dependency: