Skip to content

Commit 62821b9

Browse files
committed
Refactoring complete
1 parent 19b74f0 commit 62821b9

File tree

4 files changed

+6
-613
lines changed

4 files changed

+6
-613
lines changed

neat/models/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from .models import *
1+
from .error_models import *
2+
from .mutation_model import *
3+
from .fragment_model import *

neat/models/error_models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
from .variant_models import InsertionModel, DeletionModel, SnvModel
2121

2222
__all__ = [
23-
"ErrorContainer"
23+
"ErrorContainer",
24+
"SequencingErrorModel"
2425
]
2526

2627
_LOG = logging.getLogger(__name__)

neat/models/fragment_model.py

+1-17
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,19 @@
44
must have a corresponding model in order to be fully implemented.
55
"""
66

7-
import re
87
import logging
9-
import abc
10-
import sys
118

129
from numpy.random import Generator
13-
from Bio.Seq import Seq
14-
from Bio import SeqRecord
1510

16-
from neat import variants
17-
18-
from ..common import TRINUC_IND, ALLOWED_NUCL, NUC_IND, DINUC_IND
19-
from .default_mutation_model import *
2011
from .default_sequencing_error_model import *
2112

2213
__all__ = [
23-
"MutationModel",
24-
"SequencingErrorModel",
25-
"FragmentLengthModel",
26-
"InsertionModel",
27-
"DeletionModel",
28-
"SnvModel",
29-
"ErrorContainer"
14+
"FragmentLengthModel"
3015
]
3116

3217
_LOG = logging.getLogger(__name__)
3318

3419

35-
3620
class FragmentLengthModel:
3721
"""
3822
A model of the fragment length based on mean and standard deviation of the dataset. Used both

0 commit comments

Comments
 (0)