Skip to content
Snippets Groups Projects
Commit 11787d03 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Build jflow commands: use absolute paths

parent 3a2e137b
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
import argparse
import argparse, os
parser = argparse.ArgumentParser(description='Generate simulated populations with SV')
parser.add_argument("--nb-inds", help="Number of individuals to generate", required=True)
......@@ -13,12 +13,14 @@ parser.add_argument("--bams-dir", help="Directory containing bams for each indiv
args = parser.parse_args()
nb_inds = args.nb_inds
reference = args.reference
reference = os.path.abspath(args.reference)
bams_dir = args.bams_dir
if bams_dir and bams_dir[-1] == "/":
bams_dir = bams_dir[:-1]
bams_dir = os.path.abspath(bams_dir)
if not args.prepare and not args.bams_dir:
print("You must specify the directory containing the bam files (--bams-dir)")
exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment