Skip to content

Commit fedc3a3

Browse files
committed
fix quantify mode output order
1 parent 2d46fe8 commit fedc3a3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/get_primary_sam.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ def primary_and_unaligned_chimeric(sam_alnm_file, prefix, metagenome_list=None,
365365
continue
366366
beta_list.append(counts[1] / (counts[0] + counts[1]) * 100 / other_prob)
367367

368+
strandness = float(pos_strand) / num_aligned
369+
if q_mode:
370+
return [], strandness
371+
368372
out_sam_file.close()
369373
unaligned_len = numpy.array(unaligned_len)
370374

@@ -382,8 +386,4 @@ def primary_and_unaligned_chimeric(sam_alnm_file, prefix, metagenome_list=None,
382386
chimeric_file.write("Shrinkage rate (beta):\t" + str(median(beta_list)))
383387
chimeric_file.close()
384388

385-
strandness = float(pos_strand) / num_aligned
386-
if q_mode:
387-
return [], strandness
388-
389389
return unaligned_len, strandness

src/read_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def main():
253253
parser_t = subparsers.add_parser('transcriptome', help="Run the simulator on transcriptome mode")
254254
parser_t.add_argument('-i', '--read', help='Input read for training', required=True)
255255
parser_t.add_argument('-rg', '--ref_g', help='Reference genome', required=True)
256-
parser_t.add_argument('-rt', '--ref_t', help='Reference Transcriptome', required=True) # ?
256+
parser_t.add_argument('-rt', '--ref_t', help='Reference Transcriptome', required=True)
257257
parser_t.add_argument('-annot', '--annotation', help='Annotation file in ensemble GTF/GFF formats, '
258258
'required for intron retention detection', default='')
259259
parser_t.add_argument('-a', '--aligner', help='The aligner to be used: minimap2 or LAST (Default = minimap2)',

0 commit comments

Comments
 (0)