Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
svlib
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SVdetection
svlib
Commits
7f52e9e3
Commit
7f52e9e3
authored
5 years ago
by
Thomas Faraut
Browse files
Options
Downloads
Patches
Plain Diff
Resolved merge conflict pindel specific filter
parent
4ed7e17f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
svreader/pindel.py
+6
-7
6 additions, 7 deletions
svreader/pindel.py
svrunner_utils.pyc
+0
-0
0 additions, 0 deletions
svrunner_utils.pyc
svtyper_utils.pyc
+0
-0
0 additions, 0 deletions
svtyper_utils.pyc
with
6 additions
and
7 deletions
svreader/pindel.py
+
6
−
7
View file @
7f52e9e3
...
...
@@ -320,7 +320,7 @@ class PindelRecord(SVRecord):
calls
.
append
(
calldata
)
return
calls
def
MaxIndSupport
ingRP
(
self
):
def
MaxInd
ividual
Support
(
self
):
max_ind_supp
=
0
for
s
in
self
.
__samples
:
ad
=
s
[
"
up_var_read_supp
"
]
+
s
[
"
down_var_read_supp
"
]
...
...
@@ -331,7 +331,7 @@ class PindelRecord(SVRecord):
alt
=
[
vcf
.
model
.
_SV
(
self
.
sv_type
)]
info
=
{
"
SVLEN
"
:
self
.
sv_len
,
"
SVTYPE
"
:
self
.
sv_type
}
info
[
"
MAX_IND_SU
"
]
=
self
.
MaxIndSupport
ingRP
()
info
[
"
MAX_IND_SU
"
]
=
self
.
MaxInd
ividual
Support
()
info
[
"
VSAMPLES
"
]
=
"
,
"
.
join
(
self
.
variantSamples
())
info
.
update
(
self
.
Modinfo
)
...
...
@@ -388,15 +388,15 @@ class PindelReader(SVReader):
# # Sudmant et al 2015 SuppInfo
# return (record.length() > 60)
def
SpecificFilterPass
(
self
,
record
):
if
(
abs
(
record
.
start
-
record
.
end
+
1
)
>=
2000
or
record
.
MaxIndSupportingRP
()
<=
4
):
# fILTER
if
record
.
length
()
>=
800
or
record
.
length
()
<=
60
:
return
False
elif
record
.
MaxIndividualSupport
()
<=
3
:
return
False
else
:
return
True
###### Old Stuff ############################
def
remove_duplicate
(
self
,
records
):
"""
returns a vector of records where duplicates were removed
...
...
@@ -430,7 +430,6 @@ class PindelReader(SVReader):
return
True
return
False
###### Old Stuff ############################
class
PindelWriter
(
SVWriter
):
def
__init__
(
self
,
file_name
,
reference_contigs
,
template_reader
):
...
...
This diff is collapsed.
Click to expand it.
svrunner_utils.pyc
0 → 100644
+
0
−
0
View file @
7f52e9e3
File added
This diff is collapsed.
Click to expand it.
svtyper_utils.pyc
0 → 100644
+
0
−
0
View file @
7f52e9e3
File added
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