Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Programming course assignments
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
van Driel
Programming course assignments
Compare revisions
master to b6858cddafbfadec3d6daf14b0f83c6b9ee3a63c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
marcvandriel/course-assignments
Select target project
No results found
b6858cddafbfadec3d6daf14b0f83c6b9ee3a63c
Select Git revision
Branches
master
newexp
Swap
Target
courses/programming-course-assignments
Select target project
courses/programming-course-assignments
y.sun/course-assignments
h.buermans/course-assignments
z.tatum/course-assignments
p.a.c._t_hoen/course-assignments
b.balliu/course-assignments
r.h.de_leeuw/course-assignments
l.khachatryan/course-assignments
viktoriaeriksson/course-assignments
marcvandriel/course-assignments
b.a.s.kurreeman/course-assignments
k.j.van_der_gaag/course-assignments
tabalan/programming-course-assignments
rubendries/programming-course-assignments
pholland/programming-course-assignments
eavila/programming-course-assignments
tjhulst/programming-course-assignments
m.vermaat.hg/programming-course-assignments
fsleutels/programming-course-assignments
prao/programming-course-assignments
rpbeuk/programming-course-assignments
arhouweling/programming-course-assignments
i.pulyakhina/programming-course-assignments
s.b.zuniga/course-assignments
24 results
master
Select Git revision
Branches
jfjlaros_2014
master
Tags
presented/lumc-2013-08
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (6)
Adding one of the exercises
· 40c302c5
marc
authored
11 years ago
40c302c5
adding file to experiment
· 717a7d47
marc
authored
11 years ago
717a7d47
adding the gc example file
· 9a48169e
marc
authored
11 years ago
9a48169e
Added command line argument functionality
· 56b772a0
marc
authored
11 years ago
56b772a0
Corrected the cg calc function to deal with lower case sequence input
· acc4fcfd
marc
authored
11 years ago
acc4fcfd
Merge branch 'newexp'
· b6858cdd
marc
authored
11 years ago
b6858cdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
calcgc.py
+15
-0
15 additions, 0 deletions
calcgc.py
comblist.py
+6
-0
6 additions, 0 deletions
comblist.py
fileinexp.txt
+0
-0
0 additions, 0 deletions
fileinexp.txt
with
21 additions
and
0 deletions
calcgc.py
0 → 100755
View file @
b6858cdd
#!/usr/bin/env python
import
sys
def
calc_gc_perc
(
seq
):
atc
,
gcc
=
0
,
0
for
c
in
seq
.
upper
():
if
c
in
(
'
A
'
,
'
T
'
):
atc
+=
1
elif
c
in
(
'
C
'
,
'
G
'
):
gcc
+=
1
return
gcc
*
100
/
(
gcc
+
atc
)
inpseq
=
sys
.
argv
[
1
]
print
"
the sequence is
'
CAGG
'
, and has a GC% of {:.2f}
"
.
format
(
calc_gc_perc
(
inpseq
)
)
This diff is collapsed.
Click to expand it.
comblist.py
0 → 100755
View file @
b6858cdd
#!/usr/bin/env python
i
=
0
for
i
in
range
(
100
):
print
"
({0},{1})
"
.
format
(
i
,
i
)
This diff is collapsed.
Click to expand it.
fileinexp.txt
0 → 100644
View file @
b6858cdd
This diff is collapsed.
Click to expand it.