Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GrAnnoT
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
Container 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
DIADE
dynadiv
GrAnnoT
Commits
c90c486a
Commit
c90c486a
authored
1 year ago
by
nina.marthe_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
added messages to track progress, and reorganised the order of input file reading
parent
e6131543
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+6
-3
6 additions, 3 deletions
main.py
with
6 additions
and
3 deletions
main.py
+
6
−
3
View file @
c90c486a
...
@@ -39,6 +39,7 @@ if len(args.target)==0:
...
@@ -39,6 +39,7 @@ if len(args.target)==0:
for
target_genome
in
args
.
target
:
for
target_genome
in
args
.
target
:
segments_on_target_genome
=
{}
segments_on_target_genome
=
{}
print
(
f
'
{
target_genome
}
transfer :
'
)
# create directory to store output files
# create directory to store output files
command
=
"
mkdir
"
+
target_genome
command
=
"
mkdir
"
+
target_genome
subprocess
.
run
(
command
,
shell
=
True
,
timeout
=
None
)
subprocess
.
run
(
command
,
shell
=
True
,
timeout
=
None
)
...
@@ -46,11 +47,13 @@ for target_genome in args.target:
...
@@ -46,11 +47,13 @@ for target_genome in args.target:
# create dictonaries with paths and segments positions.
# create dictonaries with paths and segments positions.
for
file
in
segment_coord_files
:
for
file
in
segment_coord_files
:
genome_name
=
get_genome_name
(
args
.
target
,
file
)
genome_name
=
get_genome_name
(
args
.
target
,
file
)
if
genome_name
!=
""
:
if
genome_name
!=
''
:
#==target_genome :
print
(
f
'
loading the information from the file
{
file
}
'
)
file_path
=
args
.
segment_coordinates_path
+
file
file_path
=
args
.
segment_coordinates_path
+
file
get_segments_positions_on_genome
(
file_path
)
get_segments_positions_on_genome
(
file_path
)
walks_path
=
args
.
segment_coordinates_path
+
"
/walks.txt
"
print
(
f
'
loading the walks for the genome
{
target_genome
}
'
)
target_genome_paths
=
get_paths
(
walks_path
,
target_genome
)
walks_path
=
args
.
segment_coordinates_path
+
"
/walks.txt
"
target_genome_paths
=
get_paths
(
walks_path
,
target_genome
)
out_target_gff
=
target_genome
+
"
/
"
+
target_genome
+
"
.gff
"
out_target_gff
=
target_genome
+
"
/
"
+
target_genome
+
"
.gff
"
out_target_var
=
target_genome
+
"
/
"
+
target_genome
+
"
_var.txt
"
out_target_var
=
target_genome
+
"
/
"
+
target_genome
+
"
_var.txt
"
...
...
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