Skip to content

Commit

Permalink
contig as gene
Browse files Browse the repository at this point in the history
  • Loading branch information
mfansler authored and akmorrow13 committed Feb 27, 2023
1 parent 736bcd0 commit 528adfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion umi_tools/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ def main(argv=None):

if options.tsv:
if options.per_gene:
gene = read.get_tag(gene_tag)
if options.per_contig:
gene = read.reference_name
else:
gene = read.get_tag(gene_tag)
else:
gene = "NA"
mapping_outfile.write("%s\n" % "\t".join(map(str, (
Expand Down

0 comments on commit 528adfd

Please sign in to comment.