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

[BUG] <title>SyntaxWarning in pgap.py #330

Open
junkim83 opened this issue Jan 15, 2025 · 3 comments
Open

[BUG] <title>SyntaxWarning in pgap.py #330

junkim83 opened this issue Jan 15, 2025 · 3 comments

Comments

@junkim83
Copy link

Describe the bug

A syntax warning message keeps showing when I run the './pgap.py --update'.

"/home/junkim/./pgap.py:133: SyntaxWarning: invalid escape sequence '['
r = "^[(?P[^\]]+)] (?P[^ ]+) [(?P[^ ]) (?P[^\]])] (?P.*)"
/home/junkim/./pgap.py:978: SyntaxWarning: invalid escape sequence '-'
if not re.match("^[a-zA-Z0-9_-]+$", prefix):
/home/junkim/./pgap.py:1109: SyntaxWarning: invalid escape sequence '-'
parser.error("Invalid Command Line Argument Error: Both arguments -s--organism and -g--genome must be provided if no YAML file is provided.")"

Expected behavior

I think it's a code issue in pgap.py, how do I fix it?

Software versions (please complete the following information):

  • OS: ubuntu 24.04.01 LTS
  • Docker version 26.1.3, build 26.1.3-0ubuntu1~24.04.1
@azat-badretdin
Copy link
Contributor

Thank you for your report, user @junkim83

You can prepend offending characters with backslash

@junkim83
Copy link
Author

junkim83 commented Jan 15, 2025

So, I can modify the code by myself, correct? @azat-badretdin

@azat-badretdin
Copy link
Contributor

Yes. But please make sure to run it with -no-self-update flag after modification, otherwise it will try to replace your local modified copy with the intact server copy.

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