davidaknowles / leafcutter

Annotation-free quantification of RNA splicing. Yang I. Li, David A. Knowles, Jack Humphrey, Alvaro N. Barbeira, Scott P. Dickinson, Hae Kyung Im, Jonathan K. Pritchard
http://davidaknowles.github.io/leafcutter/
Apache License 2.0
203 stars 113 forks source link

Add shebang line for leafcutter_cluster_regtools.py to fix an error. #214

Closed hsun3163 closed 1 year ago

hsun3163 commented 2 years ago

Hi, Thank you for making the leafcutter package. As it turns out, the leafcutter_cluster_regtools.py will be executed as a bash script and produce the following error:

Singularity> /opt/leafcutter/clustering/leafcutter_cluster_regtools.py
/opt/leafcutter/clustering/leafcutter_cluster_regtools.py: line 5: import: command not found
/opt/leafcutter/clustering/leafcutter_cluster_regtools.py: line 6: import: command not found
/opt/leafcutter/clustering/leafcutter_cluster_regtools.py: line 7: import: command not found
/opt/leafcutter/clustering/leafcutter_cluster_regtools.py: line 8: import: command not found
/opt/leafcutter/clustering/leafcutter_cluster_regtools.py: line 9: import: command not found
/opt/leafcutter/clustering/leafcutter_cluster_regtools.py: line 11: syntax error near unexpected token `('
/opt/leafcutter/clustering/leafcutter_cluster_regtools.py: line 11: `def main(options,libl):'

I think the cause is the lack of she-bang line, so that bash cannot recognize it as a python executable, which is why I made the changes.