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

Variable 'length' referenced before assignment #4

Open
fkollingiv opened this issue Aug 26, 2021 · 2 comments
Open

Variable 'length' referenced before assignment #4

fkollingiv opened this issue Aug 26, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@fkollingiv
Copy link

Hello,

I'm working my way through the early steps of the pipeline and can't get past the rageMatch.py script. I am receiving the following error: UnboundLocalError: local variable 'length' referenced before assignment

Here is the command: python ~/rageseq-master/rageMatch.py -q ../Dartmouth-RAGESeq-Nanopoe-LSK110-8242021/fastq_pass/rage.fastq.gz -o ./ -b transformed-bc.tsv --length 200 -t 10 -f 250 -n 1

Any help is greatly appreciated.

@fkollingiv
Copy link
Author

I probably should have included the error as well:

Traceback (most recent call last):
File "/dartfs-hpc/rc/home/j/f00331j/rageseq-master/rageMatch.py", line 129, in
main()
File "/dartfs-hpc/rc/home/j/f00331j/rageseq-master/rageMatch.py", line 79, in main
do_batch(args, fq_list, bcs, out)
File "/dartfs-hpc/rc/home/j/f00331j/rageseq-master/rageMatch.py", line 95, in do_batch
k = re.search(bc[2], fq[1][:length])
UnboundLocalError: local variable 'length' referenced before assignment

@Psy-Fer
Copy link
Collaborator

Psy-Fer commented Aug 30, 2021

Hello,

Please do a git clone to the the small bug fix I just did on rageMatch.py to fix this issue.
Sorry about that. Our internal version of these scripts has been totally re-written, so I didn't catch this bug.

Cheers,
James

@Psy-Fer Psy-Fer added the bug Something isn't working label Aug 30, 2021
@Psy-Fer Psy-Fer self-assigned this Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants