comparison mirbase_graphs.py @ 25:01e56d0bc409 draft

Uploaded
author glogobyte
date Wed, 20 Oct 2021 14:27:18 +0000
parents 958330b9bce3
children
comparison
equal deleted inserted replaced
24:1d8cdfb3a359 25:01e56d0bc409
583 h1=FPDF.get_y(pdf) 583 h1=FPDF.get_y(pdf)
584 pdf.image(images[2],x=1, w=6.5, h=5) 584 pdf.image(images[2],x=1, w=6.5, h=5)
585 h2=FPDF.get_y(pdf) 585 h2=FPDF.get_y(pdf)
586 FPDF.set_y(pdf,h1+0.2) 586 FPDF.set_y(pdf,h1+0.2)
587 pdf.set_font('Arial','B', 16.0) 587 pdf.set_font('Arial','B', 16.0)
588 pdf.cell(pdf.w-0.5, 0.5, 'Templated and non-templated isomiRs',align='C') 588 if analysis=="2":
589 pdf.cell(pdf.w-0.5, 0.5, 'Templated and non-templated isomiRs',align='C')
590 else:
591 pdf.cell(pdf.w-0.5, 0.5, 'Templated isomiRs',align='C')
589 pdf.set_font('Arial', '', 11.0) 592 pdf.set_font('Arial', '', 11.0)
590 FPDF.set_y(pdf,h2) 593 FPDF.set_y(pdf,h2)
591 FPDF.set_y(pdf,9.5) 594 FPDF.set_y(pdf,9.5)
592 pdf.cell(0.2) 595 pdf.cell(0.2)
593 596
595 pdf.cell(3.0, 0.0, " RefSeq miRNAs, templated isomiRs, non-templated isomiRs and unassigned sequences as percentage") 598 pdf.cell(3.0, 0.0, " RefSeq miRNAs, templated isomiRs, non-templated isomiRs and unassigned sequences as percentage")
596 pdf.ln(0.2) 599 pdf.ln(0.2)
597 pdf.cell(0.2) 600 pdf.cell(0.2)
598 pdf.cell(3.0, 0.0, " of total sRNA reads in "+group_name1.lower()+" (left) and "+group_name2.lower()+" (right) groups") 601 pdf.cell(3.0, 0.0, " of total sRNA reads in "+group_name1.lower()+" (left) and "+group_name2.lower()+" (right) groups")
599 else: 602 else:
600 pdf.cell(3.0, 0.0, " RefSeq miRNAS, Templated isomiRs and unassigned sequences as percentage of total sRNA reads in") 603 pdf.cell(3.0, 0.0, " RefSeq miRNAS, templated isomiRs and unassigned sequences as percentage of total sRNA reads in")
601 pdf.ln(0.2) 604 pdf.ln(0.2)
602 pdf.cell(0.2) 605 pdf.cell(0.2)
603 pdf.cell(3.0, 0.0, " "+group_name1.lower()+" (left) and "+group_name2.lower() + " (right) groups") 606 pdf.cell(3.0, 0.0, " "+group_name1.lower()+" (left) and "+group_name2.lower() + " (right) groups")
604 607
605 pdf.add_page() 608 pdf.add_page()