Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
a32c54ba
Commit
a32c54ba
authored
Apr 07, 2015
by
Mikaël Salson
Browse files
generate-recombinations: generate all possible recombinations between genes
parent
0703c4ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
germline/generate-recombinations.py
View file @
a32c54ba
...
...
@@ -35,12 +35,9 @@ def recombine_VJ_with_removes(seq5, remove5, Nlength, remove3, seq3, code):
def
select_genes
(
rep5
,
rep3
,
at_least
=
0
):
nb
=
0
for
seq5
in
rep5
:
yield
(
seq5
,
random
.
choice
(
rep3
))
nb
+=
1
for
seq3
in
rep3
:
yield
(
random
.
choice
(
rep5
),
seq3
)
nb
+=
1
for
seq3
in
rep3
:
yield
(
seq5
,
seq3
)
nb
+=
1
while
nb
<
at_least
:
yield
(
random
.
choice
(
rep5
),
random
.
choice
(
rep3
))
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment