Skip to content

Commit

Permalink
Modify filter count matric to inlcude lower case txid
Browse files Browse the repository at this point in the history
  • Loading branch information
tderrien committed Dec 10, 2023
1 parent 35fec34 commit f35d91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/filter_gtf_ndr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def parse_bambu(line):

def parse_tfkmers(line):
ids = line[0].split("::")
return ids[0], ids[1], line[1]
return ids[1], ids[0], line[1]


def parse_ndr(csv, origin, th) -> Set[str]:
Expand Down Expand Up @@ -39,7 +39,7 @@ def filter_count_matrix(file, transcripts, wr):
print(next(file), file=wr)
for line in file:
line_splitted = line.split("\t")
if line_splitted[0].startswith("BambuTx") and line_splitted[0] not in transcripts:
if line_splitted[0].startswith("BambuTx") and line_splitted[0].lower() not in transcripts:
continue
print(line.rstrip(), file=wr)

Expand Down

0 comments on commit f35d91d

Please sign in to comment.