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
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
SVdetection
svlib
Commits
68b5c6df
Commit
68b5c6df
authored
5 years ago
by
Thomas Faraut
Browse files
Options
Downloads
Patches
Plain Diff
new pindel specific filter
parent
4ed7e17f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
svreader/pindel.py
+6
-8
6 additions, 8 deletions
svreader/pindel.py
with
6 additions
and
8 deletions
svreader/pindel.py
+
6
−
8
View file @
68b5c6df
...
@@ -320,7 +320,7 @@ class PindelRecord(SVRecord):
...
@@ -320,7 +320,7 @@ class PindelRecord(SVRecord):
calls
.
append
(
calldata
)
calls
.
append
(
calldata
)
return
calls
return
calls
def
MaxIndSupport
ingRP
(
self
):
def
MaxInd
ividual
Support
(
self
):
max_ind_supp
=
0
max_ind_supp
=
0
for
s
in
self
.
__samples
:
for
s
in
self
.
__samples
:
ad
=
s
[
"
up_var_read_supp
"
]
+
s
[
"
down_var_read_supp
"
]
ad
=
s
[
"
up_var_read_supp
"
]
+
s
[
"
down_var_read_supp
"
]
...
@@ -331,7 +331,7 @@ class PindelRecord(SVRecord):
...
@@ -331,7 +331,7 @@ class PindelRecord(SVRecord):
alt
=
[
vcf
.
model
.
_SV
(
self
.
sv_type
)]
alt
=
[
vcf
.
model
.
_SV
(
self
.
sv_type
)]
info
=
{
"
SVLEN
"
:
self
.
sv_len
,
"
SVTYPE
"
:
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
[
"
VSAMPLES
"
]
=
"
,
"
.
join
(
self
.
variantSamples
())
info
.
update
(
self
.
Modinfo
)
info
.
update
(
self
.
Modinfo
)
...
@@ -388,15 +388,14 @@ class PindelReader(SVReader):
...
@@ -388,15 +388,14 @@ class PindelReader(SVReader):
# # Sudmant et al 2015 SuppInfo
# # Sudmant et al 2015 SuppInfo
# return (record.length() > 60)
# return (record.length() > 60)
def
SpecificFilterPass
(
self
,
record
):
def
SpecificFilterPass
(
self
,
record
):
if
(
abs
(
record
.
start
-
record
.
end
+
1
)
>=
2000
or
# new pindel specific filter
record
.
MaxIndSupportingRP
()
<=
4
):
if
record
.
length
()
>=
800
or
record
.
length
()
<=
60
:
return
False
elif
record
.
MaxIndividualSupport
()
<=
3
:
return
False
return
False
else
:
else
:
return
True
return
True
###### Old Stuff ############################
def
remove_duplicate
(
self
,
records
):
def
remove_duplicate
(
self
,
records
):
"""
"""
returns a vector of records where duplicates were removed
returns a vector of records where duplicates were removed
...
@@ -430,7 +429,6 @@ class PindelReader(SVReader):
...
@@ -430,7 +429,6 @@ class PindelReader(SVReader):
return
True
return
True
return
False
return
False
###### Old Stuff ############################
class
PindelWriter
(
SVWriter
):
class
PindelWriter
(
SVWriter
):
def
__init__
(
self
,
file_name
,
reference_contigs
,
template_reader
):
def
__init__
(
self
,
file_name
,
reference_contigs
,
template_reader
):
...
...
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