Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Configurable execution path at same location as BAM input. #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions parliament2.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,13 @@ def run_parliament(bam, bai, ref_genome, fai, prefix, filter_short_contigs, brea

def main():
args = parse_arguments()

prefix = args.prefix
if prefix is None:
if args.bam.endswith(".bam"):
prefix = args.bam[:-4]
else:
prefix = args.bam[:-5]
if not args.bam.startswith("/home/dnanexus/in/"):
args.bam = "/home/dnanexus/in/{0}".format(args.bam)
args.bai = "/home/dnanexus/in/{0}".format(args.bai)
args.ref_genome = "/home/dnanexus/in/{0}".format(args.ref_genome)
args.fai = "/home/dnanexus/in/{0}".format(args.fai)

ref_genome_name = gunzip_input(args.ref_genome)

Expand Down
Loading