Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,688
Issues
1,688
List
Boards
Labels
Service Desk
Milestones
Merge Requests
84
Merge Requests
84
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
3c6db6fc
Commit
3c6db6fc
authored
Jul 10, 2018
by
Mikaël Salson
Committed by
Mathieu Giraud
Jul 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
germline/tests: Test split-from-imgt.py
We use this for reorganizing where tests are launched
parent
75a201e3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
germline/Makefile
germline/Makefile
+6
-1
germline/split-from-imgt.py
germline/split-from-imgt.py
+10
-6
No files found.
.gitlab-ci.yml
View file @
3c6db6fc
...
...
@@ -45,7 +45,7 @@ test_germlines:
stage
:
test_germlines
script
:
-
make -C germline get-all-data
-
make -C germline
/
tests
-
make -C germline
tests
only
:
-
/^feature-.*g.*\/.*$/
...
...
germline/Makefile
View file @
3c6db6fc
...
...
@@ -30,7 +30,12 @@ diff-from-saved:
echo
diff
-r
-u
-x
"*[.][^f][^a]"
-x
"germline*"
-x
"get*"
-x
"Makefile"
-x
"saved-*"
saved-germline/ .
tests
:
python split-from-imgt.py
--test
make
-C
tests
distrib
:
get-all-data js
cd
..
;
tar
cvzf germline-
`
cat
germline/germline_id
`
.tar.gz germline/germline_id germline/
*
/
*
.fa germline/IMGT_RELEASE browser/js/germline.js
.PHONY
:
all germline js get-all-data clean diff-from-saved
.PHONY
:
all germline js get-all-data clean diff-from-saved
tests
germline/split-from-imgt.py
View file @
3c6db6fc
...
...
@@ -75,7 +75,7 @@ def get_gene_coord(imgt_line):
>>> line = '>X15272|TRGV4*01|Homo sapiens|F|V-REGION|406..705|300 nt|1| | | | |300+0=300| |rev-compl|'
>>> get_gene_coord(line)[0] == 'X15272'
True
>>> get_gene_coord(line)[1] == {'from': 406, 'to': 705, 'imgt_data': 'TRGV4*01|Homo sapiens|F|V-REGION', 'imgt_name': 'TRGV4*01'}
>>> get_gene_coord(line)[1] == {'from': 406, 'to': 705, 'imgt_data': 'TRGV4*01|Homo sapiens|F|V-REGION', 'imgt_name': 'TRGV4*01'
, 'species': 'Homo sapiens'
}
True
'''
elements
=
imgt_line
.
split
(
'|'
)
...
...
@@ -338,6 +338,10 @@ def split_IMGTGENEDBReferenceSequences(f, gene_list):
if
__name__
==
'__main__'
:
if
sys
.
argv
[
1
]
==
'--test'
:
import
doctest
doctest
.
testmod
()
else
:
print
(
IMGT_LICENSE
)
ReferenceSequences
=
sys
.
argv
[
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment