I have problems when I run hisat2. my command is
./hisat2 -x $HISAT2G/hisat2_hg38 -p 16 -1 /home/sunghyepark_lab/test/test_files/RNA/rawData/trimmed/trimmed_paired_1607370-RNA-T_1.fastq.gz -2 /home/sunghyepark_lab/test/test_files/RNA/rawData/trimmed/trimmed_paired_1607370-RNA-T_2.fastq.gz -S /home/sunghyepark_lab/test/test_files/RNA/rawData/HISAT2_aligned/1607370_RT.sam
used reference hg38 indexed by hisat2-build.
I got errors like
File "/home/sunghyepark_lab/packages/hisat-genotype-top/hisat2_read_statistics.py", line 182 length_map = sorted(length_map.iteritems(), key=lambda (k,v):(v,k), reverse=True) SyntaxError: invalid syntax
so I googled this error, and changed code "key=lambda (k,v):(v,k) to key=lambda k,v:(v,k)" no error message like above. But another error came out...
File "/home/sunghyepark_lab/packages/hisat-genotype-top/hisat2_read_statistics.py", line 183 print cnt, mn, mx, avg, ",".join([str(k) for (k,v) in length_map]) SyntaxError: invalid syntax
help me please..
Let me know if any other informations are needed to solve this problem
Output of
python --version
?version is python --version Python 3.7.6
I'm getting the same error when running hisat2 (also as a batch submission script). I don't have permissions to edit the script on our cluster. For the case that it does need to be fixed, is there a way to copy the script and provide its location in the batch script so that hisat is provided the alternative (edited) script when hisat2_read_statistics.py is called?
I have a feeling that fixing the script is not necessary because the read mapping seems to be taking place anyways:
I imagine it's poor practice to let a module of your program break and continue to run it anyways, so ideas for solutions would be greatly appreciated. I have contacted the admins requesting that they edit the script, but this process usually takes a week or so, which is time I can't spare for this analysis.
Just get your own version of the tool using a package manager like
miniconda
that does not require root permission.