Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua-A
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
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
2023 Competition
Software Tools
Tsinghua-A
Commits
ec964cc0
Commit
ec964cc0
authored
1 year ago
by
Ziqian
Browse files
Options
Downloads
Patches
Plain Diff
gen seq
parent
35e0dc9a
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
seq_gen.py
+13
-0
13 additions, 0 deletions
seq_gen.py
with
13 additions
and
0 deletions
seq_gen.py
0 → 100644
+
13
−
0
View file @
ec964cc0
from
itertools
import
product
def
gen_seq
(
seq_list
):
gen_list
=
[]
# df = pd.DataFrame()
j
=
1
for
i
in
product
(
*
seq_list
):
j
=
j
+
1
gen_aa
=
''
.
join
(
i
)
gen_list
.
append
(
gen_aa
)
if
j
==
1000
:
break
return
gen_list
\ No newline at end of file
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