Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Phybema
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kurtz, Prof. Dr. Stefan
Phybema
Commits
1816eb83
Commit
1816eb83
authored
5 years ago
by
Birgitta Paeuker
Browse files
Options
Downloads
Patches
Plain Diff
Removing stand alones and addind author information
parent
60f20f40
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/concatFiles.py
+0
-12
0 additions, 12 deletions
src/concatFiles.py
src/ete.py
+0
-34
0 additions, 34 deletions
src/ete.py
src/nejo_idx.py
+2
-0
2 additions, 0 deletions
src/nejo_idx.py
src/phybema.py
+1
-1
1 addition, 1 deletion
src/phybema.py
with
3 additions
and
47 deletions
src/concatFiles.py
+
0
−
12
View file @
1816eb83
...
@@ -25,15 +25,3 @@ def concat_files(infiles, outfilepath):
...
@@ -25,15 +25,3 @@ def concat_files(infiles, outfilepath):
.
format
(
sys
.
argv
[
0
]))
.
format
(
sys
.
argv
[
0
]))
exit
(
1
)
exit
(
1
)
def
parse_command_line
():
p
=
argparse
.
ArgumentParser
()
p
.
add_argument
(
"
inputfiles
"
,
nargs
=
'
+
'
,
help
=
"
Specify a list of inputfiles to concatenate.
\n
"
)
p
.
add_argument
(
"
outfilename
"
,
help
=
"
Specify the filename of the concatenated files.
\n
"
)
args
=
p
.
parse_args
()
return
args
if
__name__
==
"
__main__
"
:
args
=
parse_command_line
()
concat_files
(
args
.
inputfiles
,
args
.
outfilename
)
This diff is collapsed.
Click to expand it.
src/ete.py
+
0
−
34
View file @
1816eb83
...
@@ -63,37 +63,3 @@ def compute_nrf_matrix(newickfilelist):
...
@@ -63,37 +63,3 @@ def compute_nrf_matrix(newickfilelist):
linedict
[
j
]
=
nrf
linedict
[
j
]
=
nrf
nrf_matrix
[
i
]
=
linedict
nrf_matrix
[
i
]
=
linedict
return
nrf_matrix
return
nrf_matrix
def
parse_command_line
():
p
=
argparse
.
ArgumentParser
()
p
.
add_argument
(
'
-o
'
,
'
--out
'
,
type
=
str
,
help
=
"
specify outputfile to render tree from inputfile
\n
"
"
It has to be PDF, PNG or SVG
"
)
p
.
add_argument
(
'
-c
'
,
'
--compare
'
,
nargs
=
'
+
'
,
default
=
None
,
help
=
"
whitespace separated files of trees for
"
"
comparison with inputfile tree.
"
"
If -c is the last optional argument write --
"
"
at the end of the list
"
)
p
.
add_argument
(
"
inputfile
"
,
type
=
str
,
help
=
"
specify inputfile.
"
"
Inputfile serves as reference tree for comparison
"
)
args
=
p
.
parse_args
()
if
not
(
args
.
out
or
args
.
compare
):
sys
.
stderr
.
write
(
"
Usage {}: Please choose an option for the given
"
"
tree
\n
"
.
format
(
sys
.
argv
[
0
]))
exit
(
1
)
return
args
if
__name__
==
"
__main__
"
:
args
=
parse_command_line
()
t
=
load_tree
(
args
.
inputfile
)
if
args
.
out
:
show_tree
(
args
.
inputfile
,
args
.
out
)
if
args
.
compare
:
i
=
0
for
fp
in
args
.
compare
:
t2
=
load_tree
(
fp
)
rf
=
rf_dist
.
robinson_foulds_ete
(
t
,
t2
)
print
(
"
{}
\t
{:.2}
"
.
format
(
fp
,
rf
[
2
]))
This diff is collapsed.
Click to expand it.
src/nejo_idx.py
+
2
−
0
View file @
1816eb83
#!/usr/bin/env python3
#!/usr/bin/env python3
# author: Stefan Kurtz
import
sys
,
argparse
import
sys
,
argparse
import
numpy
as
np
import
numpy
as
np
from
ete3
import
Tree
from
ete3
import
Tree
...
...
This diff is collapsed.
Click to expand it.
src/phybema.py
+
1
−
1
View file @
1816eb83
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
'''
'''
Main script for calling phybema
Main script for calling phybema
author: Birgitta Päuker
author
s
: Birgitta Päuker
, Stefan Kurtz
'''
'''
import
sys
,
os
,
shutil
import
sys
,
os
,
shutil
...
...
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