Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
panacota
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Amandine PERRIN
panacota
Commits
72cd4383
Commit
72cd4383
authored
1 year ago
by
Amandine PERRIN
Browse files
Options
Downloads
Patches
Plain Diff
Change protein name extraction method
parent
a3dd47b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#106500
failed
1 year ago
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PanACoTA/align_module/get_seqs.py
+5
-4
5 additions, 4 deletions
PanACoTA/align_module/get_seqs.py
with
5 additions
and
4 deletions
PanACoTA/align_module/get_seqs.py
+
5
−
4
View file @
72cd4383
...
...
@@ -265,10 +265,11 @@ def extract_sequences(to_extract, fasf, files_todo=None, outf=None):
previous_fp
=
None
# Extract sequence name
last_char
=
line
.
find
(
'
'
)
if
last_char
==
-
1
:
last_char
=
len
(
line
)
seq
=
line
[
1
:
last_char
].
strip
()
# last_char = line.find(' ')
# if last_char == -1:
# last_char = len(line)
# seq = line[1:last_char].strip()
seq
=
line
.
strip
().
split
()[
0
][
1
:]
# Seq is part of sequences to extract
if
seq
in
to_extract
:
...
...
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