guigolab / ggsashimi

Command-line tool for the visualization of splicing events across multiple samples
MIT License
122 stars 42 forks source link

Error if BAM filename starts with number #26

Closed alexzaccaron closed 4 years ago

alexzaccaron commented 5 years ago

Hi, I installed ggsashimi and both examples in example_run.sh worked fine. But when I tried with my BAM file, named 2dpi.bam, I got the following error:

./sashimi-plot.py -b 2dpi.bam -c tig00000003:33700-34300

Error: unexpected symbol in "        color_list = list(2dpi"
Execution halted

I started to mess around with different file names and when I changed 2dpi.bam to dpi2.bam it worked. It looks like if the BAM file name starts with a number ggsashimi gives the error above. Maybe this is an issue you would like to address in future versions of ggsashimi.

Package versions: Python v3.7.3 R v3.5.1 ggplot2 v3.2.1 data.table v1.12.2 gridExtra v2.3

abreschi commented 5 years ago

Good catch, thank for reporting it! Something we should definitely address soon.