# HG changeset patch # User crs4 # Date 1489770068 14400 # Node ID 98120fb71f9b484640417fd4da52ab72563a1b38 # Parent 38832fe9708b07b09c44ce615882999ed9c702f5 Uploaded diff -r 38832fe9708b -r 98120fb71f9b conifer3/conifer.py --- a/conifer3/conifer.py Fri Mar 17 11:47:36 2017 -0400 +++ b/conifer3/conifer.py Fri Mar 17 13:01:08 2017 -0400 @@ -585,7 +585,8 @@ f = pysam.Samfile(args.input[0], "rb") - if not f._hasIndex(): +# if not f._hasIndex(): + if not f._has_index(): print("[ERROR] No index found for bam file (%s)!\n[ERROR] You must first index the bam file and include the .bai file in the same directory as the bam file!" % \ args.input[0]) sys.exit(0)