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
Compare revisions
cc29fe602519a340cb937c1dbf9a5117def559b7 to d34684ca63cee908eeac095f90ce58dbb9232181
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
svdetection/svlib
Select target project
No results found
d34684ca63cee908eeac095f90ce58dbb9232181
Select Git revision
Branches
master
newfilter
Swap
Target
svdetection/svlib
Select target project
svdetection/svlib
1 result
cc29fe602519a340cb937c1dbf9a5117def559b7
Select Git revision
Branches
master
newfilter
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
new implementation of get samples in lumpy
· d34684ca
Thomas Faraut
authored
5 years ago
d34684ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
svreader/annotation.py
+1
-0
1 addition, 0 deletions
svreader/annotation.py
svreader/lumpy.py
+9
-3
9 additions, 3 deletions
svreader/lumpy.py
with
10 additions
and
3 deletions
svreader/annotation.py
View file @
d34684ca
...
...
@@ -145,6 +145,7 @@ class AnnotateRecord(VCFRecord):
def
add_supporting_infos
(
self
):
supp_reads
=
self
.
variant_read_support
()
num_supp_samples
=
self
.
num_variant_samples
()
#print(supp_reads, num_supp_samples)
try
:
self
.
record
.
info
[
'
MAX_SUPP_READS
'
]
=
supp_reads
self
.
record
.
info
[
'
NUM_SUPP_SAMPLES
'
]
=
num_supp_samples
...
...
This diff is collapsed.
Click to expand it.
svreader/lumpy.py
View file @
d34684ca
...
...
@@ -181,10 +181,15 @@ class LumpyReader(SVReader):
def
AreSamplesSpecified
(
self
):
return
1
# def getOrderedSamples(self):
# if not hasattr(self.vcf_reader, "samples"):
# return []
# return self.vcf_reader.samples
def
getOrderedSamples
(
self
):
if
not
hasattr
(
self
.
vcf_reader
,
"
samples
"
):
return
[
]
return
s
elf
.
vcf_reader
.
sampl
es
samples
=
self
.
vcf_reader
.
header
.
samples
sample_names
=
[
sample
.
rsplit
(
'
.
'
)[
0
]
for
sample
in
samples
]
return
s
ample_nam
es
def
SpecificFilterPass
(
self
,
record
):
# First try after sensibility analysis with Mathieu
...
...
@@ -219,4 +224,5 @@ class LumpyWriter(SVWriter):
if
self
.
_isopen
:
self
.
vcf_writer
.
close
()
else
:
# nothing was written
# Make sure appropriate samples are added to the vcf
self
.
_dumpemptyvcf
()
This diff is collapsed.
Click to expand it.