Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript sequence extractor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
zavolan_group
tools
Transcript sequence extractor
Commits
6adfc082
Commit
6adfc082
authored
2 years ago
by
Samuel Mondal
Browse files
Options
Downloads
Patches
Plain Diff
Changing output from a list to a list of tuples
parent
319c242f
Branches
Branches containing commit
No related tags found
1 merge request
!39
Changing list with alternating headers and sequences into list of tuples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sequence_extractor/exon_concatenation.py
+2
-4
2 additions, 4 deletions
sequence_extractor/exon_concatenation.py
with
2 additions
and
4 deletions
sequence_extractor/exon_concatenation.py
+
2
−
4
View file @
6adfc082
...
...
@@ -20,10 +20,8 @@ def exon_concatenation(
if
annotation
[
-
1
]
==
line1
[
0
:
16
]:
read
+=
line2
[:
-
1
]
elif
annotation
[
-
1
]
!=
line1
[
0
:
16
]:
fasta_format_list
.
append
(
annotation
[
-
1
])
fasta_format_list
.
append
(
read
)
fasta_format_list
.
append
((
annotation
[
-
1
],
read
))
annotation
.
append
(
line1
[
0
:
16
])
read
=
line2
[:
-
1
]
fasta_format_list
.
append
(
annotation
[
-
1
])
fasta_format_list
.
append
(
read
)
fasta_format_list
.
append
((
annotation
[
-
1
],
read
))
return
fasta_format_list
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