Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Annotation de séquences bactériennes
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
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
Clara Moreno
Annotation de séquences bactériennes
Commits
442ca23c
Commit
442ca23c
authored
2 months ago
by
Clara Moreno
Browse files
Options
Downloads
Patches
Plain Diff
Edit code dynamic
parent
d08300c7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code dynamic
+14
-7
14 additions, 7 deletions
code dynamic
with
14 additions
and
7 deletions
code dynamic
+
14
−
7
View file @
442ca23c
...
@@ -48,14 +48,21 @@ def fusions_stat(count, avg):
...
@@ -48,14 +48,21 @@ def fusions_stat(count, avg):
#LIEN
#LIEN
def liens(feature):
def liens(feature):
"""
base_urls = {
LIEN NCBI
"gene": "https://www.ncbi.nlm.nih.gov/gene/",
:param feature: Un objet représentant une feature du fichier GFF.
"mRNA": "https://www.ncbi.nlm.nih.gov/nuccore/",
:return: lien vers site NCBI du feature
"CDS": "https://www.ncbi.nlm.nih.gov/protein/",
"""
"exon": "https://www.ncbi.nlm.nih.gov/nuccore/",
return "NA"
"ncRNA": "https://www.ncbi.nlm.nih.gov/nuccore/",
"rRNA": "https://www.ncbi.nlm.nih.gov/nuccore/",
"tRNA": "https://www.ncbi.nlm.nih.gov/nuccore/"
}
if feature.featuretype in base_urls:
identifier = feature.attributes.get("ID", feature.attributes.get("db_xref", [None]))[0]
if identifier:
return f'
<a
href=
"{base_urls[feature.featuretype]}{identifier}"
target=
"_blank"
>
{identifier}
</a>
'
return "N/A"
def graphe(stats, output_plot):
def graphe(stats, output_plot):
"""
"""
...
...
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