Open yr542 opened 1 year ago
The main error is:
Error retrieving files from 25: invalid contig `25`
Are you sure 25 appears in your BAM file?
Aborting plot...
The traceback is a result of the invalid contig error which causes that function to return a partial result: https://github.com/Xinglab/rmats2sashimiplot/blob/v3.0.0/src/MISO/misopy/sashimi_plot/plot_utils/plot_gene.py#L63
This post has some suggestions about handling the invalid contig error: https://github.com/Xinglab/rmats2sashimiplot/issues/101#issuecomment-1642016386
In this case, rmats2sashimiplot is looking for a contig named 25
, but maybe the bam files actually have the contig named as chr25
? Recent versions of rmats2sashimiplot have --keep-event-chr-prefix
and --remove-event-chr-prefix
which might get rmats2sashimiplot to use the right contig name
Also since you mentioned that the error repeats a lot, you may want to filter the rMATS output file before using it with rmats2sashimiplot so that only the events you're interested in get plotted
The main error I have having (along with some basic
.out
file information before it):The error repeats on and one. The main section of the script as well as the variable are defined below. The paths cannot be given as I am on a HPC and they do not allow us to disclose any paths.
The variable(s):
bam_directory
= the path to a bam directoryoutput_directory
= the path to the output directoryrMats_Output_Directory
= path to the rMats output directoryevent_file
="${rMats_Output_Directory}/SE.MATS.JC.txt"singularity_image
the path to a singularity pulled from the docker located here.event_type
="SE"exon_skip
="1"intron_skip
="1"The main section of the script:
The bams I used for rMats2sashimiplot are aligned to the same GTF as the fq files used in a run of rMats-turbo (section of code used in rMats-turbo is used below):
rMats relevant section:
I had some issues using it with bams so I switched to fq. The issue was documented on the rMats-turbo repository issues here
How would I navigate around this issue for rMats2sashimiplot?