| 1 | # Using Fast5_to_seq_summary |
| 2 | |
| 3 | In case you do not have access to a summary sequencing file, pycoQC comes with `Fast5_to_seq_summary`, a simple yet efficient tool to generate such file from a directory containing basecalled fast5 files. |
| 4 | |
| 5 | ## User interface |
| 6 | |
| 7 | `Fast5_to_seq_summary` was designed to be used either through a python Application programming interface (API) for Jupyter notebook or a command line interface (CLI). |
| 8 | |
| 9 | ### Jupyter API |
| 10 | |
| 11 | * [pycoQC API usage notebook](Fast5_to_seq_summary/API_usage) |
| 12 | |
| 13 | ### Shell CLI |
| 14 | |
| 15 | * [pycoQC CLI usage notebook](Fast5_to_seq_summary/CLI_usage) |
| 16 | |
| 17 | |
| 18 | ## Input files and options |
| 19 | |
| 20 | The program can also attempt to extract additional information including the file path (include_path) corresponding to each read and the following fields: |
| 21 | |
| 22 | * mean_qscore_template |
| 23 | * sequence_length_template |
| 24 | * called_events |
| 25 | * skip_prob |
| 26 | * stay_prob |
| 27 | * step_prob |
| 28 | * strand_score |
| 29 | * read_id |
| 30 | * start_time |
| 31 | * duration |
| 32 | * start_mux |
| 33 | * read_number |
| 34 | * channel |
| 35 | * channel_digitisation |
| 36 | * channel_offset |
| 37 | * channel_range |
| 38 | * channel_sampling |
| 39 | * run_id |
| 40 | * sample_id |
| 41 | * device_id |
| 42 | * protocol_run |
| 43 | * flow_cell |
| 44 | * calibration_strand |
| 45 | * calibration_strand |
| 46 | * calibration_strand |
| 47 | * calibration_strand |
| 48 | * barcode_arrangement |
| 49 | * barcode_full |
| 50 | * barcode_score |
| 51 | |
| 52 | If a field in not found or invalid it is simply ignored for the current fast5 file. |
| 53 | |
| 54 | Multiprocessing is supported to speed up the data extraction. |
| 55 | |
| 56 | If generated with the minimal default fields, the file is compatible with pycoQC. |
| 57 | |
| 58 | ### Input files |
| 59 | |
| 60 | `Fast5_to_seq_summary` requires a directory containing FAST5 file basecalled with Albacore or Guppy. |
| 61 | |
| 62 | At the moment multi-fast5 files generated by Guppy are not supported. |
| 63 | |
| 64 | ### Example files |
| 65 | |
| 66 | pycoQC repository contains a small number of example fast5 files that can be use to test `Fast5_to_seq_summary`. |
| 67 | |
| 68 | * docs/demo/data/fast5 |