Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
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
2024 Competition
Bielefeld-CeBiTec
Commits
df985c5e
Commit
df985c5e
authored
5 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
cit
parent
c0a9d1e6
No related branches found
No related tags found
No related merge requests found
Pipeline
#445574
failed
5 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/cit.py
+9
-5
9 additions, 5 deletions
code/cit.py
code/output.txt
+10
-20
10 additions, 20 deletions
code/output.txt
with
19 additions
and
25 deletions
code/cit.py
+
9
−
5
View file @
df985c5e
...
...
@@ -98,7 +98,7 @@ def main():
def
makeauthors
(
authors
,
out
):
authors
=
authors
.
replace
(
"
and
"
,
"
|
"
)
authors
=
authors
.
replace
(
"
and
"
,
"
|
"
)
.
strip
()
# Ersetzen und Whitespace entfernen
autlist
=
authors
.
split
(
"
|
"
)
# Maximale Anzahl der anzuzeigenden Autoren
...
...
@@ -109,6 +109,8 @@ def makeauthors(authors, out):
last
=
None
name
=
None
a
=
a
.
strip
()
# Whitespace entfernen
if
'
,
'
in
a
:
s
=
a
.
split
(
"
,
"
)
if
len
(
s
)
>
1
:
...
...
@@ -118,19 +120,19 @@ def makeauthors(authors, out):
last
=
s
[
0
]
name
=
last
+
"
,
"
+
initials
else
:
last
=
s
[
0
]
last
=
s
[
0
]
.
strip
()
# Entferne Whitespace
name
=
last
+
"
,
"
else
:
s
=
a
.
split
()
if
len
(
s
)
==
2
:
first
=
s
[
0
]
first
=
s
[
0
]
.
strip
()
# Entferne Whitespace
first_sh
=
first
[
0
]
last
=
s
[
1
]
last
=
s
[
1
]
.
strip
()
# Entferne Whitespace
name
=
last
+
"
,
"
+
first_sh
+
"
.
"
else
:
# Falls es mehrere Vornamen gibt, sie in Initialen umwandeln
leng
=
len
(
s
)
last
=
s
[
leng
-
1
]
last
=
s
[
leng
-
1
]
.
strip
()
# Entferne Whitespace
first
=
'
.
'
.
join
([
n
[
0
]
for
n
in
s
[:
-
1
]])
+
'
.
'
# Nur Initialen der Vornamen
name
=
last
+
"
,
"
+
first
...
...
@@ -146,6 +148,8 @@ def makeauthors(authors, out):
print
(
f
"
An unexpected error occurred:
{
e
}
see
"
+
a
)
def
articleHTML
(
dictio
,
x
,
out
):
print
(
"
Writing html code for article
"
+
str
(
x
)
+
"
...
"
)
out
.
write
(
"
{/*<!-- Citation num
"
+
str
(
x
)
+
"
--> */}
"
+
"
\n
"
)
...
...
This diff is collapsed.
Click to expand it.
code/output.txt
+
10
−
20
View file @
df985c5e
{/*<!-- Citation num 1--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-1">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Cloarec-Ung, F.</span>
<span property="schema:Name"> Cloarec-Ung, F.</span>
<span property="schema:Name"> Beaulieu, J.</span>
<span property="schema:Name"> Suthananthan, A. a. L.</span>
<span property="schema:Name"> Sauvageau, G.</span>
<span property="schema:Name"> Sheppard, H. M.</span>
<span property="schema:Name"> Knapp,
David J. H. F.
, </span>
David J. H. F., </span>
</span>
<span property="schema:name">
Near-perfect precise on-target editing of human hematopoietic stem and
...
...
@@ -24,8 +22,7 @@ progenitor cells
{/*<!-- Citation num 2--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-2">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Nelson, J. W.</span>
<span property="schema:Name"> Nelson, J. W.</span>
<span property="schema:Name"> Randolph, P. B.</span>
<span property="schema:Name"> Shen, S. P.</span>
<span property="schema:Name"> Everette,
...
...
@@ -45,8 +42,7 @@ Kelcee A., </span>
{/*<!-- Citation num 3--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-3">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Doench, J. G.</span>
<span property="schema:Name"> Doench, J. G.</span>
<span property="schema:Name"> Fusi, N.</span>
<span property="schema:Name"> Sullender, M.</span>
<span property="schema:Name"> Hegde, M. a. V.</span>
...
...
@@ -68,8 +64,7 @@ of CRISPR-Cas9
{/*<!-- Citation num 4--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-4">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
White, N.</span>
<span property="schema:Name"> White, N.</span>
<span property="schema:Name"> Sadeeshkumar, H.</span>
<span property="schema:Name"> Sun, A.</span>
<span property="schema:Name"> Sudarsan, N. a. B.</span>
...
...
@@ -105,8 +100,7 @@ stress-indicators
{/*<!-- Citation num 6--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-6">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Zhang, Y.</span>
<span property="schema:Name"> Zhang, Y.</span>
<span property="schema:Name"> Lin, S.</span>
<span property="schema:Name"> Yao, J.</span>
<span property="schema:Name"> Cai, W.</span>
...
...
@@ -128,8 +122,7 @@ amyloid polypeptide up-regulation
{/*<!-- Citation num 7--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-7">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Wei, T.</span>
<span property="schema:Name"> Wei, T.</span>
<span property="schema:Name"> Sun, Y.</span>
<span property="schema:Name"> Cheng, Q.</span>
<span property="schema:Name"> Chatterjee, S.</span>
...
...
@@ -174,8 +167,7 @@ hypersensitivity of PEGylated products
{/*<!-- Citation num 9--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-9">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Jiang, A. Y.</span>
<span property="schema:Name"> Jiang, A. Y.</span>
<span property="schema:Name"> Witten, J.</span>
<span property="schema:Name"> Raji, I. O.</span>
<span property="schema:Name"> Eweje, F. a. M.</span>
...
...
@@ -197,8 +189,7 @@ lungs
{/*<!-- Citation num 10--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-10">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Vilà-González, M.</span>
<span property="schema:Name"> Vilà-González, M.</span>
<span property="schema:Name"> Pinte, L.</span>
<span property="schema:Name"> Fradique, R.</span>
<span property="schema:Name"> Causa,
...
...
@@ -377,8 +368,7 @@ Therapy
{/*<!-- Citation num 23--> */}
<li typeof="schema:ScolarlyArticle" role="doc-biblioentry" property="schema:citation" id="desc-23">
<span property="schema:author" typeof="schema:Person">
<span property="schema:Name">
Kiani, A. K.</span>
<span property="schema:Name"> Kiani, A. K.</span>
<span property="schema:Name"> Pheby, D.</span>
<span property="schema:Name"> Henehan, G.</span>
<span property="schema:Name"> Brown, R. a. S.</span>
...
...
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