Skip to content

Commit 1ae1037

Browse files
committed
Handle relative path of custom genome
1 parent 7726f5f commit 1ae1037

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sessionizer/sessionizer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def create_igv_session(
4646
if use_relative_paths:
4747
files = [os.path.relpath(path=file, start=os.path.dirname(output)) for file in files]
4848

49+
if genome_path:
50+
genome_path = os.path.relpath(path=genome_path, start=os.path.dirname(output))
51+
4952
if not names:
5053
# If names list is not provided, set it to the file name
5154
names = [os.path.basename(file) for file in files]

0 commit comments

Comments
 (0)