dputhier / pygtftk

A python package and a set of shell commands to handle GTF files
GNU General Public License v3.0
45 stars 6 forks source link

profile: TypeError: sequence item 0: expected str instance, int found #110

Closed dputhier closed 5 years ago

dputhier commented 5 years ago

The following command :

 gtftk profile -nm ranging  -V 1 -t {input.c} -i {input.z} -o output/09_profile -g tx_classes -f bwig  -if output/09_profile/profile_{wildcards.s}_{wildcards.r}.pdf -pw 8

...has the following output.

  File "/Users/puthier/miniconda3/envs/pygtftk_test/lib/python3.6/site-packages/pygtftk-1.0.9-py3.6-macosx-10.7-x86_64.egg/EGG-INFO/scripts/gtftk", line 104, in <module>
    args = main()
  File "/Users/puthier/miniconda3/envs/pygtftk_test/lib/python3.6/site-packages/pygtftk-1.0.9-py3.6-macosx-10.7-x86_64.egg/EGG-INFO/scripts/gtftk", line 89, in main
    CmdManager.run(args)
  File "/Users/puthier/miniconda3/envs/pygtftk_test/lib/python3.6/site-packages/pygtftk-1.0.9-py3.6-macosx-10.7-x86_64.egg/pygtftk/cmd_manager.py", line 958, in run
    fun(**args)
  File "/Users/puthier/miniconda3/envs/pygtftk_test/lib/python3.6/site-packages/pygtftk-1.0.9-py3.6-macosx-10.7-x86_64.egg/pygtftk/plugins/profile.py", line 577, in profile
    color_order = ",".join(class_list)
TypeError: sequence item 0: expected str instance, int found