Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
d7177565
Commit
d7177565
authored
8 years ago
by
bow
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-vcffilter' into 'develop'
Fixed bug See merge request !375
parents
180bb97e
9c002013
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/VcfFilter.scala
+1
-1
1 addition, 1 deletion
.../src/main/scala/nl/lumc/sasc/biopet/tools/VcfFilter.scala
with
1 addition
and
1 deletion
public/biopet-tools/src/main/scala/nl/lumc/sasc/biopet/tools/VcfFilter.scala
+
1
−
1
View file @
d7177565
...
...
@@ -263,7 +263,7 @@ object VcfFilter extends ToolCommand {
def
minAlternateDepth
(
record
:
VariantContext
,
minAlternateDepth
:
Int
,
minSamplesPass
:
Int
=
1
)
:
Boolean
=
{
record
.
getGenotypes
.
count
(
genotype
=>
{
val
AD
=
if
(
genotype
.
hasAD
)
List
(
genotype
.
getAD
:
_
*
)
else
Nil
if
(
AD
.
nonEmpty
)
AD
.
tail
.
count
(
_
>=
minAlternateDepth
)
>
0
else
true
if
(
AD
.
nonEmpty
&&
minAlternateDepth
>=
0
)
AD
.
tail
.
count
(
_
>=
minAlternateDepth
)
>
0
else
true
})
>=
minSamplesPass
}
...
...
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