Skip to content

KeyError - Missing Chromosome name  #4

@patrickCNMartin

Description

@patrickCNMartin

Hi,

I have been trying to use FactorNet on Drosophila data but to no avail. I have been getting the following error:

python FactorNet-master/train.py -i Training/TrainingScores_chr3R.bed -vi Validation/Validation_Peaks_chr2R.bed -k 128 -r 128 -d 256 -oc Training_output
Multi-task training
output directory (Training_output) already exists so it will be clobbered
Loading genome
Traceback (most recent call last):
  File "FactorNet-master/train.py", line 301, in <module>
    main()
  File "FactorNet-master/train.py", line 190, in main
    genome = utils.load_genome()
  File "/home/pm16057/FactorNet/FactorNet-master/utils.py", line 349, in load_genome
    onehot_chroms = parmap.map(get_onehot_chrom, chroms)
  File "/usr/lib/python2.7/site-packages/parmap/parmap.py", line 304, in map
    return _map_or_starmap(function, iterable, args, kwargs, "map")
  File "/usr/lib/python2.7/site-packages/parmap/parmap.py", line 248, in _map_or_starmap
    output = result.get()
  File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get
    raise self._value
KeyError: 'chr2RHet'

From my understanding of the problem this is due to missing names is some python dictionary.

I was wondering if it could be that some dependency does not support chromosome names from other species or if there is a way around this issue that I have not been able to find?

I have changes files in the resources folder and made changes to utils/.py but to no avail.

Thank you!

Kind Regards

Patrick

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