loosolab / TF-COMB

Transcription Factor Co-Occurrence using Market Basket analysis
https://tf-comb.readthedocs.io
MIT License
10 stars 1 forks source link

InputError: Region is out of bounds in the given genome #49

Closed GudaLab closed 1 year ago

GudaLab commented 1 year ago

I am performing the Search for TFBS within peak regions (As shown here https://tf-comb.readthedocs.io/en/latest/examples/TFBS_from_motifs.html#Search-for-TFBS-within-peak-regions) under TFBS from motifs after the Setup a CombObj. I used hg38, hg19 and even hs1 reference sequence. I am encountering the error as shown below. Any idea how I can resolve this?

C.TFBS_from_motifs(regions="/Users/arch/Desktop/neuroncontrol440controlvsneuronheroin484treatment.mRp.clN.deseq2.FDR0.05.results.bed",
                   motifs="/Users/arch/Desktop/JASPAR2022_CORE_vertebrates_non-redundant_pfms_meme.txt",
                   genome="/Users/arch/Desktop/genome.fa",
                   threads=8)

InputError: Region 'chr1 249119901 249121078 Interval_38857' is out of bounds in the given genome. The length of the chromosome is: 248956422

hschult commented 1 year ago

Hi, the error suggests that you have ranges in your bed that are outside the genomes coordinates. If you remove those everything should work :)

hschult commented 1 year ago

I'm closing this for now. Feel free to reopen if the issue persists.