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
I was recently working on ATAC data. Therefore, i wanted to ask if demuxalot can be used for ATAC data?
Because each time i try to use it for my data i get the following error.
KeyError: “tag ‘NH’ not present
Incase it can be used for ATAC data as well, if yes, there is a way to solve this issue.
The text was updated successfully, but these errors were encountered:
Hi, I think after recent update I think you can actually use demuxalot for scATAC demuxing, though with some trickery.
You'll need to provide custom callback for parsing reads instead, I think this one should be optimal:
def parse_read(read: AlignedRead) -> Optional[Tuple[float, int]]:
"""
returns None if read should be ignored.
Read still can be ignored if it is not in the barcode list
"""
if read.get_tag("AS") <= len(read.seq) - 6:
# more than 2 edits
return None
if not read.has_tag("UB"):
# does not have molecule barcode
return None
if read.mapq < 20:
# this one should not be triggered because of NH, but just in case
return None
p_misaligned = 0.01 # default value
fake_ub = random.randint(0, 2 ** 31)
return p_misaligned, fake_ub
A word of warning: 1) I don't have any scATAC data to test, 2) most important changes in demuxalot are scrnaseq-specific, so you're unlikely to benefit from them
I was recently working on ATAC data. Therefore, i wanted to ask if demuxalot can be used for ATAC data?
Because each time i try to use it for my data i get the following error.
KeyError: “tag ‘NH’ not present
Incase it can be used for ATAC data as well, if yes, there is a way to solve this issue.
The text was updated successfully, but these errors were encountered: