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

Error happened!: Command 'regtools junctions extract -i 5 -I 10000000 tests/test.bam -o test.bed' returned non-zero exit status 1. #1

Closed
ptnaimelmm opened this issue Apr 20, 2021 · 19 comments

Comments

@ptnaimelmm
Copy link

Hi there,

An error occurred when I use ScanExitron to analyze test data in the packages. Have you met this problem previously? Any suggestions? Thanks.

Error happened!: Command 'regtools junctions extract -i 5 -I 10000000 tests/test.bam -o test.bed' returned non-zero exit status 1.
test error
File "ScanExitron.py", line 136, in junction_caller
cmd = 'regtools junctions annotate {0} {1} {2} -o {3}.janno'.format(bed, fasta, gtf, out_name)
UnboundLocalError: local variable 'bed' referenced before assignment

@dolittle007
Copy link
Contributor

Please try to use RegTools v0.4.2 or a lower version.
It seems that RegTools v0.5 API has changed a lot, including the parameters.
Thank you.

@ptnaimelmm
Copy link
Author

ptnaimelmm commented Apr 21, 2021 via email

@dolittle007
Copy link
Contributor

dolittle007 commented Apr 21, 2021

The error message clearly showed that you were using RegTools 0.5.2.
"got the same error" means you were using the same version of RegTools, even you installed a different version.
You can type in the command line: regtools to check the output. Like the following information.

Program: regtools
Version: 0.4.0
Usage: regtools [options]
Command: junctions Tools that operate on feature junctions.
(eg. exon-exon junctions from RNA-seq.)
cis-ase Tools related to allele specific expression in cis.
cis-splice-effects Tools related to splicing effects of variants.
variants Tools that operate on variants.

You have to type "which regtools" to see which RegTools you were using. You may need to change the $PATH environment variable, as well.

Thank you for your suggestions, I will update the README to emphasize that only RegTools (v0.4) works.

@dolittle007
Copy link
Contributor

I've made a small modification to ScanExitron, it can work with RegTools v0.5.0 now.
Thank you.

@ptnaimelmm
Copy link
Author

ptnaimelmm commented Apr 21, 2021 via email

@dolittle007
Copy link
Contributor

I have updated the README.
I've tested it. It works fine on RegTools v0.4.2.

@ptnaimelmm
Copy link
Author

ptnaimelmm commented Apr 22, 2021 via email

@dolittle007
Copy link
Contributor

Hi, I've tested it using the latest Gencode v37 GTF and its corresponding CDS bed file.
It works fine. The output is the same as the one in the tests folder, except for the gene version (ENSG00000005379.17, ENSG00000005884.18).

@ptnaimelmm
Copy link
Author

ptnaimelmm commented Apr 22, 2021 via email

@ptnaimelmm
Copy link
Author

ptnaimelmm commented Apr 26, 2021 via email

@dolittle007
Copy link
Contributor

Thank you.
It is an issue introduced by gtf2bed.
I cannot access your attached files, but I analyzed SRR10316392 from NCBI SRA.
SRR10316392.chr17.exitron.txt

@ptnaimelmm
Copy link
Author

ptnaimelmm commented Apr 27, 2021 via email

@fuhao1216
Copy link

Hi there,

An error occurred when I use ScanExitron to analyze test data in the packages. Have you met this problem previously? Any suggestions? Thanks.

Error happened!: Command 'regtools junctions extract -i 5 -I 10000000 tests/test.bam -o test.bed' returned non-zero exit status 1.
test error
File "ScanExitron.py", line 136, in junction_caller
cmd = 'regtools junctions annotate {0} {1} {2} -o {3}.janno'.format(bed, fasta, gtf, out_name)
UnboundLocalError: local variable 'bed' referenced before assignment

same question ,have u solved it?

@dolittle007
Copy link
Contributor

dolittle007 commented May 7, 2021

@fuhao1216, It seems that you used RegTools v0.5.2, If you install RegTools 0.4.2 as the README indicated the problem will disappear.

@dolittle007
Copy link
Contributor

@ptnaimelmm GTF2BED will add additional "zero_length_insertion" tag to BED file. ScanExitron can handle it correctly, after a small modification.

@ptnaimelmm
Copy link
Author

ptnaimelmm commented May 7, 2021 via email

@ptnaimelmm
Copy link
Author

ptnaimelmm commented May 7, 2021 via email

@dolittle007
Copy link
Contributor

@ptnaimelmm, Researchers can do a lot of downstream analysis using the identified exitrons based on their projects.
The output files are tab-delimited text files, you can achieve your goal using R or Python or any programing language.

@dolittle007
Copy link
Contributor

The problems have been solved.

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

3 participants