diff commons/core/parsing/WigParser.py @ 46:169d364ddd91

Uploaded
author m-zytnicki
date Mon, 30 Sep 2013 03:19:26 -0400
parents 44d5973c188c
children
line wrap: on
line diff
--- a/commons/core/parsing/WigParser.py	Wed Sep 18 08:51:22 2013 -0400
+++ b/commons/core/parsing/WigParser.py	Mon Sep 30 03:19:26 2013 -0400
@@ -85,11 +85,12 @@
 		Create an index name for a file
 		"""
 		directoryName = os.path.dirname(self.fileName)
+		baseName      = os.path.splitext(os.path.basename(self.fileName))[0]
 		if strand == None:
 			strandName = ""
 		else:
 			strandName = "+" if strand == 1 else "-"
-		indexName = os.path.join(directoryName, ".%s%s.index" % (chromosome, strandName))
+		indexName = os.path.join(directoryName, ".%s.%s%s.index" % (baseName, chromosome, strandName))
 		return indexName