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 during parse_sam() #387

Open
dnygard opened this issue Feb 28, 2023 · 0 comments
Open

Error during parse_sam() #387

dnygard opened this issue Feb 28, 2023 · 0 comments

Comments

@dnygard
Copy link

dnygard commented Feb 28, 2023

Hi, I'm having trouble solving an error during sam parsing that occurs for all of the different sam files I have tried. The error is as follows:

Traceback (most recent call last):
File "/home/dnygard/projects/rrg-mlaval/dnygard/Gothic/TestPlayground2022/TADbitTest/TADbitTestScript.py", line 31, in
pytadbit.parsers.sam_parser.parse_sam(f_names1=fname1, f_names2=fname2, out_file1=out1, out_file2=out2, genome_seq=parsedGenome, re_name="HindIII", verbose=True, clean=True, mapper="BOWTIE2")
File "/usr/local/anaconda/lib/python3.9/site-packages/pytadbit/parsers/sam_parser.py", line 192, in parse_sam
tmp_name = tmp_files[0]
IndexError: list index out of range

I am running in Python 3.9 on Linux, and have been using the attached script for testing. The script gets past the genome parsing step just fine, but then halts during invocation of parse_sam(). I only provide one pair of sam files, rather than lists of files, so I don't know if that might be part of the issue. Please let me know if I can provide any additional information or if you have any questions. Thank you for your help.

TADbitTestScript.txt

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

1 participant