Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOError: truncated file #113

Open
deb0612 opened this issue Nov 9, 2023 · 3 comments
Open

IOError: truncated file #113

deb0612 opened this issue Nov 9, 2023 · 3 comments

Comments

@deb0612
Copy link

deb0612 commented Nov 9, 2023

Dear sir,
I tried the new version of rmats2sashimiplot.py with the following command:
python "/lab_nas_home_user/Debbie/biotools/cancer/rmats2sashimiplot-3.0.0/src/rmats2sashimiplot/rmats2sashimiplot.py" --b1 b1.124465A5.txt --b2 b2.sample.txt --event-type SE -e SE.MATS.JCEC.txt" --l1 A --l2 B --exon_s 1 --intron_s 1 -o SE_plot

and show the error message
image

I don't know why the file was truncated ? and the output Sashimi_plot folder was empty.
I think there might be someting wrong with chrX.

@EricKutschera
Copy link
Contributor

The error seems to be saying that pysam is unable to read one of your bam files. Can you run samtools view on each of your bam files?

The output also shows that your bam files are already indexed. That should be fine, but you could try removing those .bai files and letting rmats2sashimiplot regenerate them

@deb0612
Copy link
Author

deb0612 commented Nov 10, 2023

Thanks, I tried to delete the .bai file and regenerated by rmats2sashimiplot.
There is another error.
image

@EricKutschera
Copy link
Contributor

From the first screenshot it looks like you were using python 2.7 (/home/user/miniconda3/envs/py27). In the second screenshot it looks like you are using python 3.8 (/usr/lib/python3.8). The SyntaxError is about using python 3 to run code meant for python 2 (#83)

The rmats2sashimiplot code is written for python 2, but can be converted to python 3 with https://github.com/Xinglab/rmats2sashimiplot/blob/master/2to3.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants