Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MIT_MAHE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2022 Competition
Software Tools
MIT_MAHE
Commits
2b605d34
Commit
2b605d34
authored
2 years ago
by
Ashrith Sagar Yedlapalli
Browse files
Options
Downloads
Patches
Plain Diff
c0.15.22
parent
b2778c11
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pep_mod.py
+4
-3
4 additions, 3 deletions
pep_mod.py
with
4 additions
and
3 deletions
pep_mod.py
+
4
−
3
View file @
2b605d34
...
...
@@ -168,8 +168,10 @@ class mutater:
"""
P&C of new_mutations. nCr approach.
Choose r mutation positions at a time, out of n mutations.
Implemented using the Cartesian product.
"""
sequences
=
itertools
.
product
(
*
self
.
sequential_mutations
)
# sequences = [x for x in itertools.product(*self.sequential_mutations)]
try
:
sequences
=
[
x
for
x
in
itertools
.
product
(
*
self
.
sequential_mutations
)]
except
:
sequences
=
itertools
.
product
(
*
self
.
sequential_mutations
)
print
(
"
S| Converted mutations to sequences format
"
)
self
.
sequences
=
sequences
...
...
@@ -399,7 +401,6 @@ def main():
muts
=
mutations_obj
.
by_groups
()
seqs
=
mutations_obj
.
to_sequences
()
mutations_obj
.
show_sequences
()
mutations_obj
.
save_sequences
(
output_file
.
replace
(
"
.txt
"
,
"
_BAlsAllSeqs.txt
"
))
if
args
.
dipeptide
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment