You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
last_read always starts as None so on the first pass last_read is set to the current read.query_name and
nothing is run. What does this first read look like, do we need it?
Loop then runs unless read.query_name matches last_read, yielding read (as a list) which will actually be the
value from the previous pass.
Following switches to passing the bam_file path, adds typehints and docstring.
fromisoslamimportiodeffragment_iterator(bam_file: str|Path) ->Generator[?, None, None]:
""" Iterate over fragments from a `.bam` file. Parameters ---------- bam_file : str | Path Returns ------- Generator Iterable of reads from BAM file. """
...
forreadinio.load_file(bam_file):
...
I need to work through what this is doing and get a better understanding. Tests here we come!
The text was updated successfully, but these errors were encountered:
Currently we have...
Where
read_iterator
is thebamfile
.Need to think through the logic here......
last_read
always starts asNone
so on the first passlast_read
is set to the currentread.query_name
andnothing is run. What does this first
read
look like, do we need it?read.query_name
matcheslast_read
, yieldingread
(as a list) which will actually be thevalue from the previous pass.
Following switches to passing the
bam_file
path, adds typehints and docstring.I need to work through what this is doing and get a better understanding. Tests here we come!
The text was updated successfully, but these errors were encountered: