@@ -74,7 +74,6 @@ def argparser():
7474 parser .add_argument (
7575 "--de_stats" , required = False , type = str , default = None , nargs = '*' ,
7676 help = "Differential expression report optional" )
77- parser .add_argument ('--denovo' , dest = 'denovo' , action = 'store_true' )
7877
7978 return parser
8079
@@ -699,21 +698,16 @@ def transcript_table(report, df_tmaps, max_rows):
699698 section .table (df , index = False )
700699
701700
702- def transcriptome_summary (report , gffs , sample_ids , denovo = False ):
701+ def transcriptome_summary (report , gffs , sample_ids ):
703702 """
704703 Plot transcriptome summaries.
705704
706705 Some of this data is available via gffcompare output, but the de novo
707706 pipeline skips that, so we do it all here.
708707
709- We do not report exon number for the denovo assembly yet. This is because
710- in this case, the gff annotation is generated by aligning to the CDS not
711- the genome.
712-
713708 :param report: aplanat WFReport
714709 :param gffs: list of paths to gff transcriptome annotations
715710 :param sample_ids: list of sample ids
716- :param denovo: whether annotation was generated by de novo pipeline or not
717711 """
718712 # test.db gets written to the git repo.
719713 section = report .add_section ()
@@ -771,17 +765,16 @@ def transcriptome_summary(report, gffs, sample_ids, denovo=False):
771765 title = 'transcript lengths' )
772766 plots .append (box )
773767
774- if not denovo :
775- x , y = zip (* sorted (exons_per_transcript .items ()))
768+ x , y = zip (* sorted (exons_per_transcript .items ()))
776769
777- fig = figure (title = "Exons per transcript" )
778- fig .vbar (
779- x , top = list (y ), color = Colors .cerulean )
780- fig .xaxis .axis_label = 'Num. exons'
781- fig .yaxis .axis_label = 'Num. genes'
770+ fig = figure (title = "Exons per transcript" )
771+ fig .vbar (
772+ x , top = list (y ), color = Colors .cerulean )
773+ fig .xaxis .axis_label = 'Num. exons'
774+ fig .yaxis .axis_label = 'Num. genes'
782775
783- fig .xaxis .major_label_orientation = math .pi / 2.8
784- plots .append (fig )
776+ fig .xaxis .major_label_orientation = math .pi / 2.8
777+ plots .append (fig )
785778
786779 df_sum = pd .DataFrame .from_dict (
787780 {'Total genes' : [num_genes ],
@@ -929,7 +922,7 @@ def main(args):
929922 # Results
930923 if args .gff_annotation is not None :
931924 transcriptome_summary (
932- report , args .gff_annotation , sample_ids , denovo = args . denovo )
925+ report , args .gff_annotation , sample_ids )
933926
934927 if args .gffcompare_dir is not None :
935928 df_tmaps = gff_compare_plots (
0 commit comments