Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pharmAnnot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
gad-public
pharmAnnot
Commits
95e566f2
Commit
95e566f2
authored
Aug 24, 2018
by
Simon Verdez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop unicode
parent
9bb307e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
create_html.py
create_html.py
+3
-3
No files found.
create_html.py
View file @
95e566f2
...
@@ -135,13 +135,13 @@ for record in vcf_reader_SNP.fetch():
...
@@ -135,13 +135,13 @@ for record in vcf_reader_SNP.fetch():
patho
=
record
.
info
[
"Pharmaco_Annot"
][(
i
*
12
)
+
9
]
.
replace
(
")"
,
""
)
.
replace
(
"'"
,
""
)
.
replace
(
"-"
,
""
)
patho
=
record
.
info
[
"Pharmaco_Annot"
][(
i
*
12
)
+
9
]
.
replace
(
")"
,
""
)
.
replace
(
"'"
,
""
)
.
replace
(
"-"
,
""
)
molecule
=
record
.
info
[
"Pharmaco_Annot"
][(
i
*
12
)
+
11
]
.
replace
(
")"
,
""
)
.
replace
(
"'"
,
""
)
.
replace
(
"-"
,
" "
)
.
replace
(
"]"
,
""
)
molecule
=
record
.
info
[
"Pharmaco_Annot"
][(
i
*
12
)
+
11
]
.
replace
(
")"
,
""
)
.
replace
(
"'"
,
""
)
.
replace
(
"-"
,
" "
)
.
replace
(
"]"
,
""
)
if
level
.
startswith
(
"1"
):
if
level
.
startswith
(
"1"
):
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P1
(
"pathologie: "
+
patho
))
+
htmltag
.
P
(
htmltag
.
P1
(
"molecule: "
+
molecule
))
+
htmltag
.
P
(
htmltag
.
P1
(
"gene: "
+
gene
))
+
htmltag
.
P
(
htmltag
.
P1
(
"variant: "
+
repr
(
record
.
pos
)
+
" "
+
repr
(
record
.
ref
)
+
">"
+
repr
(
record
.
alts
)
+
" "
+
repr
(
record
.
id
)))
+
htmltag
.
P
(
htmltag
.
P1
(
"base alternative: "
+
alt
))
+
htmltag
.
P
(
htmltag
.
P1
(
"niveau: "
+
level
))
+
htmltag
.
P
(
htmltag
.
P1
(
"phenotype: "
+
pheno
)))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P1
(
"pathologie: "
+
patho
))
+
htmltag
.
P
(
htmltag
.
P1
(
"molecule: "
+
molecule
))
+
htmltag
.
P
(
htmltag
.
P1
(
"gene: "
+
gene
.
encode
(
'utf-8'
)
))
+
htmltag
.
P
(
htmltag
.
P1
(
"variant: "
+
repr
(
record
.
pos
)
+
" "
+
repr
(
record
.
ref
)
+
">"
+
repr
(
record
.
alts
)
+
" "
+
repr
(
record
.
id
)))
+
htmltag
.
P
(
htmltag
.
P1
(
"base alternative: "
+
alt
))
+
htmltag
.
P
(
htmltag
.
P1
(
"niveau: "
+
level
))
+
htmltag
.
P
(
htmltag
.
P1
(
"phenotype: "
+
pheno
)))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P1
(
htmltag
.
A
(
href
=
publi
)
.
append
(
"publication: "
+
publi
))))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P1
(
htmltag
.
A
(
href
=
publi
)
.
append
(
"publication: "
+
publi
))))
elif
level
.
startswith
(
"2"
):
elif
level
.
startswith
(
"2"
):
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P2
(
"pathologie: "
+
patho
))
+
htmltag
.
P
(
htmltag
.
P2
(
"molecule: "
+
molecule
))
+
htmltag
.
P
(
htmltag
.
P2
(
"gene: "
+
gene
))
+
htmltag
.
P
(
htmltag
.
P2
(
"variant: "
+
repr
(
record
.
pos
)
+
" "
+
repr
(
record
.
ref
)
+
">"
+
repr
(
record
.
alts
)
+
" "
+
repr
(
record
.
id
)))
+
htmltag
.
P
(
htmltag
.
P2
(
"base alternative: "
+
alt
))
+
htmltag
.
P
(
htmltag
.
P2
(
"niveau: "
+
level
))
+
htmltag
.
P
(
htmltag
.
P2
(
"phenotype: "
+
pheno
)))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P2
(
"pathologie: "
+
patho
))
+
htmltag
.
P
(
htmltag
.
P2
(
"molecule: "
+
molecule
))
+
htmltag
.
P
(
htmltag
.
P2
(
"gene: "
+
gene
.
encode
(
'utf-8'
)
))
+
htmltag
.
P
(
htmltag
.
P2
(
"variant: "
+
repr
(
record
.
pos
)
+
" "
+
repr
(
record
.
ref
)
+
">"
+
repr
(
record
.
alts
)
+
" "
+
repr
(
record
.
id
)))
+
htmltag
.
P
(
htmltag
.
P2
(
"base alternative: "
+
alt
))
+
htmltag
.
P
(
htmltag
.
P2
(
"niveau: "
+
level
))
+
htmltag
.
P
(
htmltag
.
P2
(
"phenotype: "
+
pheno
)))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P2
(
htmltag
.
A
(
href
=
publi
)
.
append
(
"publication: "
+
publi
))))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
P2
(
htmltag
.
A
(
href
=
publi
)
.
append
(
"publication: "
+
publi
))))
else
:
else
:
body
=
body
.
append
(
htmltag
.
P
(
"pathologie: "
+
patho
)
+
htmltag
.
P
(
"molecule: "
+
molecule
)
+
htmltag
.
P
(
"gene: "
+
gene
)
+
htmltag
.
P
(
"variant: "
+
repr
(
record
.
pos
)
+
" "
+
repr
(
record
.
ref
)
+
">"
+
repr
(
record
.
alts
)
+
" "
+
repr
(
record
.
id
))
+
htmltag
.
P
(
"base alternative: "
+
alt
)
+
htmltag
.
P
(
"niveau: "
+
level
)
+
htmltag
.
P
(
htmltag
.
P
(
"phenotype: "
+
pheno
)))
body
=
body
.
append
(
htmltag
.
P
(
"pathologie: "
+
patho
)
+
htmltag
.
P
(
"molecule: "
+
molecule
)
+
htmltag
.
P
(
"gene: "
+
gene
.
encode
(
'utf-8'
)
)
+
htmltag
.
P
(
"variant: "
+
repr
(
record
.
pos
)
+
" "
+
repr
(
record
.
ref
)
+
">"
+
repr
(
record
.
alts
)
+
" "
+
repr
(
record
.
id
))
+
htmltag
.
P
(
"base alternative: "
+
alt
)
+
htmltag
.
P
(
"niveau: "
+
level
)
+
htmltag
.
P
(
htmltag
.
P
(
"phenotype: "
+
pheno
)))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
A
(
href
=
publi
)
.
append
(
"publication: "
+
publi
)))
body
=
body
.
append
(
htmltag
.
P
(
htmltag
.
A
(
href
=
publi
)
.
append
(
"publication: "
+
publi
)))
body
=
body
.
append
(
htmltag
.
P
(
"#######################################################################"
))
body
=
body
.
append
(
htmltag
.
P
(
"#######################################################################"
))
except
:
except
:
...
...
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