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
ec7f686c
Commit
ec7f686c
authored
3 years ago
by
Melvin Alappat
Browse files
Options
Downloads
Patches
Plain Diff
adjusted test file
parent
abb1e512
No related branches found
No related tags found
1 merge request
!16
Issue_4
Pipeline
#13905
failed
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
+3
-3
3 additions, 3 deletions
tests/test_priming_prob.py
with
3 additions
and
3 deletions
tests/test_priming_prob.py
+
3
−
3
View file @
ec7f686c
"""
Unit tests for module ``PrimingProb_CI``.
"""
import
os
from
src.primingprob.priming_prob
import
Probability
as
Pbt
from
src.primingprob.priming_prob
import
inter_para
,
inter_prob
Energy_file
=
"
./tests/resources/Energies_test.txt
"
Fasta_file
=
"
./tests/resources/transcript.fasta
"
...
...
@@ -9,7 +9,7 @@ Output_file = "./tests/resources/Potential_Priming_Sites.txt"
def
test_inter_para
():
"""
Tests InterPara function.
"""
testdata
=
Pbt
.
inter_para
(
Energy_file
)
testdata
=
inter_para
(
Energy_file
)
assert
len
(
testdata
)
==
3
# Number of interactions
assert
type
(
testdata
)
is
list
for
i
in
range
(
0
,
len
(
testdata
)):
...
...
@@ -23,7 +23,7 @@ testdata2 = test_inter_para()
def
test_inter_prob
():
"""
Tests InterProb function.
"""
Pbt
.
inter_prob
(
testdata2
,
Fasta_file
,
Output_file
)
inter_prob
(
testdata2
,
Fasta_file
,
Output_file
)
assert
os
.
path
.
exists
(
Output_file
)
is
True
# Check whether file exists
mytestfile
=
open
(
Output_file
,
"
r
"
)
# Test whether gff file start with transcript ID
...
...
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