Thanks to visit codestin.com
Credit goes to github.com

Skip to content

restrict can't handle '!' chromosome #76

Description

@zqbake

When pair file includes pairs like:

.   !   0   chr1    109060  -   +   NU

or other chromosomes not included in the pair header.
pairtools restrict raises error:

irtools_restrict.py", line 80, in restrict_py 
    rfrag_idx1, rfrag_start1, rfrag_end1 = find_rfrag(rfrags, chrom1, pos1)
File ".../lib/python3.6/site-packages/pairtools/pa irtools_restrict.py", line 95, in find_rfrag
    rsites_chrom = rfrags[chrom.encode('ascii')]
KeyError: b'!'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions