Skip to content

Commit

Permalink
import local .py files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
hiruna72 committed Jun 20, 2023
1 parent 19cec74 commit 11ac328
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from pyfastx import Fastq
import os
import pysam
import bed_annotation
import plot_utils
from src import bed_annotation
from src import plot_utils

# ref_start is always 1based closed
# ref_end is always 1based closed
Expand Down Expand Up @@ -443,7 +443,7 @@ def run(args):
raise Exception("Error: please provide the alignment file with correct extension")

if use_paf == 0 and use_fasta == 0:
print("please provide a .fasta or .fa file when using SAM/BAM")
raise Exception("Error: please provide a .fasta or .fa file when using SAM/BAM")

if args.base_limit:
base_limit = args.base_limit
Expand Down
4 changes: 2 additions & 2 deletions src/plot_pileup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import os
import pysam
import math
import bed_annotation
import plot_utils
from src import bed_annotation
from src import plot_utils

# ref_start is always 1based closed
# ref_end is always 1based closed
Expand Down

0 comments on commit 11ac328

Please sign in to comment.