Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scRNA-seq-simulation
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
Container 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
pipelines
scRNA-seq-simulation
Commits
d5ac4ae7
Commit
d5ac4ae7
authored
3 years ago
by
Melvin Alappat
Browse files
Options
Downloads
Patches
Plain Diff
additional check in pytest
parent
0329e263
No related branches found
No related tags found
1 merge request
!16
Issue_4
Pipeline
#13908
passed
3 years ago
Stage: qc
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_priming_prob.py
+10
-0
10 additions, 0 deletions
tests/test_priming_prob.py
with
10 additions
and
0 deletions
tests/test_priming_prob.py
+
10
−
0
View file @
d5ac4ae7
...
...
@@ -29,7 +29,17 @@ def test_inter_prob():
mytestfile
=
open
(
Output_file
,
"
r
"
)
# Test whether gff file start with transcript ID
for
mylinecounter
in
mytestfile
:
assert
mylinecounter
.
startswith
(
"
NW_005196756.1:c68260-66684
"
)
mytestfile
.
close
()
with
open
(
Output_file
,
"
r
"
)
as
tt
:
# Check whether number of interactions is right
x
=
len
(
tt
.
readlines
())
assert
x
==
3
prob
=
open
(
Output_file
,
"
r
"
)
# check if the sum of the probabilities is 1
lines
=
prob
.
readlines
()
probabilities
=
[]
for
x
in
lines
:
probabilities
.
append
(
float
(
x
.
split
(
'
\t
'
)[
5
]))
prob
.
close
()
assert
sum
(
probabilities
)
==
1
# sum should equal 1
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