Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
F
Fasta file Filter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirandaa
Fasta file Filter
Commits
1ce17479
Commit
1ce17479
authored
Nov 23, 2018
by
mirandaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only slipt on starting >
parent
16ef78d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
main.py
main.py
+1
-3
No files found.
main.py
View file @
1ce17479
...
...
@@ -3,7 +3,6 @@ Created on 08.11.2018
@author: mirandaa
'''
import
re
if
__name__
==
'__main__'
:
print
(
'''program to get the fasta files from a list of accession numbers
...
...
@@ -23,8 +22,7 @@ good luck!
with
open
(
'protg_uniprot-mouse20170704.fasta'
,
'r'
)
as
fasta_file
:
fasta
=
fasta_file
.
read
()
#parts = fasta.split('>')
parts
=
re
.
split
(
'^>'
,
fasta
)
parts
=
fasta
.
split
(
'
\n
>'
)
partsDict
=
{}
for
part
in
parts
:
part1
=
part
.
split
(
'
\n
'
)[
0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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