If you want to run pycoQC interactively in Jupyter you need to install Jupyter manually. If you installed pycoQC in a virtual environment then install Jupyter in the same virtual environment.
pip3 install notebook
Launch the notebook in a shell terminal
jupyter notebook
If it does not auto-start, open the following URL in you favorite web browser http://localhost:8888/tree
From Jupyter homepage you can navigate to the directory you want to work in and create a new Python3 Notebook.
In [2]:
# Run cell with Ctrl + Enter
# Import main pycoQC module
from pycoQC.Fast5_to_seq_summary import Fast5_to_seq_summary
# Import helper functions from pycoQC
from pycoQC.common import jhelp, head
In [3]:
jhelp(Fast5_to_seq_summary)
This minimal usage creates a minimal file compatible with pycoQC
In [4]:
Fast5_to_seq_summary (
fast5_dir="./data/",
seq_summary_fn="./results/summary_sequencing.tsv",
verbose_level=1)
head ("./results/summary_sequencing.tsv")
In [5]:
Fast5_to_seq_summary (
fast5_dir="./data/",
seq_summary_fn="./results/summary_sequencing.tsv",
verbose_level=1,
threads=10)
head ("./results/summary_sequencing.tsv")
In [6]:
Fast5_to_seq_summary (
fast5_dir="./data/",
seq_summary_fn="./results/custom_summary_sequencing.tsv",
threads=6,
verbose_level=1,
fields=["mean_qscore_template", "called_events", "duration", "strand_score"])
head ("./results/custom_summary_sequencing.tsv")
In [7]:
Fast5_to_seq_summary (
fast5_dir="./data/",
seq_summary_fn="./results/fn_summary_sequencing.tsv",
threads=6,
verbose_level=1,
include_path=True)
head ("./results/fn_summary_sequencing.tsv")