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,692
Issues
1,692
List
Boards
Labels
Service Desk
Milestones
Merge Requests
85
Merge Requests
85
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
3105a36c
Commit
3105a36c
authored
Jul 12, 2018
by
Mikaël Salson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split-from-imgt: clean/comment
parent
fc4d106b
Pipeline
#33012
passed with stages
in 57 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
germline/split-from-imgt.py
germline/split-from-imgt.py
+4
-1
No files found.
germline/split-from-imgt.py
View file @
3105a36c
...
@@ -135,12 +135,15 @@ def retrieve_genes(f, genes, tag, additional_length, gene_list):
...
@@ -135,12 +135,15 @@ def retrieve_genes(f, genes, tag, additional_length, gene_list):
if
gene_id
:
if
gene_id
:
try
:
try
:
(
target
,
start
,
end
)
=
ncbi
.
get_gene_positions
(
gene_id
)
(
target
,
start
,
end
)
=
ncbi
.
get_gene_positions
(
gene_id
)
print
(
coord
,
gene_id
,
target
,
start
,
end
)
except
KeyError
:
except
KeyError
:
print
(
'! No positions for %s (%s: %s)'
%
(
gene_id
,
gene
,
str
(
coord
)))
print
(
'! No positions for %s (%s: %s)'
%
(
gene_id
,
gene
,
str
(
coord
)))
allele_additional_length
=
additional_length
allele_additional_length
=
additional_length
gene_id
=
None
gene_id
=
None
# gene: is the name of the sequence where the VDJ gene was identified according to IMGT. The gene is just a part of the sequence
# gene_id: is the NCBI ID of the VDJ gene
# target: is the NCBI ID of the chromosome
# extract from gene
# extract from gene
gene_data
=
ncbi
.
get_gene_sequence
(
gene
,
coord
[
'imgt_data'
]
+
tag
,
coord
[
'from'
],
coord
[
'to'
],
allele_additional_length
)
gene_data
=
ncbi
.
get_gene_sequence
(
gene
,
coord
[
'imgt_data'
]
+
tag
,
coord
[
'from'
],
coord
[
'to'
],
allele_additional_length
)
...
...
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