Commit a1c17f2d authored by Fabrice Allain's avatar Fabrice Allain
Browse files

mapreport format revision

parent 603f202a
......@@ -19,6 +19,7 @@ import pandas as pd
import seaborn as sns
import numpy as np
import datetime
import textwrap
from .ndconv import net_deconv
from matplotlib import pyplot as plt
import aria.ConversionTable as ConversionTable
......@@ -27,7 +28,6 @@ from matplotlib.lines import Line2D
from .base import (tickmin, tickrot, titleprint)
import sklearn.metrics as skm
LOG = logging.getLogger(__name__)
......@@ -477,7 +477,8 @@ class ProteinMap(Map):
##
## -----------------------------------------------------------------------------
##
## Sequence: {seq}
## Sequence:
## {seq}
## Protein length: {protlen}
##
## -----------------------------------------------------------------------------
......@@ -523,7 +524,8 @@ class ProteinMap(Map):
## Score tresholds ({map2name}):
## {rocthres}""".format(
map1name=map1name, map2name=map2name, map1path=self.path,
map2path=cmpmap.path, seq=self.sequence,
map2path=cmpmap.path,
seq="\n## ".join(textwrap.wrap(self.sequence, width=77)),
protlen=len(self.sequence),
date=datetime.date.today().strftime("%A %d. %B %Y"),
outdir=outdir, accuracy=acc, precision=prec, recall=recall,
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment