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

Updating to use python3 and updated pysam #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DavidStreid
Copy link

Updating bamkit to use python3 and updated pysam syntax

Changes

python3

  • print(), exceptions, etc.

pysam

  • Samfile -> AlignmentFile; AlignedRead -> AlignedSegment [pysam-0.8.1]
  • AlignedSegment:
    • opt() -> get_tag() [pysam-0.8.2]
    • is_duplicate
    • is_supplementary instead of flagcheck.flag & 2048 == 2048
    • cigar -> cigartuples
    • qname -> queryname

Testing

vyx-L-HGL63D9FVK:bamkit dstreid$ python3 
Python 3.11.6 (main, Nov  2 2023, 04:39:43) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import bamcleanheader
>>> import bamfilterrg
>>> import bamfixflags
>>> import bamgroupreads
>>> import bamheadrg
>>> import bamlibs
>>> import bamtofastq
>>> exit()

@DavidStreid DavidStreid changed the title updated syntax, pysam (AlignedFile and is_supplementary) Updating to use python3 and updated pysam Apr 4, 2024
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

Successfully merging this pull request may close these issues.

1 participant