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

Sequences of negative strands are not reverse complemented using script "get_multiseq.py" #5

Open
Gongmian784 opened this issue Oct 11, 2022 · 0 comments

Comments

@Gongmian784
Copy link

Hi,

I have used the pipeline and get the multiallelic sequences using the script get_multiseq.py.
However, I find some of the nodes of negative strands are not reverse complemented. This may be due to the codes in line 94-103 in script get_multiseq.py:
if ind == (len(paths) - 1): try: totseq += grseq[path][:100] if chainstrand[2] == "+" else revcomp(grseq[path])[ :100] except: totseq += grseq[path] if chainstrand[2] == "+" else revcomp( grseq[path]) else: totseq += grseq[path] if chainstrand[2] == "+" else revcomp( grseq[path])

All of the chainstrand list are indexed as '2'. I think the index should be corrected as 'ind'.

Please check about it.

Thanks for these useful tools!

Mian

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