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
346756b9
Commit
346756b9
authored
1 year ago
by
NMarthe
Browse files
Options
Downloads
Patches
Plain Diff
corrections et ajouts dans les statistiques de transfert
parent
a8c6512e
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ClassSegFeat.py
+6
-0
6 additions, 0 deletions
ClassSegFeat.py
Functions.py
+251
-97
251 additions, 97 deletions
Functions.py
main.py
+8
-4
8 additions, 4 deletions
main.py
with
265 additions
and
101 deletions
ClassSegFeat.py
+
6
−
0
View file @
346756b9
...
...
@@ -7,6 +7,10 @@ class Segment:
self
.
chr
=
chr
self
.
start
=
int
(
start
)
self
.
stop
=
int
(
stop
)
# segments précedent et suivant.
# séquence.
# cf odgi objets
self
.
size
=
self
.
stop
-
self
.
start
+
1
...
...
@@ -30,6 +34,8 @@ class Feature:
self
.
childs
=
childs
# liste of childs features (exons, cds, etc)
self
.
parent
=
parent
self
.
segments_list
=
seg
# list of oriented segment on which the feature is (-s1/+s1, depending on the strand)
self
.
note
=
""
def
__str__
(
self
):
if
self
.
parent
==
""
:
...
...
This diff is collapsed.
Click to expand it.
Functions.py
+
251
−
97
View file @
346756b9
This diff is collapsed.
Click to expand it.
main.py
+
8
−
4
View file @
346756b9
import
Functions
as
fct
# creates segments and features for the intersect between the graph for chr10 and the gff of IRGSP
intersect_path
=
'
/home/nina/annotpangenome/align_genes/intersect_segments-features_chr10.bed
'
intersect_path
=
'
/home/nina/annotpangenome/align_genes/intersect_segments-genes_chr10.bed
'
#intersect_path='/home/nina/annotpangenome/align_genes/intersect_reel_genes_chr10.bed'
fct
.
create_seg_feat
(
intersect_path
)
# outputs the gff of the graph for chr10
...
...
@@ -11,11 +12,14 @@ fct.graph_gff(output_file)
gff
=
"
new_graph_chr10.gff
"
if
1
==
0
:
genome
=
'
ac
'
if
genome
==
'
ac
'
:
# transfer grom graph to azucena
pos_seg
=
"
seg_coord/AzucenaRS1_chromosome10.bed
"
out
=
"
azucena_chr10_all.gff
"
#out="azucena_chr10_all.gff"
out
=
"
azucena_chr10.gff
"
if
1
==
1
:
if
genome
==
'
nb
'
:
# transfer from graph to nipponbare
out
=
"
nb_chr10_all.gff
"
pos_seg
=
"
seg_coord/IRGSP-1_0_Chr10.bed
"
...
...
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