Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Problem finding .bed.gz.tbi index file with --callRegions #305

Description

@lunalvan

I am running a CNV calling pipeline including manta.

When using the --callRegions option and providing a .bed file, manta looks for an indexed .bed.tbi file in the same directory. However, it should be looking for a .bed.gz.tbi file, as it first needs to be compressed.

Therefore, I get the following error:


configManta.py: error: Can't find expected call-regions bed index file: '/home/lalvaradoanon/thesis/reference/hg38/hg38_standard.bed.gz.tbi'

I looked into

from configureUtil import assertOptionExists, checkFixTabixIndexedFileOption, joinFile, OptParseException, \
to see how the software was checking for the files:


165        # check for bed file of call regions and its index file
166        options.callRegionsBed = checkFixTabixIndexedFileOption(options.callRegionsBed, "call-regions bed")

which then lead me to the configureUtil.py script where checkFixTabixIndexedFileOption is defined:


    199 def checkTabixIndexedFile(iname,label) :
    200     assert(iname is not None)
    201     if not os.path.isfile(iname) :
    202         raise OptParseException("Can't find expected %s file: '%s'" % (label,iname))
    203     tabixIndexFile = iname + ".tbi"
    204     if not os.path.isfile(tabixIndexFile) :
    205         raise OptParseException("Can't find expected %s index file: '%s'" % (label,tabixIndexFile))


    214 def checkFixTabixIndexedFileOption(tabixFile,label):
    215     """
    216     Check that the file's tabix index exists, and convert input path to an absolute path.
    217
    218     If tabixFile is None, return None, else return the absolute file path.
    219     """
    220     checkOptionalTabixIndexedFile(tabixFile,label)
    221     if tabixFile is None : return None
    222     return os.path.abspath(tabixFile)

Here, when defining tabixIndexFile, iname is the name of the file that was provided (hg38_standard.bed), and it automatically looks for that same file + ".tbi". Therefore, it does not recognize the compressed indexed file (.bed.gz.tbi), giving the error stated above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions