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

Strand information from flag #6

Closed
MuhammedHasan opened this issue Aug 4, 2021 · 4 comments
Closed

Strand information from flag #6

MuhammedHasan opened this issue Aug 4, 2021 · 4 comments

Comments

@MuhammedHasan
Copy link

MuhammedHasan commented Aug 4, 2021

Hi,

strands = pd.Series(strands).replace({16: "+", 0: "-"}).astype("category")

This line should be like that, isn't it?

strands = pd.Series(strands).replace({0: "+", 16: "-"}).astype("category")

flag 16 means that SEQ being reverse complemented so negative-strand?

https://en.wikipedia.org/wiki/SAM_(file_format)

@endrebak
Copy link
Collaborator

endrebak commented Aug 5, 2021

Have I made such a fundamental mistake? :(

@endrebak
Copy link
Collaborator

endrebak commented Aug 5, 2021

This answer seems to agree with you:

The bit for 16 is set if the read is mapped on the reverse strand

@endrebak
Copy link
Collaborator

endrebak commented Aug 5, 2021

Yikes, you are correct!

@endrebak
Copy link
Collaborator

endrebak commented Aug 5, 2021

Fixed and uploaded new version to PyPI.

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