Skip to content
Snippets Groups Projects
Commit 5987c4ec authored by nina.marthe_ird.fr's avatar nina.marthe_ird.fr
Browse files

moved a function from Functions.py to inference.py

parent de2cb995
No related branches found
No related tags found
No related merge requests found
from Graph_gff import Features,load_intersect
from Functions import get_segment_sequence,convert_strand
from Functions import get_segment_sequence
target_genome_name="genome2_chr10"
pos_seg=target_genome_name+".bed"
......@@ -9,7 +9,18 @@ intersect_path='intersect.bed'
load_intersect(intersect_path)
def convert_strand(strand):
match strand:
case "+":
return ">"
case "-":
return "<"
case ">":
return "+"
case "<":
return "-"
case default:
return ""
# présent dans Fuctions.py mais relou à importer ?
def get_segments_sequence_and_paths(gfa): # creates two dict with the sequences of the graph's segments, and the paths
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment