annotate _modules/SeqStats.py @ 1:ee73cdf35532 draft default tip

"planemo upload"
author bioit_sciensano
date Fri, 11 Mar 2022 16:02:03 +0000
parents 69e8f12c8b31
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
1 ##@file SeqStats.py
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
2 #
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
3 # Utility class to store results (statistics) for a sequence once all coverage results have been processed for it
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
4
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
5 class SeqStats:
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
6 def __init__(self,P_class, P_left, P_right, P_type, P_orient, ave_whole_cov, phage_plus_norm, phage_minus_norm, ArtcohesiveSeq,\
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
7 P_seqcoh, Redundant, Mu_like, added_whole_coverage, Permuted, termini_coverage_norm_close, picMaxPlus_norm_close, \
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
8 picMaxMinus_norm_close, gen_len, termini_coverage_close,ArtPackmode, termini, forward, reverse, ArtOrient, \
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
9 picMaxPlus_close, picMaxMinus_close, picOUT_norm_forw, picOUT_norm_rev, picOUT_forw, picOUT_rev, \
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
10 lost_perc, R1, R2, R3, picMaxPlus_host, picMaxMinus_host, drop_cov, added_paired_whole_coverage, P_concat):
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
11 self.P_class=P_class # TODO: some information about the meaning of these fields would be welcome.
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
12 self.P_left=P_left
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
13 self.P_right=P_right
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
14 self.P_type=P_type
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
15 self.P_orient=P_orient
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
16 self.ave_whole_cov=ave_whole_cov
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
17 self.phage_plus_norm=phage_plus_norm
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
18 self.phage_minus_norm=phage_minus_norm
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
19 self.ArtcohesiveSeq=ArtcohesiveSeq
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
20 self.P_seqcoh=P_seqcoh
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
21 self.Redundant=Redundant
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
22 self.Mu_like=Mu_like
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
23 self.added_whole_coverage=added_whole_coverage
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
24 self.Permuted=Permuted
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
25 self.termini_coverage_norm_close=termini_coverage_norm_close
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
26 self.picMaxPlus_norm_close=picMaxPlus_norm_close
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
27 self.picMaxMinus_norm_close=picMaxMinus_norm_close
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
28 self.gen_len=gen_len
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
29 self.termini_coverage_close=termini_coverage_close
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
30 self.ArtPackmode=ArtPackmode
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
31 self.termini=termini
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
32 self.forward=forward
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
33 self.reverse=reverse
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
34 self.ArtOrient=ArtOrient
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
35 self.picMaxPlus_close=picMaxPlus_close
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
36 self.picMaxMinus_close=picMaxMinus_close
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
37 self.picOUT_norm_forw=picOUT_norm_forw
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
38 self.picOUT_norm_rev=picOUT_norm_rev
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
39 self.picOUT_forw=picOUT_forw
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
40 self.picOUT_rev=picOUT_rev
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
41 self.lost_perc=lost_perc
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
42 self.R1=R1
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
43 self.R2=R2
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
44 self.R3=R3
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
45 self.picMaxPlus_host=picMaxPlus_host
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
46 self.picMaxMinus_host=picMaxMinus_host
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
47 self.drop_cov=drop_cov
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
48 self.added_paired_whole_coverage=added_paired_whole_coverage
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
49 self.P_concat=P_concat
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
50
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
51 def toFile(self,ficname): #TODO: implement me
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
52 pass
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
53
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
54 # types of the elements of the class
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
55 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
56 # <type 'numpy.int64'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
57 # <type 'numpy.int64'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
58 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
59 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
60 # <type 'float'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
61 # <class 'pandas.core.frame.DataFrame'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
62 # <class 'pandas.core.frame.DataFrame'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
63 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
64 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
65 # <type 'int'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
66 # <type 'int'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
67 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
68 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
69 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
70 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
71 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
72 # <type 'int'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
73 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
74 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
75 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
76 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
77 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
78 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
79 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
80 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
81 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
82 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
83 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
84 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
85 # <type 'float'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
86 # <type 'float'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
87 # <type 'float'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
88 # <type 'float'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
89 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
90 # <type 'str'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
91 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
92 # <type 'list'>
69e8f12c8b31 "planemo upload"
bioit_sciensano
parents:
diff changeset
93 # <type 'str'>