Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MC_MSA
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lihouck Flavien
MC_MSA
Commits
0b00b771
Commit
0b00b771
authored
3 years ago
by
Lihouck Flavien
Browse files
Options
Downloads
Patches
Plain Diff
Adding comments and fixing bugs on exonerate_parser
parent
a07d2d16
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/util/exonerate_parser.py
+8
-2
8 additions, 2 deletions
src/util/exonerate_parser.py
workflow/Snakefile
+378
-317
378 additions, 317 deletions
workflow/Snakefile
with
386 additions
and
319 deletions
src/util/exonerate_parser.py
+
8
−
2
View file @
0b00b771
#!/usr/bin/env python3
##
# This script aims to extract the mismatches found by exonerate and
import
sys
DEFAULT_DISTANCE
=
10
...
...
@@ -7,7 +10,11 @@ LINE_HEADER_SIZE = 9
def
get_region_file
(
regions
,
folder
,
value
):
target_region
=
""
for
elem
in
regions
:
if
not
isinstance
(
regions
,
list
):
elif
not
isinstance
(
regions
[
0
],
list
):
region_list
=
regions
[
0
].
replace
(
"
[
"
,
""
).
replace
(
"
]
"
,
""
).
split
(
"
"
)
for
elem
in
region_list
:
val
=
elem
.
split
(
"
_
"
)
#print(val, value)
if
int
(
val
[
0
])
<=
value
<
int
(
val
[
1
]):
...
...
@@ -94,7 +101,6 @@ def main():
output
.
write
(
str
(
value2
+
start
)
+
"
:
"
+
prefix_3
+
query
[
1
][
start
:
end
]
+
suffix_3
+
"
\n\n
"
)
pb_cnt
+=
1
file
=
get_region_file
(
regions
,
folder
,
y
)
print
(
file
)
extract_read_pile
(
file
,
value2
%
size
,
distance
,
output
,
len
(
str
(
value1
+
start
)
+
"
:
"
))
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
workflow/Snakefile
+
378
−
317
View file @
0b00b771
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