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

trouble running prepare #14

Open
mkostich opened this issue Oct 6, 2023 · 1 comment
Open

trouble running prepare #14

mkostich opened this issue Oct 6, 2023 · 1 comment

Comments

@mkostich
Copy link

mkostich commented Oct 6, 2023

I have tried GTFs from several sources, including Homo_sapiens.GRCh38.110.gtf https://ftp.ensembl.org/pub/release-110/gtf/homo_sapiens/Homo_sapiens.GRCh38.110.gtf.gz; also from NCBI, both mouse and human; but I keep getting this error:

pybedtools.helpers.BEDToolsError:
Command was:

   bedtools subtract -s -b /tmp/pybedtools.ltn85in9.tmp -a /tmp/pybedtools._7stsyty.tmp

Error message was:
Error: unable to open file or unable to determine types for file /tmp/pybedtools._7stsyty.tmp
Please ensure that your file is TAB delimited (e.g., cat -t FILE).
Also ensure that your file has integer chromosome coordinates in the expected columns (e.g., cols 2 and 3 for BED).

Here is an example command:
/opt/SCAPE/main.py prepare --gtf chr1.sort.gtf --prefix chr1_sort

I checked and see no signs of anything but tab delimiters in the gtfs; spaces are only found in the last column; if I try to get rid of those spaces, other issues arise (e.g. UnboundLocalError: cannot access local variable 'gene_type_id' where it is not associated with a value)

BTW I do get a _utr.bed file, but have no idea if it is finalized.

Do you have any idea about this? Where is it trying to write temporary files? I can read/write /tmp but don't see the files mentioned. It would be nice if you included a small GTF in your example_data to help with debugging.

Thanks for any help you can provide!

Mitch

@shyaman
Copy link

shyaman commented Dec 12, 2023

Hello @zhou-ran,

Thank you for your intriguing work. I am currently encountering the same issue, as have others (#12 #5 #6 #2). Given that it appears to be a bug with bedtools, could you please upload and share the processed human and mouse GTF files with us? This would greatly facilitate our use of the tool. Once again, thank you.

Shyaman

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